/* Cookie consent (GDPR + CCPA) — banner, preferences modal, toast. Shared by the main site
   (views/header.ejs) and the standalone brochures, so it only uses tokens both define. */
.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1080;
    background: var(--ivory);
    border: 1px solid #ECE2D4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    padding: 20px 24px;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.cc-banner.cc-show { transform: translateY(0); opacity: 1; }

.cc-banner-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
}

.cc-banner-text { flex: 1 1 360px; }
.cc-banner-text strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: var(--text-color);
    display: block;
    margin-bottom: 4px;
}
.cc-banner-text p { margin: 0; font-size: 0.92rem; color: var(--muted-color); line-height: 1.55; }
.cc-banner-text a { font-weight: 700; }

.cc-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cc-banner-actions .btn { white-space: nowrap; }

/* Overlay + modal */
.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(61, 74, 92, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cc-overlay.cc-show { opacity: 1; }

.cc-modal {
    background: var(--ivory);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.cc-overlay.cc-show .cc-modal { transform: translateY(0); }

.cc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid #ECE2D4;
}

.cc-modal-head h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.cc-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--muted-color);
    cursor: pointer;
    padding: 0 4px;
}
.cc-close:hover { color: var(--text-color); }

.cc-modal-body { padding: 22px 24px; overflow-y: auto; }
.cc-intro { font-size: 0.92rem; color: var(--muted-color); line-height: 1.6; margin-bottom: 18px; }
.cc-intro a, .cc-cat a { font-weight: 700; }

.cc-gpc {
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.cc-gpc i { margin-right: 6px; }

.cc-cat {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 16px 16px;
    margin-bottom: 12px;
}

.cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.cc-cat-head h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.cc-cat p { margin: 0; font-size: 0.85rem; color: var(--muted-color); line-height: 1.5; }

.cc-always {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sage);
    white-space: nowrap;
}

/* Toggle switch */
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #d9c7b8;
    border-radius: var(--radius-full);
    transition: background 0.2s ease;
}
.cc-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: var(--ivory);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(34, 114, 163, 0.3);
}
.cc-switch input:checked + .cc-slider { background: var(--primary-color); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { box-shadow: 0 0 0 3px rgba(59, 159, 212, 0.3); }

.cc-modal-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 18px 24px;
    border-top: 1px solid #ECE2D4;
}

/* Confirmation toast (e.g. Do Not Sell opt-out) */
.cc-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 140%);
    z-index: 1095;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 460px;
    width: calc(100% - 32px);
    background: var(--ivory);
    border: 1px solid #ECE2D4;
    border-left: 4px solid var(--sage);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    padding: 14px 16px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cc-toast.cc-show { transform: translate(-50%, 0); opacity: 1; }
.cc-toast > i { color: var(--sage); font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
.cc-toast-msg { font-size: 0.9rem; color: var(--text-color); line-height: 1.5; }
.cc-toast-msg a { font-weight: 700; white-space: nowrap; }
.cc-toast-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--muted-color);
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}
.cc-toast-close:hover { color: var(--text-color); }

@media (max-width: 575px) {
    .cc-banner-actions { width: 100%; }
    .cc-banner-actions .btn { flex: 1 1 auto; }
    .cc-modal-foot { flex-direction: column-reverse; }
    .cc-modal-foot .btn { width: 100%; }
}
