body.bw-cookie-active {
    overflow: hidden;
}

.bw-cookie-banner {
    box-sizing: border-box;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: clamp(20px, 5vw, 32px);
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #111;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .28);
    overflow: auto;
}

.bw-cookie-banner::backdrop {
    background: rgba(0, 0, 0, .68);
}

.bw-cookie-banner h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 5vw, 26px);
    font-weight: 700;
    line-height: 1.2;
}

.bw-cookie-banner a {
    text-decoration: underline;
}

.bw-cookie-banner [hidden] {
    display: none;
}

.bw-cookie-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.bw-cookie-actions button {
    min-height: 48px;
    margin: 0;
    border: 1px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.bw-cookie-actions button:hover {
    background: #f4f4f4;
    color: #111;
}

.bw-cookie-actions #bw-cookie-accept {
    background: #ffd814;
}

.bw-cookie-actions #bw-cookie-accept:hover {
    background: #f7ca00;
}

.bw-cookie-banner :is(a, button, input):focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.bw-cookie-banner fieldset {
    margin: 16px 0 0;
}

.bw-cookie-banner label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.bw-cookie-banner input[type="checkbox"] {
    margin: 0;
}

#bw-cookie-settings:not([hidden]) {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
