.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    color: #292929;
    background: rgba(0, 0, 0, 0.52);
}

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

.cookie-consent-panel {
    width: min(54rem, 100%);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.34);
}

.cookie-consent-panel p {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.55;
    text-align: center;
}

.cookie-consent-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.cookie-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid #292929;
    border-radius: 0;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.cookie-consent-accept {
    border-color: #ff6a1a;
    color: #fff;
    background: #ff6a1a;
}

.cookie-consent-reject {
    color: #fff;
    background: #292929;
}

.cookie-consent-policy {
    color: #292929;
    background: transparent;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
    filter: brightness(0.9);
}

.cookie-consent-button:focus-visible {
    outline: 0.16rem solid currentColor;
    outline-offset: 0.16rem;
}

@media (max-width: 48rem) {
    .cookie-consent {
        padding: 0.75rem;
    }

    .cookie-consent-panel {
        max-height: calc(100svh - 1.5rem);
        padding: 1.2rem;
        overflow-y: auto;
    }

    .cookie-consent-panel p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
        margin-top: 1rem;
    }

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