/* First-visit notice and preferences share the public site's visual language. */
#pnlInf,
#pnlCoo {
    box-sizing: border-box;
    position: fixed;
    inset: 24px 0 auto;
    width: calc(100% - 32px);
    max-width: 915px;
    height: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: 0 auto;
    padding: 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff !important;
    color: #304858;
    border: 1px solid #dbe7ee;
    border-top: 4px solid #F8962C;
    border-radius: 16px;
    box-shadow: 0 20px 64px rgba(11, 58, 92, .24);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    z-index: 99999;
}
#pnlCoo { max-width: 640px; }
#pnlInf h2,
#pnlCoo h4 {
    margin: 0;
    color: #0b3a5c;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.5px;
}
#pnlInf p { color: inherit; font-size: inherit; line-height: inherit; }
#pnlInf b,
#pnlCoo b { color: #0b3a5c; }
#pnlInf a,
#pnlCoo a { color: #1A5685; text-decoration: underline; text-underline-offset: 3px; }
#pnlInf .public-icon-button,
#pnlCoo .public-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #dbe7ee;
    border-radius: 50%;
    background: #f3f8fb;
    color: #1A5685;
}
#pnlInf .public-icon-button i,
#pnlCoo .public-icon-button i { color: inherit; }
#pnlInf .btn,
#pnlCoo .btn {
    min-height: 46px;
    padding: 11px 22px !important;
    border: 1px solid #1A5685;
    border-radius: 8px;
    background: #1A5685 !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    transition: background-color .2s ease, box-shadow .2s ease;
}
#pnlInf :is(#personalizza, #personalizza-mobile) {
    background: #edf5fa !important;
    color: #1A5685 !important;
    border-color: #cbdfeB;
}
#pnlInf .btn:hover,
#pnlCoo .btn:hover { background: #0b3a5c !important; color: #fff !important; }
#pnlInf :is(button, a):focus-visible,
#pnlCoo :is(button, a, input):focus-visible {
    outline: 3px solid #F8962C;
    outline-offset: 3px;
}
#pnlCoo input:focus-visible + .slider { outline: 3px solid #F8962C; outline-offset: 3px; }
#pnlCoo input:checked + .slider { background: #1A5685; }
#pnlInf #btnNMobile { align-items: center; margin-bottom: 0 !important; }
#pnlInf #btnNMobile > .text-right { display: flex; justify-content: flex-end; gap: 12px; }
#pnlInf #btnMobile { margin-bottom: 0 !important; }
#pnlCoo hr { border-color: #dbe7ee; }
/* Compact visual switches, with a 44px touch target. */
#pnlCoo :is(.switch, .switchDisabled) {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0;
    vertical-align: middle;
}
#pnlCoo :is(.slider, .sliderDisabled) {
    inset: 10px 0;
    border-radius: 24px;
    background: #8093a0;
}
#pnlCoo :is(.slider, .sliderDisabled)::before {
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    font-size: 12px;
    line-height: 18px;
    color: #1A5685;
    transform: translateX(0);
}
#pnlCoo input:checked + .slider::before,
#pnlCoo .sliderDisabled::before { transform: translateX(20px); }
#pnlCoo .sliderDisabled { background: #8093a0; cursor: default; }
#pnlCoo .sliderDisabled::before { color: #667c8b; }
@media (max-width: 767px) {
    #pnlInf,
    #pnlCoo {
        inset: 12px 0 auto;
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 18px 12px;
        border-radius: 12px;
    }
    #pnlInf #btnNMobile { display: none; }
    #pnlInf #btnMobile { display: flex; }
    #pnlInf #btnMobile .btn { width: 100%; padding: 11px 12px !important; }
    #pnlInf h2,
    #pnlCoo h4 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    #pnlInf,
    #pnlCoo { animation: none !important; }
    #pnlInf .btn,
    #pnlCoo .btn { transition: none; }
}
