.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2100;
    padding: 12px;
}

/* Ensure the HTML [hidden] attribute always wins over component display styles. */
.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__prefs[hidden] {
    display: none !important;
}

.cookie-consent__actions [hidden] {
    display: none !important;
}

.cookie-consent__inner {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.cookie-consent__content h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.cookie-consent__content p {
    margin: 0;
    color: #4f4f4f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-consent__content a {
    color: #2f8f2b;
    text-decoration: underline;
}

.cookie-consent__prefs {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e6e6e6;
    display: grid;
    gap: 8px;
}

.cookie-consent__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #2f2f2f;
}

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

.cookie-consent__actions .btn {
    min-height: 40px;
    padding: 0.52rem 0.86rem;
    font-size: 0.86rem;
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent__inner {
        padding: 12px;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions .btn {
        width: 100%;
    }
}
