.cookie-consent-layer {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

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

.cookie-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cookie-consent {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: min(320px, 100%);
    padding: 16px;
    background: #fffef7;
    border: 1px solid #2d2d2d;
    color: #2d2d2d;
    font-family: Montserrat, sans-serif;
    box-sizing: border-box;
}

.cookie-consent-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent-text a {
    color: #2d2d2d;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cookie-consent-btn {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #2d2d2d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.cookie-consent-btn--decline {
    background: #fffef7;
    color: #2d2d2d;
}

.cookie-consent-btn--accept {
    background: #2d2d2d;
    color: #fffef7;
}

.cookie-consent-settings {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 11900;
    padding: 0;
    border: none;
    background: none;
    color: #666;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cookie-consent-text,
    .cookie-consent-btn {
        font-size: 15px;
    }

    .cookie-consent-settings {
        position: static;
        display: block;
        width: 100%;
        left: auto;
        bottom: auto;
        text-align: center;
        padding: 4px 15px 20px;
        font-size: 15px;
        box-sizing: border-box;
    }
}
