/* ── Cookie Consent ─────────────────────────────────────────────────────── */

.zc-banner {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 99998;
    width: 400px;
    max-width: calc(100vw - 32px);
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
    padding: 24px 28px 20px;
}

.zc-banner-title {
    font-size: 15px;
    font-weight: 400;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.4;
}

.zc-banner-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 18px;
}

.zc-banner-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.zc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
}

/* ── Settings Modal ──────────────────────────────────────────────────────── */
.zc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 32px 16px 16px;
    pointer-events: none;
}

.zc-modal-inner {
    background: #fff;
    width: 400px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px 24px;
    pointer-events: all;
}

.zc-modal-title {
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.zc-modal-text {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    margin: 0 0 22px;
}

.zc-modal-text a {
    color: #222;
    text-decoration: underline;
}

.zc-modal-text a:hover {
    color: #000;
}

.zc-modal-accept-all {
    width: 100%;
    margin-bottom: 24px;
}

/* ── Cookie category sections ──────────────────────────────────────────── */
.zc-section {
    padding: 14px 0;
    border-top: 1px solid #e8e8e8;
}

.zc-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

label.zc-section-header {
    cursor: pointer;
}

.zc-section-label {
    font-size: 13px;
    font-weight: 400;
    color: #222;
}

.zc-always-on {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    font-weight: 400;
    font-style: italic;
}

.zc-section-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.55;
    margin: 0;
    padding-left: 22px;
}

.zc-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #222;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Modal footer buttons ───────────────────────────────────────────────── */
.zc-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #e8e8e8;
    padding-top: 18px;
}

.zc-modal-footer .zc-btn-dark,
.zc-modal-footer .zc-btn-ghost {
    flex: 1;
}

/* ── Shared button styles ───────────────────────────────────────────────── */
.zc-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #666;
    color: #fff;
    border: 1px solid #666;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.zc-btn-dark:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}

.zc-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #444;
    border: 1px solid #ccc;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.zc-btn-ghost:hover {
    border-color: #444;
    color: #222;
}

.zc-btn-text {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.zc-btn-text:hover {
    color: #222;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .zc-banner {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 20px 24px;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    }

    .zc-banner-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .zc-btn-dark,
    .zc-btn-ghost {
        text-align: center;
        padding: 13px 20px;
    }

    .zc-modal-footer {
        flex-direction: column;
    }
}
