/*
	Theme Name: Hello Elementor Child — Euro-Drewno
	Theme URI: https://eurodrewno.com
	Description: Child theme motywu Hello Elementor z customowymi funkcjami Euro-Drewno — katalog produktów, mega menu, koszyk zapytań.
	Author: Euro-Drewno
	Author URI: https://eurodrewno.com
	Template: hello-elementor
	Version: 1.0.0
	Requires at least: 6.0
	Requires PHP: 7.4
	License: GNU General Public License v3 or later
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor-child
*/

/* ── Language Switcher (cpel) overrides ────────────────────────────── */

/* Kontener toggle — usuń białe tło/ramkę z Elementora */
.cpel-switcher__nav,
.cpel-switcher__toggle,
.cpel-switcher__toggle a {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Toggle: flaga + strzałka poziomo */
.cpel-switcher__toggle a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    cursor: pointer;
}

/* Dropdown lista */
.cpel-switcher--layout-dropdown .cpel-switcher__list {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 4px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.5);
    min-width: 80px;
}

/* Każdy element listy */
.cpel-switcher__lang a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    color: #ccc !important;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
    text-decoration: none !important;
}

.cpel-switcher__lang a:hover {
    background: #2a2a2a;
    color: #fff !important;
}

/* Flaga — jednolity rozmiar */
.cpel-switcher__flag {
    display: inline-flex !important;
    width: 22px !important;
    height: 16px !important;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    line-height: 1 !important;
}

.cpel-switcher__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Kod języka */
.cpel-switcher__code {
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* Strzałka */
.cpel-switcher__icon {
    font-size: 11px;
    color: #888;
    margin-left: 2px;
}

/* Fix: Polylang ustawia fr_BE → podmień flagę belgijską na francuską */
.cpel-switcher__flag--be img {
    display: none !important;
}
.cpel-switcher__flag--be {
    background: linear-gradient(to right, #002395 33.33%, #fff 33.33% 66.66%, #ED2939 66.66%) !important;
    border-radius: 2px;
}
