/* ==========================================================================
   RXN Cookie Kit — theme skin

   The plugin drives its whole appearance from custom properties on :root,
   so most of this file is just handing it the site's palette. The rest
   covers the few places where the plugin hardcodes a light value that a
   dark theme cannot inherit.

   This lives in the theme, not in the plugin. The plugin ships to every
   client site; how it looks on THIS site is the theme's business.

   Loaded with a dependency on the plugin's own stylesheet, so it always
   comes second and needs no !important anywhere.
   ========================================================================== */

:root {
    --rxnck-bg: rgba(13, 13, 20, 0.92);
    --rxnck-text: #e8e8f0; 
    --rxnck-muted: #bbbbbb;
    --rxnck-border: rgba(255, 255, 255, 0.1); 

    /* Deliberately resolved here, at :root, from the site brand rather than
       written as var(--rxn-brand) further down the tree. A custom property
       is substituted where it is declared, so this captures the orange once
       and keeps it — the per-tool colours that body.alat-* sets do not reach
       it. A consent banner that changed colour as you moved between pages
       would read as a bug, not as branding. */
    --rxnck-accent: var(--rxn-brand);
    --rxnck-accent-hover: var(--rxn-brand-2);

    /* Cookie Kit's own gold, kept for focus rings: it is the one colour in
       the banner that must not be confused with an action. */
    --rxnck-focus: #ffbf47;

    --rxnck-radius: 16px;
    --rxnck-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   SPACING

   The theme's reset — `.pocetna-page, .pocetna-page *` in pocetna.css —
   zeroes margin and padding on every element inside the body, and the banner
   is inside the body like everything else. Both that reset and the plugin's
   own `.rxnck-banner__inner` are specificity (0,1,0), so the tie is settled
   by load order, and pocetna.css loads after the plugin's stylesheet. The
   result is a banner with no padding at all.

   Twelve of the plugin's spacing rules lose that way. Rather than nudge the
   global reset — it is inherited by every page on the site — the skin takes
   ownership of the banner's spacing and states it under #rxnck-root. An id
   is (1,0,0), so the reset cannot reach it and load order stops mattering.

   Treat these as the skin's own values, not as a copy of the plugin's. If a
   plugin update changes its padding, this file still decides.
   ========================================================================== */
#rxnck-root .rxnck-banner__inner {
    padding: 24px;
    margin: 0 auto;
}

#rxnck-root .rxnck-actions {
    margin-top: 18px;
}

#rxnck-root .rxnck-button,
#rxnck-root .rxnck-inline-settings {
    padding: 10px 18px;
}

#rxnck-root .rxnck-categories {
    margin-top: 16px;
}

#rxnck-root .rxnck-category {
    padding: 14px;
}

#rxnck-root .rxnck-category__header {
    margin-bottom: 6px;
}

#rxnck-root .rxnck-revisit {
    padding: 10px 18px;
}

#rxnck-root .rxnck-revisit--icon {
    padding: 12px;
}

#rxnck-root .rxnck-embed__placeholder {
    padding: 20px;
}

/* Rendered as a sibling of #rxnck-root, not inside it, so it needs its own
   way past the reset — body raises it to (0,1,1). */
body .rxnck-noscript {
    padding: 12px 16px;
}

/* The plugin's own responsive steps sit at (0,1,0) too, so they need the
   same treatment or the banner keeps desktop spacing on a phone. */
@media (min-width: 900px) {
    #rxnck-root .rxnck-actions {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    #rxnck-root .rxnck-banner__inner {
        padding: 18px;
    }
}

/* ========== PANEL ========== */
.rxnck-banner {
    font-family: 'Outfit', sans-serif;
}

.rxnck-banner__inner {
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
}

.rxnck-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
}

.rxnck-banner p {
    color: var(--rxnck-muted);
    line-height: 1.65;
}

