:root{
    --pp-navy:#0b243b;
    --pp-blue:#134b7f;
    --pp-red:#e21f2f;
    --pp-gold:#c79a32;
    --pp-text:#12283d;
    --pp-muted:#667788;
    --pp-line:#e4e9ee;
    --pp-bg:#ffffff;
}

.pp-overlay{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:18px;
    background:rgba(4,18,31,.42);
    backdrop-filter:blur(3px)
}
.pp-overlay[hidden],.pp-reopen[hidden]{display:none!important}

.pp-panel{
    width:min(920px,100%);
    background:var(--pp-bg);
    color:var(--pp-text);
    border:1px solid rgba(11,36,59,.12);
    border-radius:18px;
    box-shadow:0 24px 80px rgba(0,0,0,.24);
    overflow:hidden
}

.pp-brandline{
    min-height:42px;
    padding:10px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:var(--pp-navy);
    color:#fff
}
.pp-brand{
    font-size:13px;
    font-weight:700;
    letter-spacing:.02em
}
.pp-brand b{color:var(--pp-gold)}
.pp-close{
    appearance:none;
    border:0;
    background:transparent;
    color:#fff;
    font-size:26px;
    line-height:1;
    cursor:pointer
}

.pp-hero{
    display:grid;
    grid-template-columns:66px 1fr;
    gap:18px;
    align-items:start;
    padding:22px 22px 8px
}
.pp-mark{
    width:58px;
    height:58px;
    border-radius:50%;
    background:var(--pp-red);
    color:#fff;
    display:grid;
    place-items:center;
    font-family:Georgia,serif;
    font-size:34px;
    font-weight:700
}
.pp-hero h2{
    margin:0 0 7px;
    color:var(--pp-navy);
    font-family:Georgia,serif;
    font-size:26px;
    line-height:1.1
}
.pp-hero p{
    margin:0;
    color:#445668;
    line-height:1.55
}

.pp-links{
    padding:6px 22px 0 106px;
    display:flex;
    gap:16px;
    flex-wrap:wrap
}
.pp-links a{
    color:var(--pp-blue);
    text-decoration:underline;
    text-underline-offset:2px
}

.pp-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
    padding:18px 22px
}
.pp-btn{
    appearance:none;
    border-radius:9px;
    padding:10px 16px;
    font-weight:700;
    cursor:pointer;
    border:1px solid var(--pp-blue);
    background:#fff;
    color:var(--pp-blue)
}
.pp-btn-main{
    background:var(--pp-blue);
    color:#fff
}
.pp-btn-outline{
    background:#fff
}
.pp-btn-light{
    border-color:#ccd5de;
    color:#445668
}

.pp-preferences{
    border-top:1px solid var(--pp-line);
    background:#fbfcfd
}
.pp-preferences-head{
    padding:18px 22px 10px
}
.pp-preferences-head strong{
    display:block;
    font-size:17px;
    color:var(--pp-navy)
}
.pp-preferences-head span{
    display:block;
    margin-top:3px;
    color:var(--pp-muted);
    font-size:13px
}

.pp-category{
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    align-items:center;
    padding:14px 22px;
    border-top:1px solid var(--pp-line)
}
.pp-category-copy{
    display:flex;
    flex-direction:column;
    gap:3px
}
.pp-category-copy strong{color:var(--pp-navy)}
.pp-category-copy span{
    font-size:13px;
    line-height:1.45;
    color:var(--pp-muted)
}

.pp-switch{
    position:relative;
    width:46px;
    height:26px
}
.pp-switch input{
    position:absolute;
    opacity:0;
    width:1px;
    height:1px
}
.pp-switch span{
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#c7d0d8;
    cursor:pointer;
    transition:.18s ease
}
.pp-switch span:after{
    content:"";
    position:absolute;
    width:20px;
    height:20px;
    left:3px;
    top:3px;
    background:#fff;
    border-radius:50%;
    box-shadow:0 1px 4px rgba(0,0,0,.22);
    transition:.18s ease
}
.pp-switch input:checked + span{
    background:var(--pp-blue)
}
.pp-switch input:checked + span:after{
    transform:translateX(20px)
}
.pp-switch input:disabled + span{
    background:var(--pp-gold);
    cursor:not-allowed
}

.pp-foot{
    padding:10px 22px 16px;
    font-size:12px;
    color:#6b7885;
    border-top:1px solid var(--pp-line)
}

.pp-reopen{
    position:fixed;
    left:14px;
    bottom:14px;
    z-index:999998;
    border:1px solid rgba(11,36,59,.18);
    background:var(--pp-navy);
    color:#fff;
    border-radius:999px;
    padding:8px 13px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 7px 24px rgba(0,0,0,.18)
}

@media (max-width:680px){
    .pp-overlay{padding:8px}
    .pp-panel{border-radius:14px}
    .pp-hero{
        grid-template-columns:48px 1fr;
        padding:18px 16px 8px
    }
    .pp-mark{
        width:44px;
        height:44px;
        font-size:27px
    }
    .pp-hero h2{font-size:22px}
    .pp-links{
        padding:8px 16px 0;
    }
    .pp-primary-actions{
        display:grid;
        grid-template-columns:1fr;
        padding:16px
    }
    .pp-primary-actions .pp-btn{width:100%}
    .pp-category{padding:13px 16px}
    .pp-actions{padding:16px}
}