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

#cookie-consent {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 2147483000;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    color: #172033;
    border: 1px solid #dce2ea;
    border-radius: 14px;
    box-shadow: 0 8px 35px rgba(0,0,0,.18);
    font-family: system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

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

.cookie-consent__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent__content p {
    margin: 6px 0 0;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#cookie-consent button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #aab5c4;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

#cookie-consent button[data-cookie-action="accept"],
#cookie-consent button[data-cookie-action="save"] {
    background: #172033;
    border-color: #172033;
    color: #fff;
}

#cookie-consent button:focus-visible {
    outline: 3px solid #4285f4;
    outline-offset: 2px;
}

#cookie-consent-settings {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dce2ea;
}

#cookie-consent-settings label {
    display: block;
    margin: 12px 0;
}

@media (max-width: 700px) {
    #cookie-consent {
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        right: 8px;
        padding: 16px;
        max-height: 85dvh;
        overflow-y: auto;
        border-radius: 12px;
    }

    .cookie-consent__content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    #cookie-consent button {
        width: 100%;
    }
}

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