/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =====================================================================
   Ikona domku – menu-home-icon
   ===================================================================== */

.elementor-nav-menu--main .menu-home-icon > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.elementor-nav-menu--dropdown .menu-home-icon > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.menu-home-icon > a svg {
    display: block;
    flex-shrink: 0;
    fill: currentColor;
    transition: fill .15s;
}

/* =====================================================================
   [vtms_lang_flags] – Inline flags, no dropdown
   Nagłówek VTMS: ciemne tło (foto + #00000082), elementy białe (#FFF)
   ===================================================================== */

.vtms-lang-flags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.vtms-lang-flag {
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
}

.vtms-lang-flag img {
    width: 38px;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vtms-lang-flag:hover img {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 0 0 1.5px rgba(0, 154, 251, 0.8);
}

.vtms-lang-flag:active img {
    transform: scale(0.95);
}

/* Aktywna flaga – niebieski ring */
.vtms-lang-flag--active img {
    box-shadow: 0 0 0 2.5px #009AFB, 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Tablet */
@media (max-width: 1024px) {
    .vtms-lang-flag img { width: 34px; }
}

/* Mobile */
@media (max-width: 767px) {
    .vtms-lang-flag img { width: 30px; }
    .vtms-lang-flags { gap: 6px; }
}

/* =====================================================================
   Fallback: stary [language-switcher] TRP – zachowany na wypadek
   ===================================================================== */

.elementor-element-ab9c2ae .trp-flag-image {
    width: 38px !important;
    height: auto !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block !important;
}
