/* Shared popup identity. Logo follows native Enfold; model follows the editable WP title. */
#top .afr-product-dialog.afr-product-dialog-branded{border-top:0}
#top .afr-product-dialog-branded .afr-product-miniheader{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:0;padding:0;min-height:58px;border:0;background:#173e44;overflow:hidden}
#top .afr-product-miniheader-logo{display:flex;align-items:center;padding:8px 12px;min-width:0;height:58px;box-sizing:border-box}
#top .afr-product-miniheader-logo img{display:block;width:auto;height:38px;max-width:100%;object-fit:contain;margin:0}
#top .afr-product-miniheader-field{position:relative;min-width:0;align-self:stretch;display:flex;align-items:center;justify-content:flex-start;gap:14px;padding:7px 12px;background:#173e44;color:#fff}
#top .afr-product-miniheader-field::before{display:none}
#top .afr-product-miniheader-lines{display:none}
#top .afr-product-miniheader-name{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:4px 12px;text-align:left;font-family:'Archivo Expanded',Archivo,sans-serif;line-height:1.12}
#top .afr-product-miniheader-brand{text-transform:uppercase;color:#fff;font-weight:700;font-size:20px;font-style:italic;letter-spacing:.02em}
#top .afr-product-miniheader-name #afr-product-dialog-title{min-width:0;color:#ffc900;font-weight:700;font-size:20px;overflow-wrap:anywhere}
#top .afr-product-miniheader .afr-product-close{width:auto;min-width:44px;height:44px;display:flex;align-items:center;justify-content:center;gap:4px;margin:0;background:transparent;color:#fff;border-radius:0;font-size:38px;line-height:1;flex:none}
#top .afr-product-miniheader .afr-product-close:hover{color:#ffc900;background:transparent}
#top .afr-product-miniheader .afr-product-close:focus-visible{outline:2px solid #fff;outline-offset:-5px}
#top .afr-product-dialog-branded .afr-crs200-nav{border-top:0;border-bottom:0;background:#fff}
#top .afr-product-dialog-branded .afr-crs200-nav .content{padding-block:4px}
#top .afr-product-dialog-branded .afr-crs200-nav-links>.avia-button{min-height:38px;padding-block:7px}
@media(max-width:767.98px){
 #top .afr-product-dialog-branded .afr-product-miniheader{grid-template-columns:62px minmax(0,1fr);min-height:56px}
 #top .afr-product-miniheader-logo{height:56px;padding:8px}
 #top .afr-product-miniheader-logo img{height:34px}
 #top .afr-product-miniheader-field{padding:6px;gap:5px}
 #top .afr-product-miniheader-name{display:block;flex:1;text-align:left}
 #top .afr-product-miniheader-brand{display:block;font-size:11px;margin-bottom:3px}
 #top .afr-product-miniheader-name #afr-product-dialog-title{display:block;font-size:15px;line-height:1.15}
 #top .afr-product-miniheader .afr-product-close{width:auto;min-width:40px;height:44px;font-size:36px}
}
/* Override only the previous CRS200 bar's inset; the branded header stays edge-to-edge. */
#top .afr-product-dialog.afr-product-dialog-branded .afr-product-dialog-bar.afr-product-miniheader{padding:0}
@media(max-width:767.98px){
 #top .afr-product-dialog-branded .afr-crs200-nav-links{scrollbar-width:none}
 #top .afr-product-dialog-branded .afr-crs200-nav-links::-webkit-scrollbar{display:none}
}
/* One navigation row in every language; full model remains in the page H1. */
#top .afr-product-dialog-branded .afr-crs200-nav-links{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
#top .afr-product-dialog-branded .afr-crs200-nav-links::-webkit-scrollbar{display:none}
#top .afr-product-dialog-branded .afr-crs200-nav-links>.avia-button{flex:0 0 auto;white-space:nowrap}
#top .afr-product-miniheader-name{flex-wrap:nowrap}
#top .afr-product-miniheader-brand{flex:none}
#top .afr-product-miniheader-name #afr-product-dialog-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* Reuse the header's native TP selector; keep the list above the internal navigation. */
#top .afr-product-dialog-branded .afr-product-miniheader{overflow:visible;position:relative;z-index:50}
#top .afr-product-miniheader-name{flex:1}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language{--af-menu-language-width:68px;flex:0 0 68px;order:initial}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-shortcode-switcher__wrapper{--af-menu-height:44px}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-switcher-dropdown-list{left:auto;right:0;transform:none;max-height:calc(95dvh - 85px);overflow-y:auto}
@media(max-width:767.98px){
 #top .afr-product-miniheader-field{padding-left:6px;gap:6px}
 #top .afr-product-miniheader-name #afr-product-dialog-title{font-size:15px}
}
/* White compact language control on the shared Rabotti green surface. */
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-shortcode-switcher__wrapper{--bg:transparent!important;--text:#fff!important;--text-hover:#ffc900!important;--bg-hover:transparent!important}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-shortcode-switcher{border:0;border-radius:0;box-shadow:none}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-switcher-dropdown-list{background:#173e44;--bg:#173e44;--text:#fff;--text-hover:#ffc900;border:1px solid #ffffff33}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .af-language-selected{border-bottom-color:#ffffff20}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-current-language-item__wrapper:hover .trp-shortcode-arrow path{stroke:#ffc900}

#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-shortcode-arrow path{stroke:#fff}

/* The active selector is only globe, locale and chevron; the native list stays protected. */
#top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language .trp-language-item__default{grid-template-columns:20px minmax(0,1fr) 12px;gap:4px;padding:0 4px}
#top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language .trp-shortcode-arrow{right:4px;width:12px;height:12px;top:calc(50% - 6px)}
#top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language .trp-language-item__default .af-language-flag{display:none!important}
#top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language .trp-language-item__default .af-language-globe{display:block;color:#fff}
@media(max-width:767.98px){
 #top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language{--af-menu-language-width:56px;flex-basis:56px}
 #top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language .trp-language-item__default{grid-template-columns:18px minmax(0,1fr) 10px;gap:2px;padding:0 2px}
 #top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language .af-language-globe{width:18px;height:18px}
 #top :is(#header,.afr-product-dialog).afr-product-dialog .afr-product-miniheader .af-header-language .trp-shortcode-arrow{right:2px;width:10px;height:10px;top:calc(50% - 5px)}
}

/* Native disclosure, using the same editable WordPress primary menu. */
#top .afr-popup-site-navigation{flex:none;position:static;color:#fff}
#top .afr-popup-site-navigation>summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:40px;height:44px;font-size:27px;color:#fff}
#top .afr-popup-site-navigation>summary::-webkit-details-marker{display:none}
#top .afr-popup-site-navigation>summary:hover{color:#ffc900}
#top .afr-popup-site-navigation>summary:focus-visible{outline:2px solid #fff;outline-offset:-3px}
#top .afr-popup-site-navigation>nav{position:absolute;right:0;top:100%;height:calc(92.5dvh - 58px);width:min(440px,70vw);max-height:none;overflow:auto;overscroll-behavior:contain;padding:10px 12px;box-sizing:border-box;background:#173e44;box-shadow:0 12px 24px #0005;text-align:left;border-top:2px solid #ffc900;z-index:60}
#top .afr-popup-site-menu,#top .afr-popup-site-menu ul{list-style:none;margin:0;padding:0;display:block}
#top .afr-popup-site-menu li{display:block;float:none;width:auto;margin:0;padding:0;position:static}
#top .afr-popup-site-menu a{display:block;color:#fff;background:transparent;text-decoration:none;padding:5px 8px;font-size:16px;line-height:1.3}
#top .afr-popup-site-menu>li>a{font-size:20px;font-weight:700;min-height:40px;box-sizing:border-box;display:flex;align-items:center}
#top .afr-popup-site-menu ul{margin-left:16px}
#top .afr-popup-site-menu a:hover,#top .afr-popup-site-menu a:focus-visible{color:#ffc900}
#top .afr-popup-site-menu .avia_mega_div,#top .afr-popup-site-menu .sub-menu{display:block!important;position:static!important;visibility:visible!important;opacity:1!important;width:auto!important;height:auto!important;transform:none!important}
#top .afr-popup-site-menu img,#top .afr-popup-site-menu .afr-menu-preview{display:none}
@media(max-width:767.98px){#top .afr-popup-site-navigation>summary{width:32px;font-size:24px}#top .afr-popup-site-menu>li>a{font-size:20px}#top .afr-popup-site-menu a{font-size:16px}}

/* Reserve readable model space beside the three popup controls on small phones. */
@media(max-width:400px){#top .afr-product-dialog-branded .afr-product-miniheader{grid-template-columns:60px minmax(0,1fr)}#top .afr-product-miniheader-logo{padding:8px}#top .afr-product-miniheader-field{padding-left:6px;gap:2px}#top .afr-product-miniheader-brand{display:none}#top .afr-product-miniheader-name #afr-product-dialog-title{font-size:14px}}

#top .afr-popup-site-menu .afr-popup-area-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border:0;border-bottom:1px solid #ffffff24;padding:7px 8px;min-height:40px;background:#365459;color:#fff;font:700 16px/1.3 Archivo,sans-serif;cursor:pointer}
#top .afr-popup-site-menu .afr-popup-area-toggle:after{content:'+';padding-left:14px;font-weight:400}
#top .afr-popup-site-menu .afr-popup-area-toggle[aria-expanded=true]{color:#ffc900}
#top .afr-popup-site-menu .afr-popup-area-toggle[aria-expanded=true]:after{content:'−'}
#top .afr-popup-site-menu .sub-menu[hidden]{display:none!important}
#top .afr-popup-site-menu .afr-mega-product>a{background:#173e44;display:flex;align-items:center;gap:8px;font-weight:400;font-size:16px;padding:4px 8px;min-height:40px}
#top .afr-popup-site-menu .afr-mega-product img{display:block;width:32px;height:32px;object-fit:contain;flex:none;margin:0}
#top .afr-popup-site-menu .afr-popup-area-overview>a{font-size:14px;text-decoration:underline;opacity:.8;padding:10px}
#top .afr-popup-area-toggle:focus-visible{outline:2px solid #ffc900;outline-offset:-2px}

#top .afr-popup-site-menu .av-burger-menu-main{display:none!important}

/* Popup navigation uses the remaining viewport; compact rows preserve readable touch targets. */

@media(max-width:767.98px){#top .afr-popup-site-navigation>nav{height:calc(97.5dvh - 56px);width:min(440px,100vw)}}

#top .afr-product-dialog:has(.afr-popup-site-navigation[open]){overflow:visible}

#top .afr-product-miniheader .afr-product-close-label{font:400 12px/1 Archivo,Arial,sans-serif;white-space:nowrap}
