/* The language selector (M2): the approved ruled dropdown and the header adjustments shown with it.
   Loaded only while the selector shows; without it the header is as before. */
/* The closed trigger takes no place in front of other layers (the opened menu's close button lies where the compact
   form is); only the opened list is raised. */
.sante-lang{position:relative;flex:0 0 auto;text-transform:none;letter-spacing:normal}
.sante-lang[data-open=true]{z-index:1100}
/* The trigger is only the flag and the arrow, without a button's box (the owner's choice of 2026-11-20). */
.sante-lang-trigger{appearance:none;display:flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;margin:0;padding:0 8px;border:0;border-radius:6px;box-shadow:none;background:transparent;color:#284b5b;line-height:1.2;white-space:nowrap;cursor:pointer;font-family:inherit}
.sante-lang-trigger:hover{background:#fff1e4}
.sante-lang-flag{display:block!important;width:22px!important;height:16px!important;object-fit:contain!important;max-width:none!important;flex:0 0 22px;border-radius:1px;box-shadow:0 0 0 1px #284b5b1a;background:white}
.sante-lang-chevron{display:block;width:6px;height:6px;border-bottom:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin:0 1px 4px 1px}
.sante-lang[data-open=true] .sante-lang-chevron{transform:rotate(225deg);margin-bottom:-3px}
.sante-lang-options{position:absolute;right:0;top:calc(100% + 7px);width:181px;background:#fff;border:1px solid #f17d00;border-radius:6px;box-shadow:0 8px 24px #203f5126;padding:5px;display:none;z-index:1120}
.sante-lang[data-open=true]>.sante-lang-options{display:block}
.sante-lang-option{display:flex!important;align-items:center;gap:10px;min-height:46px;padding:10px!important;border:0!important;border-radius:4px!important;font:600 14px/1.25 inherit;color:#008588!important;text-decoration:none!important;background:#fff;white-space:nowrap}
.sante-lang-option[aria-current=true]{background:#e8f5f4}
.sante-lang-check{margin-left:auto;opacity:0}
.sante-lang-option[aria-current=true] .sante-lang-check{opacity:1}
.sante-lang-option:hover{background:#fff1e4}
.sante-lang-trigger:focus-visible,.sante-lang-option:focus-visible{outline:3px solid #008588;outline-offset:3px}
.sante-lang-compact .sante-lang-options{border-color:#008588;right:0}
@media (min-width:992px) {
    header .d-lg-none{display:none!important}
    #topFirstSection{position:relative;z-index:1031}
    #nav-main{position:relative;z-index:1030}
    #secondMeniu .row{align-items:center}
    #secondMeniu>.row>.col-lg-10>.d-flex{align-items:center;gap:6px}
    #secondMeniu .santeSearch{flex:1 1 220px;min-width:115px;width:auto;margin-right:3px}
    #secondMeniu .santeSearch form{width:100%}
    #secondMeniu .santeSearch input{width:100%;min-width:0}
    #secondMeniu .buttonGeneralHeader{margin-left:3px;margin-right:3px;white-space:nowrap}
    #secondMeniu .santeSearch~a,#secondMeniu .santeSearch~div{flex-shrink:0}
    #secondMeniu .sante-lang-desktop{margin-left:0}
    #secondMeniu .svgButtonInside{margin-right:5px}
}
@media (min-width:992px) {
    #nav-main #desktop-nav{display:block!important;flex:1;min-width:0}
    #nav-main #mobile-nav{display:none!important}
}
/* Exactly 992 px: Bootstrap shows the desktop header from 992, the theme's own desktop menu rules start at 993.
   The menu is laid out in a row here, with the theme's own room for the dropdown arrow (10px right of the label). */
@media (min-width:992px) and (max-width:992.98px) {
    #nav-main #desktop-nav #bootscore-navbar{display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:center;width:100%;padding:0;margin:0;list-style:none}
    #nav-main #desktop-nav #bootscore-navbar>li{border:0!important;margin:0!important;padding:10px 10px 10px 2px!important}
    #nav-main #desktop-nav #bootscore-navbar>li>a{padding:0 4px!important;white-space:nowrap}
}
@media (min-width:1400px) {
    #secondMeniu>.row>.col-lg-10>.d-flex{gap:8px}
    #secondMeniu .santeSearch{max-width:285px}
}
@media (max-width:991.98px) {
    .mobileTop>.container>.row{flex-wrap:nowrap;align-items:center}
    .mobileTop>.container>.row>[class*=col-]{flex:1 1 0;max-width:none;width:auto;min-width:0;padding-left:4px;padding-right:4px}
    .mobileTop .meniu_top_mobile{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:51px}
    .mobileTop .textTopMobile{line-height:1.2;margin-top:5px}
    .mobileTop .sante-lang-compact{width:max-content;margin:auto}
    .mobileTop .sante-lang-column{position:relative}
    #nav-main .header-actions{align-items:center}
    /* The opened menu shows no selector (the head script marks the page while the menu is open). */
    .sante-menu-open .sante-lang-compact{visibility:hidden}
}
@media (max-width:767.98px) {
    .mobileTop .justIpad{display:none!important}
    #nav-main .navbar-brand.xs{display:block!important;width:125px;min-width:125px;flex-shrink:0}
    #nav-main .logoMobile{width:125px!important;display:block!important}
}
@media (min-width:768px) and (max-width:991.98px) {
    .mobileTop .justIpad{display:block!important}
    .mobileTop .justIpad .textTopMobile{font-size:12px!important}
}
/* The 2026 header (template-parts/header/sd-header.php), below 768 px: the compact form stands in the header row,
   immediately before the menu button, as a 44 px square; its list ends at the menu button's right edge (one 44 px
   button and the 2 px gap further right; through 405 px one 44 px button, without a gap). Through 405 px the row gives
   up its gaps and half its side padding, so the logo keeps its natural 143 px down to 379 px; it has 139 px at 375 px
   and 124 px at 360 px. This file loads only with the selector: without it the header keeps its own paddings and gaps. */
.sd-actions>.sante-lang-compact{display:none}
@media (max-width:767px) {
    .sd-actions>.sante-lang-compact{display:block}
    .sd-actions>.sante-lang-compact .sante-lang-trigger{width:44px;min-width:44px;min-height:44px;padding:0;gap:5px;color:var(--sd-ink)}
    .sd-actions>.sante-lang-compact .sante-lang-options{right:-46px}
}
@media (max-width:405px) {
    .sd-hdr .sd-hrow{padding-inline:8px;gap:0}
    .sd-hdr .sd-actions{gap:0}
    .sd-actions>.sante-lang-compact .sante-lang-options{right:-44px}
}
/* A language without a flag file under img/flags/ shows its code in the flag's box (SanteLanguage::selector). */
.sante-lang-flag-code{font-size:9px;font-weight:700;line-height:16px;letter-spacing:0;text-align:center;color:#284b5b}
