/* =========================================================
   NEDÌTESO COOKIE CONSENT
   ========================================================= */

.nbx-cookie-overlay{
    position:fixed;
    inset:0;

    background:rgba(2,13,30,.56);
    backdrop-filter:blur(4px);

    z-index:50000;
}


/* =========================================================
   BANNER
   ========================================================= */

.nbx-cookie-banner{
    position:fixed;

    left:50%;
    bottom:24px;

    width:min(1180px,calc(100% - 32px));

    transform:translateX(-50%);

    z-index:50001;
}


.nbx-cookie-banner-inner{
    display:grid;

    grid-template-columns:minmax(0,1fr) auto;

    gap:34px;

    align-items:center;

    padding:28px 30px;

    border:1px solid rgba(255,255,255,.14);

    border-radius:22px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(38,140,255,.20),
            transparent 34%
        ),
        #071d41;

    box-shadow:
        0 28px 80px rgba(0,0,0,.28);

    color:#fff;
}


.nbx-cookie-kicker{
    display:block;

    margin-bottom:8px;

    color:#54adff;

    font-size:.65rem;
    font-weight:900;

    letter-spacing:.09em;
}


.nbx-cookie-copy h2{
    margin:0 0 10px;

    color:#fff;

    font-size:clamp(1.35rem,2.6vw,2rem);
    line-height:1.08;
}


.nbx-cookie-copy p{
    max-width:720px;

    margin:0;

    color:rgba(255,255,255,.72);

    font-size:.88rem;
    line-height:1.65;
}


.nbx-cookie-links{
    display:flex;

    flex-wrap:wrap;

    gap:14px;

    margin-top:13px;
}


.nbx-cookie-links a{
    color:#9bcfff;

    font-size:.73rem;
    font-weight:700;

    text-decoration:none;
}


.nbx-cookie-links a:hover{
    color:#fff;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.nbx-cookie-actions{
    display:flex;

    flex-wrap:wrap;

    justify-content:flex-end;

    gap:9px;

    max-width:470px;
}


.nbx-cookie-btn{
    min-height:44px;

    padding:11px 16px;

    border-radius:10px;

    font:inherit;
    font-size:.76rem;
    font-weight:800;

    cursor:pointer;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}


.nbx-cookie-btn:hover{
    transform:translateY(-2px);
}


.nbx-cookie-btn-primary{
    border:1px solid #2188f8;

    background:#2188f8;

    color:#fff;
}


.nbx-cookie-btn-primary:hover{
    background:#1478e7;
}


.nbx-cookie-btn-secondary{
    border:1px solid rgba(255,255,255,.22);

    background:rgba(255,255,255,.08);

    color:#fff;
}


.nbx-cookie-btn-outline{
    border:1px solid rgba(255,255,255,.34);

    background:transparent;

    color:#fff;
}


/* =========================================================
   PREFERENCES MODAL
   ========================================================= */

.nbx-cookie-preferences{
    position:fixed;

    top:50%;
    left:50%;

    width:min(720px,calc(100% - 30px));

    max-height:calc(100vh - 40px);

    overflow:auto;

    transform:translate(-50%,-50%);

    z-index:50002;

    border:1px solid #dbe4ef;

    border-radius:22px;

    background:#fff;

    box-shadow:
        0 32px 90px rgba(0,0,0,.30);
}


.nbx-cookie-preferences-head{
    display:flex;

    justify-content:space-between;
    align-items:flex-start;

    gap:20px;

    padding:26px 28px 20px;

    border-bottom:1px solid #e5ebf3;
}


.nbx-cookie-preferences-head h2{
    margin:0;

    color:#071d41;

    font-size:1.65rem;
}


.nbx-cookie-close{
    display:flex;

    align-items:center;
    justify-content:center;

    width:38px;
    height:38px;

    padding:0;

    border:1px solid #d8e2ee;

    border-radius:10px;

    background:#f4f8fc;

    color:#071d41;

    font-size:1.45rem;

    cursor:pointer;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.nbx-cookie-preferences-body{
    padding:10px 28px;
}


.nbx-cookie-category{
    display:grid;

    grid-template-columns:minmax(0,1fr) auto;

    gap:25px;

    align-items:center;

    padding:21px 0;

    border-bottom:1px solid #e5ebf3;
}


.nbx-cookie-category:last-child{
    border-bottom:0;
}


.nbx-cookie-category-copy strong{
    display:block;

    margin-bottom:5px;

    color:#071d41;

    font-size:.95rem;
}


.nbx-cookie-category-copy p{
    margin:0;

    color:#617389;

    font-size:.79rem;
    line-height:1.55;
}


.nbx-cookie-required{
    display:inline-block;

    padding:7px 10px;

    border-radius:999px;

    background:#e7f6ee;

    color:#147849;

    font-size:.62rem;
    font-weight:900;

    white-space:nowrap;
}


/* =========================================================
   SWITCH
   ========================================================= */

.nbx-cookie-switch{
    position:relative;

    display:inline-block;

    width:48px;
    height:27px;
}


.nbx-cookie-switch input{
    width:0;
    height:0;

    opacity:0;
}


.nbx-cookie-slider{
    position:absolute;

    inset:0;

    border-radius:999px;

    background:#cfd9e5;

    cursor:pointer;

    transition:.2s ease;
}


.nbx-cookie-slider::before{
    content:"";

    position:absolute;

    width:21px;
    height:21px;

    left:3px;
    bottom:3px;

    border-radius:50%;

    background:#fff;

    box-shadow:
        0 2px 6px rgba(0,0,0,.20);

    transition:.2s ease;
}


.nbx-cookie-switch
input:checked
+
.nbx-cookie-slider{
    background:#2188f8;
}


.nbx-cookie-switch
input:checked
+
.nbx-cookie-slider::before{
    transform:translateX(21px);
}


/* =========================================================
   FOOTER MODAL
   ========================================================= */

.nbx-cookie-preferences-footer{
    display:flex;

    justify-content:flex-end;

    gap:10px;

    padding:20px 28px 26px;

    border-top:1px solid #e5ebf3;

    background:#f7faff;
}


.nbx-cookie-preferences-footer
.nbx-cookie-btn-secondary{
    border-color:#cad7e5;

    background:#fff;

    color:#071d41;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:800px){

    .nbx-cookie-banner{
        bottom:14px;

        width:calc(100% - 20px);
    }


    .nbx-cookie-banner-inner{
        grid-template-columns:1fr;

        gap:20px;

        padding:22px;
    }


    .nbx-cookie-actions{
        display:grid;

        grid-template-columns:1fr;

        max-width:none;
    }


    .nbx-cookie-btn{
        width:100%;
    }

}


@media(max-width:560px){

    .nbx-cookie-category{
        grid-template-columns:1fr auto;

        gap:14px;
    }


    .nbx-cookie-preferences-head,
    .nbx-cookie-preferences-body{
        padding-left:20px;
        padding-right:20px;
    }


    .nbx-cookie-preferences-footer{
        display:grid;

        grid-template-columns:1fr;

        padding-left:20px;
        padding-right:20px;
    }

}