#cookie-consent {
    position: fixed;
    z-index: 11000;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 70vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #536171;
    background-color: #202933;
    color: #fff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.26);
    font-size: 15px;
    line-height: 1.45;
}

#cookie-consent[hidden],
#cookie-consent [hidden] {
    display: none !important;
}

.cookie-consent-inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding-right: 36px;
}

#cookie-consent h2 {
    margin: 0 0 6px;
    color: inherit;
    font-family: inherit;
    font-size: 19px;
    line-height: 1.3;
}

#cookie-consent p {
    margin: 0;
    color: inherit;
}

.cookie-consent-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 15px;
    padding: 14px 0;
    border-top: 1px solid #667382;
    border-bottom: 1px solid #667382;
}

.cookie-consent-options label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.cookie-consent-options input[type="checkbox"] {
    position: static;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex-shrink: 0;
    appearance: auto;
    accent-color: #8fd584;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

#cookie-consent button {
    padding: 8px 14px;
    min-height: 38px;
    border: 1px solid #8997a6;
    border-radius: 4px;
    background-color: #2d3945;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

#cookie-consent button:hover {
    background-color: #3d4b58;
}

#cookie-consent :focus-visible {
    outline: 2px solid #abe3a3;
    outline-offset: 2px;
}

#cookie-consent .cookie-consent-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
}

#cookie-consent .cookie-consent-status {
    margin-top: 8px;
    color: #ffd5aa;
}

@media (max-width: 640px) {
    #cookie-consent {
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent-inner {
        padding-right: 0;
    }

    #cookie-consent h2 {
        padding-right: 38px;
    }

    .cookie-consent-options {
        grid-template-columns: 1fr;
        gap: 9px;
    }
}
