/* ═══════════════════════════════════════════════════════════
   GDPR Cookie Consent Banner — Styles
   Mobile-first, responsive, modern design
   ═══════════════════════════════════════════════════════════ */

.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 16px 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.gdpr-banner.gdpr-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gdpr-banner.gdpr-hiding {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.gdpr-banner-inner {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow:
        0 -4px 32px rgba(0, 0, 0, 0.10),
        0 -1px 6px rgba(0, 0, 0, 0.06);
    font-family: var(--font-public, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.gdpr-banner-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.gdpr-banner-desc {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.65;
    color: #555;
}

/* ── Settings toggle ─────────────────────────────────── */

.gdpr-settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

.gdpr-settings-toggle:hover {
    color: #111;
}

/* ── Details panel ───────────────────────────────────── */

.gdpr-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.gdpr-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
}

.gdpr-option + .gdpr-option {
    border-top: 1px solid #f3f3f3;
}

.gdpr-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #111;
    cursor: pointer;
}

.gdpr-option-locked {
    opacity: 0.65;
    cursor: default;
}

.gdpr-option-locked input {
    cursor: not-allowed;
}

.gdpr-option div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gdpr-option strong {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}

.gdpr-option span {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

/* ── Action buttons ──────────────────────────────────── */

.gdpr-banner-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.gdpr-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.gdpr-btn:active {
    transform: scale(0.97);
}

.gdpr-btn-accept {
    background: #111;
    color: #fff;
}

.gdpr-btn-accept:hover {
    background: #333;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.gdpr-btn-selected {
    background: #f0f0f0;
    color: #222;
}

.gdpr-btn-selected:hover {
    background: #e4e4e4;
}

.gdpr-btn-reject {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.gdpr-btn-reject:hover {
    background: #f9f9f9;
    color: #333;
    border-color: #ccc;
}

/* ── Footer ──────────────────────────────────────────── */

.gdpr-banner-footer {
    margin-top: 12px;
    text-align: center;
}

.gdpr-privacy-link {
    font-size: 11px;
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.18s ease;
}

.gdpr-privacy-link:hover {
    color: #555;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .gdpr-banner {
        padding: 0 8px 8px;
    }

    .gdpr-banner-inner {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .gdpr-banner-title {
        font-size: 15px;
    }

    .gdpr-banner-desc {
        font-size: 12px;
    }

    .gdpr-banner-actions {
        flex-direction: column;
        gap: 6px;
    }

    .gdpr-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .gdpr-banner-inner {
        max-width: 580px;
    }
}
