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

#cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483631;
    box-sizing: border-box;
    padding: 16px;
    color: #404043;
    font-family: sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

#cookie-banner *,
#cookie-banner *::before,
#cookie-banner *::after {
    box-sizing: border-box;
}

.cookie-banner__panel {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

.cookie-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-banner__content h2 {
    margin: 0 0 8px;
    color: #404043;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.25px;
    line-height: 1.6;
}

.cookie-banner__content p {
    margin: 0;
}

.cookie-banner__content a {
    color: #00729c;
    font-weight: 600;
    text-decoration: none;
}

.cookie-banner__content a:hover,
.cookie-banner__content a:focus {
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    flex: 0 0 286px;
    flex-direction: column;
    gap: 8px;
}

.cookie-banner__buttons button {
    width: 100%;
    min-height: 55px;
    padding: 12px 16px;
    color: #ffffff;
    background: #ff9e18;
    border: 1px solid #cccccc;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.cookie-banner__buttons button:hover {
    filter: brightness(0.95);
}

.cookie-banner__buttons button:focus-visible,
.cookie-banner__content a:focus-visible {
    outline: 2px solid #00729c;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    #cookie-banner {
        padding: 10px;
    }

    .cookie-banner__panel {
        max-height: calc(100vh - 20px);
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        overflow-y: auto;
    }

    .cookie-banner__buttons {
        flex-basis: auto;
    }
}
