/* ============================================================
   Cookie Consent Banner + Modal
   ============================================================ */

/* ── Banner ───────────────────────────────────────────────── */
#mrw-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #12122a;
    color: #d0d0e8;
    padding: 16px 24px;
    z-index: 9998;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    display: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    border-top: 2px solid #2e2e5e;
}

#mrw-consent-banner.show { display: block; }

.consent-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.consent-banner-text {
    flex: 1;
    min-width: 200px;
    line-height: 1.55;
}

.consent-banner-text a {
    color: #8899ff;
    text-decoration: underline;
}
.consent-banner-text a:hover { color: #aabbff; }

.consent-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.consent-btn {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
}
.consent-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.consent-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.consent-btn-reject {
    background: #2a2a48;
    color: #bbb;
    border: 1px solid #444;
}

.consent-btn-manage {
    background: transparent;
    color: #8899ff;
    border: 1px solid #3a3a6a;
}

/* ── Modal overlay ────────────────────────────────────────── */
#mrw-consent-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#mrw-consent-modal.show { display: flex; }

.consent-modal-box {
    background: #1a1a3a;
    color: #d0d0e8;
    border-radius: 14px;
    padding: 32px 28px;
    max-width: 500px;
    width: 92%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    border: 1px solid #2e2e5e;
}

.consent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.consent-modal-box h2 {
    font-size: 20px;
    margin: 0;
    color: #fff;
}

.consent-modal-close-x {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    /* cursor inherited from global rocket rule */
    line-height: 1;
    padding: 0 0 0 12px;
}
.consent-modal-close-x:hover { color: #fff; }

.consent-modal-box > p {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
    line-height: 1.55;
}

.consent-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #2a2a50;
    gap: 16px;
}

.consent-category-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #eee;
}

.consent-category-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
    line-height: 1.45;
}

.consent-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    background: #333;
    color: #aaa;
    vertical-align: middle;
}

/* Toggle switch */
.consent-toggle {
    flex-shrink: 0;
    position: relative;
    width: 46px;
    height: 26px;
    margin-top: 2px;
}

.consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.consent-toggle-slider {
    position: absolute;
    /* cursor inherited from global rocket rule */
    inset: 0;
    background: #3a3a5e;
    border-radius: 26px;
    transition: background 0.2s;
}

.consent-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #aaa;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.consent-toggle input:checked + .consent-toggle-slider { background: #667eea; }
.consent-toggle input:checked + .consent-toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.consent-toggle input:disabled + .consent-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Button inside PayPal container when consent not given */
.consent-required-btn {
    width: 100%;
    padding: 9px 14px;
    background: #2a2a48;
    color: #8899ff;
    border: 1px dashed #445;
    border-radius: 6px;
    /* cursor inherited from global rocket rule */
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}
.consent-required-btn:hover { background: #333355; }

/* ── Site footer nav ──────────────────────────────────────── */
.site-footer-nav {
    text-align: center;
    padding: 14px 16px 18px;
    font-size: 12px;
    color: #888;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
}

.site-footer-nav a {
    color: #667eea;
    text-decoration: none;
}
.site-footer-nav a:hover { text-decoration: underline; }

.site-footer-nav .sep {
    margin: 0 8px;
    color: #444;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .consent-banner-inner  { flex-direction: column; gap: 14px; }
    .consent-banner-actions { width: 100%; }
    .consent-btn           { flex: 1; text-align: center; }
    .consent-modal-actions { flex-direction: column-reverse; }
    .consent-modal-actions .consent-btn { width: 100%; text-align: center; }
}
