/* 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:clamp(112px,18%,180px) minmax(0,1fr);gap:0;padding:0;min-height:58px;border:0;background:#fff;overflow:hidden}
#top .afr-product-miniheader-logo{display:flex;align-items:center;padding:8px 28px;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-end;gap:14px;padding:7px 12px 7px 48px;background:#173e44;color:#fff}
#top .afr-product-miniheader-field::before{content:"";position:absolute;right:100%;top:0;bottom:0;width:38px;background:linear-gradient(128deg,transparent 0 48%,#173e44 49% 100%)}
#top .afr-product-miniheader-lines{position:absolute;left:-14px;top:-12px;bottom:-12px;width:14px;transform:skewX(-38deg);border-left:2px solid #fff;border-right:2px solid #fff;pointer-events:none}
#top .afr-product-miniheader-name{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:4px 12px;text-align:right;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:44px;height:44px;display:grid;place-items:center;margin:0;background:transparent;color:#fff;border-radius:0;font-size:30px;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:989.98px){
 #top .afr-product-dialog-branded .afr-product-miniheader{grid-template-columns:90px minmax(0,1fr);min-height:56px}
 #top .afr-product-miniheader-logo{height:56px;padding:8px 16px}
 #top .afr-product-miniheader-logo img{height:34px}
 #top .afr-product-miniheader-field{padding:6px 6px 6px 22px;gap:5px}
 #top .afr-product-miniheader-field::before{width:26px}
 #top .afr-product-miniheader-lines{left:-9px;width:9px;border-width:1px}
 #top .afr-product-miniheader-name{display:block;flex:1;text-align:right}
 #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:40px;height:40px;font-size:28px}
}
/* 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:989.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-lines{top:0;bottom:0;clip-path:inset(0)}
#top .afr-product-miniheader-name{flex:1}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language{flex:0 0 88px;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:989.98px){
 #top .afr-product-miniheader-field{padding-left:12px;gap:3px}
 #top .afr-product-miniheader-name #afr-product-dialog-title{font-size:13px}
}
/* Popup language control: white surface and Rabotti green, as requested. */
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-shortcode-switcher__wrapper{--bg:#fff!important;--text:#173e44!important;--text-hover:#173e44!important;--bg-hover:#f1f4f3!important}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-shortcode-switcher{border:1px solid #173e4433}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-switcher-dropdown-list{border:1px solid #173e4433}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .af-language-selected{border-bottom-color:#173e4420}
#top :is(#header,.afr-product-dialog).afr-product-dialog .af-header-language .trp-current-language-item__wrapper:hover .trp-shortcode-arrow path{stroke:#173e44}

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

/* 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:18px;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:989.98px){#top .afr-popup-site-navigation>summary{width:32px;font-size:24px}#top .afr-popup-site-menu>li>a{font-size:18px}#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:12px}}

#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:transparent;color:#fff;font:700 17px/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{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:989.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}
