/* ── Cookie Consent Banner ── */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    padding: 1.8rem 2rem 1.6rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    color: #333;
    font-size: 1.4rem;
    line-height: 1.6;
}

.main-cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cookie-consent__message {
    font-size: 1.35rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Allow Cookies button — uses site primary colour */
.main-cookie-content .allow-button,
.main-cookie-content .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--primary-color, #6a0dad);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: capitalize;
    transition: background 0.2s, transform 0.1s;
    line-height: 1;
    margin: 0;
}
.main-cookie-content .allow-button:hover,
.main-cookie-content .primary-btn:hover {
    background: var(--hover-color, #4a0080);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Close (×) button */
.js-cookie-consent .btn-close,
.front-close-btn.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0;
    font-size: 1.6rem;
    color: #999;
    background: transparent none;
    opacity: 1;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
}
.js-cookie-consent .btn-close:hover,
.front-close-btn.btn-close:hover {
    color: var(--primary-color, #6a0dad);
    opacity: 1;
}
.js-cookie-consent .btn-close:focus,
.js-cookie-consent button:focus {
    outline: none;
    box-shadow: none;
}

/* RTL — flip to right side */
.direction-rtl .cookie-consent {
    left: auto;
    right: 20px;
    direction: rtl;
    text-align: right;
}
.direction-rtl .js-cookie-consent .btn-close,
.direction-rtl .front-close-btn.btn-close {
    right: auto;
    left: 10px;
}

/* Mobile */
@media (max-width: 480px) {
    .cookie-consent {
        width: calc(100vw - 32px);
        left: 16px;
        bottom: 16px;
    }
    .direction-rtl .cookie-consent {
        left: auto;
        right: 16px;
    }
}
