/*!
 * Sikzal Cookie Consent — styles
 * Express Mobile Detailing Canada.
 * Centred modal card, monochrome type-led layout, pill actions.
 * All selectors are scoped under .szcc-* to avoid any Elementor / theme collision.
 */

.szcc-root {
  --szcc-brand: #DC2626;
  --szcc-brand-dark: #B91C1C;
  --szcc-ink: #0B0B0B;
  --szcc-ink-soft: #3C3C3C;
  --szcc-ink-faint: #6B6B6B;
  --szcc-surface: #ffffff;
  --szcc-border: rgba(11, 11, 11, 0.12);
  --szcc-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.40), 0 12px 32px -12px rgba(0, 0, 0, 0.16);
  --szcc-radius: 24px;
  --szcc-radius-sm: 14px;
  --szcc-focus: #2563EB;

  /* Action pills */
  --szcc-primary-bg: #0B0B0B;
  --szcc-primary-bg-hover: #262626;
  --szcc-primary-fg: #ffffff;
  --szcc-secondary-bg: #E4E4E4;
  --szcc-secondary-bg-hover: #D8D8D8;
  --szcc-secondary-fg: #0B0B0B;

  position: fixed;
  inset: 0;
  z-index: 2147483000;      /* above Elementor sticky headers / popups */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.szcc-root.szcc-open { display: flex; }
.szcc-root *, .szcc-root *::before, .szcc-root *::after { box-sizing: border-box; }

/* Backdrop — a plain scrim, no blur, so the page stays legible behind the card */
.szcc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.45);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.szcc-overlay.szcc-overlay-show { opacity: 1; }

/* Card (banner + panel share it) */
.szcc-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: var(--szcc-surface);
  border-radius: var(--szcc-radius);
  box-shadow: var(--szcc-shadow);
  padding: 52px 56px 56px;
  color: var(--szcc-ink);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.szcc-card.szcc-in { opacity: 1; transform: translateY(0) scale(1); }

.szcc-panel { max-width: 720px; padding: 44px 48px 46px; }

/* Type */
.szcc-eyebrow {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--szcc-ink);
}
.szcc-title {
  margin: 0 0 26px;
  font-size: 38px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--szcc-ink);
}
.szcc-desc {
  margin: 0 0 34px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--szcc-ink-soft);
}
.szcc-desc-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.szcc-desc-link:hover { color: var(--szcc-ink); }
.szcc-desc-link:focus-visible { outline: 2px solid var(--szcc-focus); outline-offset: 3px; border-radius: 3px; }

/* Actions — pills, content-width, left aligned */
.szcc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.szcc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.15;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex: 0 0 auto;
  text-align: center;
}
.szcc-btn-primary {
  background: var(--szcc-primary-bg);
  color: var(--szcc-primary-fg);
}
.szcc-btn-primary:hover { background: var(--szcc-primary-bg-hover); }
.szcc-btn-secondary {
  background: var(--szcc-secondary-bg);
  color: var(--szcc-secondary-fg);
}
.szcc-btn-secondary:hover { background: var(--szcc-secondary-bg-hover); }
.szcc-btn-ghost {
  background: transparent;
  color: var(--szcc-ink-faint);
  padding: 18px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.szcc-btn-ghost:hover { color: var(--szcc-ink); }

.szcc-btn:focus-visible {
  outline: 3px solid var(--szcc-focus);
  outline-offset: 2px;
}

/* Footer policy links */
.szcc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--szcc-border);
}
.szcc-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--szcc-ink-faint);
  text-decoration: none;
}
.szcc-link:hover { color: var(--szcc-ink); text-decoration: underline; text-underline-offset: 3px; }
.szcc-link:focus-visible { outline: 2px solid var(--szcc-focus); outline-offset: 3px; border-radius: 3px; }

/* Settings panel — category rows */
.szcc-panel .szcc-title { font-size: 30px; margin-bottom: 18px; }
.szcc-panel .szcc-desc { font-size: 16px; margin-bottom: 26px; }

.szcc-cat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 30px;
}
.szcc-cat {
  border: 1px solid var(--szcc-border);
  border-radius: var(--szcc-radius-sm);
  padding: 16px 18px;
  background: transparent;
}
.szcc-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.szcc-cat-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--szcc-ink);
}
.szcc-cat-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--szcc-ink-faint);
  background: rgba(11, 11, 11, 0.06);
  padding: 4px 9px;
  border-radius: 999px;
}
.szcc-cat-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--szcc-ink-soft);
}

/* Toggle switch — brand red is the one colour accent in the whole UI */
.szcc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  margin-left: auto;
  flex: 0 0 auto;
  cursor: pointer;
}
.szcc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.szcc-slider {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.20);
  border-radius: 999px;
  transition: background 0.24s ease;
}
.szcc-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.szcc-switch input:checked + .szcc-slider { background: var(--szcc-brand); }
.szcc-switch input:checked + .szcc-slider::before { transform: translateX(20px); }
.szcc-switch input:disabled + .szcc-slider { background: rgba(220, 38, 38, 0.45); cursor: not-allowed; }
.szcc-switch input:disabled { cursor: not-allowed; }
.szcc-switch input:focus-visible + .szcc-slider {
  outline: 3px solid var(--szcc-focus);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .szcc-card { padding: 40px 36px 42px; }
  .szcc-title { font-size: 30px; }
  .szcc-panel { padding: 36px 32px 38px; }
  .szcc-panel .szcc-title { font-size: 26px; }
}

@media (max-width: 560px) {
  .szcc-root { padding: 0; align-items: flex-end; }
  .szcc-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 30px 22px 26px;
    max-height: 92vh;
    transform: translateY(28px);
  }
  .szcc-card.szcc-in { transform: translateY(0); }
  .szcc-eyebrow { font-size: 14.5px; margin-bottom: 8px; }
  .szcc-title { font-size: 24px; margin-bottom: 18px; }
  .szcc-desc { font-size: 15.5px; margin-bottom: 24px; }
  .szcc-actions { flex-direction: column; align-items: stretch; }
  .szcc-btn { width: 100%; padding: 16px 24px; }
  .szcc-btn-ghost { order: 3; padding: 12px; }
  .szcc-panel .szcc-title { font-size: 22px; }
}

/* Dark theme (viewer preference) */
@media (prefers-color-scheme: dark) {
  .szcc-root {
    --szcc-ink: #F5F5F5;
    --szcc-ink-soft: #C6C6C6;
    --szcc-ink-faint: #9A9A9A;
    --szcc-surface: #141414;
    --szcc-border: rgba(255, 255, 255, 0.14);
    --szcc-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.85), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --szcc-focus: #60A5FA;

    --szcc-primary-bg: #FFFFFF;
    --szcc-primary-bg-hover: #E4E4E4;
    --szcc-primary-fg: #0B0B0B;
    --szcc-secondary-bg: #2C2C2C;
    --szcc-secondary-bg-hover: #383838;
    --szcc-secondary-fg: #F5F5F5;
  }
  .szcc-overlay { background: rgba(0, 0, 0, 0.62); }
  .szcc-cat-badge { background: rgba(255, 255, 255, 0.08); }
  .szcc-slider { background: rgba(255, 255, 255, 0.22); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .szcc-overlay, .szcc-card, .szcc-btn, .szcc-slider, .szcc-slider::before {
    transition: none !important;
  }
  .szcc-card { transform: none; }
}

/* High-contrast / forced colors */
@media (forced-colors: active) {
  .szcc-card { border: 1px solid CanvasText; }
  .szcc-btn { border: 1px solid CanvasText; }
}
