/* cookie-consent.css — Global cookie consent banner + detail modal */

/* ── Banner ── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--surface-primary, #fff);
    border-top: 1px solid var(--border-light, #ddd);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent--visible {
    transform: translateY(0);
}

.cookie-consent__text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary, #444);
    flex: 1;
}

.cookie-consent__details-link {
    color: var(--accent-primary, #5a7d6a);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-consent__btn {
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.cookie-consent__btn:hover {
    opacity: 0.85;
}

.cookie-consent__btn--accept {
    background: var(--accent-primary, #5a7d6a);
    color: #fff;
}

.cookie-consent__btn--decline {
    background: transparent;
    color: var(--text-tertiary, #888);
    border: 1px solid var(--border-light, #ccc);
}

/* ── Detail Modal Overlay ── */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-modal-overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* ── Modal Box ── */
.cookie-modal {
    background: var(--surface-primary, #fff);
    border-radius: 8px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.cookie-modal-overlay--visible .cookie-modal {
    transform: translateY(0);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light, #eee);
}

.cookie-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary, #1a1a1a);
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-tertiary, #888);
    padding: 0 0.25rem;
    line-height: 1;
}

.cookie-modal__close:hover {
    color: var(--text-primary, #1a1a1a);
}

.cookie-modal__body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal__body p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary, #444);
    margin: 0 0 1rem;
}

.cookie-modal__body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin: 1.25rem 0 0.35rem;
}

.cookie-modal__body h3:first-of-type {
    margin-top: 0.5rem;
}

.cookie-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-light, #eee);
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .cookie-consent {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal {
        width: 95%;
        max-height: 85vh;
    }

    .cookie-modal__header,
    .cookie-modal__body,
    .cookie-modal__footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
