/* RankwellPress Pro bundle: pro-global */

/* --- cookie-consent.css --- */
/* ═══════════════════════════════════════════════════════════
   RankwellPress Pro — Cookie Consent Banner
   File: assets/css/cookie-consent.css

   CUSTOMIZER WIRING — this revision
   ─────────────────────────────────────────────────────────
   All brand-identifying colours are wired to the theme's
   dynamic CSS variables. Applying a preset or changing the
   primary colour updates the banner automatically.

   Tokens read (from DynamicCSSCompiler output):
     --rw-color-primary          (primary_color)
     --rw-text-inverse           (primary_text_color)
     --rw-bg-content             (content_bg_color)
     --rw-text-heading           (heading_color)
     --rw-text-body              (text_color)
     --rw-text-muted             (meta_text_color)
     --rw-border-light           (border_color)
     --rw-button-bg              (button_bg_color)
     --rw-button-text            (button_text_color)

   Every var() keeps the previous hardcoded value as a
   fallback, so rendering is identical if the CSS-vars
   pipeline ever fails to emit a token.

   DESIGN NOTES
   - Accept button uses the site's Primary Brand colour
     (not the button tokens) so it visually matches the
     primary CTA language of the rest of the site.
   - Link colours use Primary Brand colour too. Both change
     with presets and Reset Colours.
   - Dark-mode overrides keep working — they win by
     specificity after variables resolve.
   ═══════════════════════════════════════════════════════════ */

.rankwellpress-pro-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: var(--rw-bg-content, #ffffff);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    padding: 18px 20px;
    transform: translateY(100%);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    font-size: 14px;
    line-height: 1.5;
}

.rankwellpress-pro-cookie-banner[hidden] {
    display: none;
}

.rankwellpress-pro-cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.rankwellpress-pro-cookie-banner.is-hidden {
    transform: translateY(100%);
    opacity: 0;
}

.rankwellpress-pro-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.rankwellpress-pro-cookie-text {
    flex: 1 1 400px;
    color: var(--rw-text-heading, #111827);
}

.rankwellpress-pro-cookie-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rankwellpress-pro-cookie-text p {
    margin: 0;
    font-size: 13.5px;
    color: var(--rw-text-body, #4b5563);
}

.rankwellpress-pro-cookie-text a {
    color: var(--rw-color-primary, #0d7c3e);
    text-decoration: underline;
    font-weight: 600;
}

.rankwellpress-pro-cookie-text a:hover,
.rankwellpress-pro-cookie-text a:focus-visible {
    color: color-mix(in srgb, var(--rw-color-primary, #0d7c3e) 80%, #000000);
}

.rankwellpress-pro-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.rankwellpress-pro-cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.rankwellpress-pro-cookie-btn:focus-visible {
    outline: 2px solid var(--rw-color-primary, #0d7c3e);
    outline-offset: 2px;
}

.rankwellpress-pro-cookie-accept {
    background: var(--rw-color-primary, #0d7c3e);
    color: var(--rw-text-inverse, #ffffff);
    border-color: var(--rw-color-primary, #0d7c3e);
}

.rankwellpress-pro-cookie-accept:hover,
.rankwellpress-pro-cookie-accept:focus-visible {
    background: color-mix(in srgb, var(--rw-color-primary, #0d7c3e) 80%, #000000);
    border-color: color-mix(in srgb, var(--rw-color-primary, #0d7c3e) 80%, #000000);
}

.rankwellpress-pro-cookie-reject {
    background: transparent;
    color: var(--rw-text-body, #4b5563);
    border-color: var(--rw-border-light, #d1d5db);
}

.rankwellpress-pro-cookie-reject:hover,
.rankwellpress-pro-cookie-reject:focus-visible {
    background: color-mix(in srgb, var(--rw-text-heading, #111827) 5%, transparent);
    color: var(--rw-text-heading, #111827);
    border-color: var(--rw-text-muted, #9ca3af);
}

@media (max-width: 640px) {
    .rankwellpress-pro-cookie-banner {
        padding: 14px 16px;
    }

    .rankwellpress-pro-cookie-inner {
        gap: 14px;
    }

    .rankwellpress-pro-cookie-text {
        flex: 1 1 100%;
    }

    .rankwellpress-pro-cookie-actions {
        width: 100%;
    }

    .rankwellpress-pro-cookie-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }
}

html[data-theme="dark"] .rankwellpress-pro-cookie-banner {
    background: var(--rw-bg-content, #1e293b);
    color: var(--rw-text-body, #cbd5e1);
}

html[data-theme="dark"] .rankwellpress-pro-cookie-text {
    color: var(--rw-text-body, #cbd5e1);
}

html[data-theme="dark"] .rankwellpress-pro-cookie-text strong {
    color: var(--rw-text-heading, #f1f5f9);
}

html[data-theme="dark"] .rankwellpress-pro-cookie-text p {
    color: var(--rw-text-muted, #94a3b8);
}

html[data-theme="dark"] .rankwellpress-pro-cookie-reject {
    color: var(--rw-text-body, #cbd5e1);
    border-color: var(--rw-border-light, #475569);
}

html[data-theme="dark"] .rankwellpress-pro-cookie-reject:hover,
html[data-theme="dark"] .rankwellpress-pro-cookie-reject:focus-visible {
    background: color-mix(in srgb, var(--rw-text-heading, #f1f5f9) 10%, transparent);
    color: var(--rw-text-heading, #f1f5f9);
}
