html{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
}

body{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
}

#consent-window{
    position:fixed;
    left:50%;
    bottom:max(12px, env(safe-area-inset-bottom));
    transform:translate(-50%,0);
    width:min(1000px, calc(100% - 24px));
    max-height:min(70svh, 70vh);
    display:flex;
    flex-wrap:wrap;
    align-items:stretch;
    justify-content:space-between;
    gap:20px;
    padding:20px 22px;
    background-color:#f1f1f1;
    color:#000;
    border-radius:8px;
    box-shadow:0 4px 25px rgba(0,0,0,.2);
    border:1px solid rgba(0,0,0,.08);
    z-index:1200;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
    overscroll-behavior:contain;
    box-sizing:border-box;
    overflow:hidden;
}

#consent-window *{
    box-sizing:border-box;
}

#consent-window-content{
    flex:1 1 360px;
    min-width:0;
    min-height:0;
    overflow:auto;
}

#consent-window-title{
    font-size:18px;
    margin:0 0 10px;
    display:block;
    line-height:1.2;
}

#consent-window-content p{
    margin:0 0 12px;
    line-height:1.45;
}

#consent-window-switches{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}

.consent-window-switch{
    display:flex;
    gap:8px;
    min-width:0;
}

.consent-window-switch input{
    display:none;
}

.consent-window-switch label{
    display:flex;
    align-items:center;
    background-color:#fefefe;
    padding:10px 12px;
    border:1px solid #d7d7d7;
    cursor:pointer;
    transition:background-color .2s,border-color .2s;
    border-radius:8px;
    font-size:14px;
    line-height:1.2;
    font-weight:400 !important;
    user-select:none;
    max-width:100%;
    word-break:break-word;
    -webkit-tap-highlight-color:transparent;
}

.consent-window-switch label:before{
    content:'';
    display:inline-block;
    width:10px;
    height:10px;
    background-color:#fff;
    border:1px solid #cfcfcf;
    margin-right:8px;
    border-radius:50%;
    flex:0 0 10px;
}

.consent-window-switch label:hover{
    background-color:#f6f6f6;
    border-color:#cfcfcf;
    font-weight:400 !important;
}

.consent-window-switch input:checked + label{
    background-color:#f6f6f6;
    font-weight:400 !important;
}

.consent-window-switch input:checked + label:before{
    background-color:#198754;
    border-color:#198754;
}

.consent-window-switch input:disabled + label{
    cursor:default;
    opacity:.75;
    font-weight:400 !important;
}

.consent-window-switch input:checked:disabled + label{
    font-weight:400 !important;
}

.consent-window-switch input:checked:disabled + label:before{
    background-color:#198754;
    border-color:#198754;
}

.consent-window-switch input:disabled + label:hover{
    background-color:#f6f6f6;
    border-color:#d7d7d7;
    font-weight:400 !important;
}

#consent-window-link{
    margin-left:0;
}

#consent-window-link a{
    color:inherit;
    text-decoration:underline;
}

#consent-window-buttons{
    flex:0 0 260px;
    width:260px;
    min-width:220px;
    display:flex;
    flex-direction:column;
    gap:10px;
    align-self:stretch;
    justify-content:center;
}

.consent-window-button{
    width:100%;
    color:#000;
    background-color:#fff;
    border:1px solid #d7d7d7;
    padding:12px 14px;
    transition:background-color .2s,border-color .2s,transform .05s;
    border-radius:8px;
    font-size:14px;
    line-height:1.2;
    touch-action:manipulation;
}

.consent-window-button:hover{
    background-color:#f6f6f6;
    border-color:#cfcfcf;
}

.consent-window-button:active{
    transform:translateY(1px);
}

@media (max-width:992px){
    #consent-window{
        width:calc(100% - 20px);
        max-width:720px;
        padding:16px;
        gap:14px;
        max-height:min(75svh, 75vh);
        align-items:stretch;
        overflow:hidden;
    }

    #consent-window-content{
        flex:1 1 100%;
        min-height:0;
        overflow:auto;
    }

    #consent-window-buttons{
        flex:0 0 auto;
        width:100%;
        min-width:0;
        order:2;
    }
}

@media (max-width:768px){
    #consent-window{
        flex-direction:column;
        flex-wrap:nowrap;
        align-items:stretch;
        max-height:min(85svh, 85vh);
        overflow:hidden;
    }

    #consent-window-title{
        font-size:16px;
    }

    .consent-window-switch,
    .custom-control-label{
        width:100%;
    }

    .consent-window-switch label{
        width:100%;
        justify-content:flex-start;
        font-weight:400 !important;
    }
}

@media (orientation:landscape) and (max-height:520px){
    #consent-window{
        flex-direction:column;
        flex-wrap:nowrap;
        width:calc(100% - 16px);
        bottom:max(8px, env(safe-area-inset-bottom));
        max-height:calc(100svh - 16px);
        padding:12px;
        gap:10px;
        align-items:stretch;
        justify-content:flex-start;
        overflow:hidden;
    }

    #consent-window-content{
        flex:1 1 auto;
        width:100%;
        min-width:0;
        min-height:0;
        overflow:auto;
    }

    #consent-window-buttons{
        width:100%;
        flex:0 0 auto;
        min-width:0;
        flex-direction:row;
        flex-wrap:wrap;
        gap:8px;
        justify-content:flex-start;
    }

    .consent-window-button{
        width:auto;
        flex:1 1 160px;
        padding:10px 12px;
    }
}

body.consent-open:before{
    content:'';
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:1199;
}