.rxnck-banner a {
    color: var(--rxnck-accent);
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.rxnck-banner a:hover {
    color: var(--rxn-brand-3);
}

/* ========== ACTIONS ==========
   Accept and Reject deliberately share .rxnck-button--primary in the plugin
   markup, and they must keep sharing every visual property here. Making
   rejection quieter than acceptance is the exact dark pattern this tool
   exists to avoid — do not "fix" the symmetry below. */
.rxnck-button,
.rxnck-revisit,
.rxnck-inline-settings {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.rxnck-button--primary {
    color: var(--rxn-on-brand);
    background: var(--rxn-gradient-cta);
    border-color: transparent;
}

.rxnck-button--primary:hover {
    background: var(--rxn-gradient-cta);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--rxn-brand-rgb), 0.35);
}

.rxnck-button--secondary,
.rxnck-inline-settings {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.16);
    padding: 10px;
}

.rxnck-button--secondary:hover,
.rxnck-inline-settings:hover {
    color: var(--rxnck-accent);
    border-color: var(--rxnck-accent);
    background: rgba(var(--rxn-brand-rgb), 0.06);
}

.rxnck-button--link {
    color: var(--rxnck-muted);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rxnck-button--link:hover {
    color: var(--text-primary);
}

/* ========== CATEGORIES ========== */
.rxnck-category {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--rxnck-border);
    border-radius: 12px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.rxnck-category:hover {
    border-color: rgba(var(--rxn-brand-rgb), 0.3);
    background: rgba(var(--rxn-brand-rgb), 0.04);
}

.rxnck-category__name {
    color: var(--text-heading);
}

.rxnck-category input {
    accent-color: var(--rxnck-accent);
}

.rxnck-status {
    color: var(--rxnck-muted);
}

/* ========== FLOATING CONTROL ========== */
.rxnck-revisit {
    color: var(--rxn-on-brand);
    background: var(--rxn-gradient-cta);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.rxnck-revisit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--rxn-brand-rgb), 0.35);
}

/* The plugin forces the icon to white. On a light brand colour — gold, mint —
   that would vanish, so it follows the computed on-brand colour instead. */
.rxnck-revisit__icon {
    filter: none;
}

.rxnck-revisit--icon .rxnck-revisit__icon {
    opacity: 0.95;
}

/* ========== BLOCKED EMBED PLACEHOLDER ========== */
.rxnck-embed {
    background: var(--bg-secondary);
    border-color: var(--rxnck-border);
    border-radius: 12px;
}

.rxnck-embed__placeholder {
    color: var(--rxnck-muted);
    font-family: 'Outfit', sans-serif;
}

/* ========== NOSCRIPT NOTICE ========== */
.rxnck-noscript {
    color: #ffd9a8;
    background: rgba(241, 85, 35, 0.12);
    border: 1px solid rgba(241, 85, 35, 0.3);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
}

/* ========== COOKIE TABLE SHORTCODE ==========
   [rxnck_cookie_table] usually lands inside a legal page, where legal.css
   already makes every table a scrolling block. The plugin's own wrapper
   scrolls too, which would nest one scrollbar inside another — so inside
   that wrapper the table goes back to being a table. */
.rxnck-cookie-table-wrap {
    margin: 2rem 0;
    border-radius: 10px;
}

.legal-body .rxnck-cookie-table-wrap table,
.alat-content .rxnck-cookie-table-wrap table {
    display: table;
    margin: 0;
    overflow: visible;
}

.rxnck-cookie-table th {
    background: var(--bg-tertiary);
    color: var(--text-heading);
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-color: var(--rxnck-border);
}

.rxnck-cookie-table td {
    color: var(--text-secondary);
    border-color: var(--rxnck-border);
    line-height: 1.7;
}

.rxnck-cookie-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .rxnck-button,
    .rxnck-revisit,
    .rxnck-inline-settings,
    .rxnck-category {
        transition: none;
    }

    .rxnck-button--primary:hover,
    .rxnck-revisit:hover {
        transform: none;
    }
}
