/* ═══════════════════════════════════════════════════════════
   Silverman Cookie Consent — Banner Styles
   Customise in Appearance → Customise → Additional CSS
   All selectors are prefixed #scc-banner or .scc- to avoid
   conflicts with your theme.
═══════════════════════════════════════════════════════════ */

#scc-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 18px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    font-family: inherit;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

#scc-banner.scc-bottom { bottom: 0; }
#scc-banner.scc-top    { top: 0; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18); }

/* Slide out on dismiss */
#scc-banner.scc-hidden { opacity: 0; pointer-events: none; transform: translateY(60px); }
#scc-banner.scc-top.scc-hidden { transform: translateY(-60px); }

/* Inner layout */
.scc-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Text */
.scc-text {
    flex: 1 1 280px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.scc-policy-link {
    margin-left: 5px;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.scc-policy-link:hover { opacity: 1; }

/* Buttons */
.scc-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.scc-buttons button {
    padding: 10px 26px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}

.scc-buttons button:hover  { opacity: 0.88; }
.scc-buttons button:active { transform: scale(0.97); }
.scc-buttons button:focus  {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

/* ── Customisation hints (override in theme CSS) ──────────
   Example overrides for your theme's Additional CSS:

   #scc-banner {
       border-top: 3px solid #your-accent-colour;
       font-size: 15px;
   }

   #scc-accept {
       border-radius: 2px;
   }
──────────────────────────────────────────────────────── */

/* Push page content up so banner doesn't obscure anything */
body.scc-banner-visible {
    padding-bottom: 100px !important;
}

/* Mobile */
@media (max-width: 580px) {
    .scc-inner   { gap: 12px; }
    .scc-buttons { width: 100%; }
    .scc-buttons button { flex: 1; padding: 11px 16px; }

    body.scc-banner-visible {
        padding-bottom: 130px !important;
    }
}
body.drawer-open #scc-banner {
    right: 420px;
}

body.drawer-open #scc-banner .scc-text {
    font-size: 12px;
    line-height: 1.3;
}

body.drawer-open #scc-banner .scc-buttons button {
    padding: 6px 16px;
    font-size: 12px;
}