/* ================================================================
   FX Cookie — Banner Styles v1.0.0
   ================================================================ */

/* ---- Reset & Base ---- */
#fxck-banner *,
#fxck-overlay *,
#fxck-reconsent * {
  box-sizing: border-box;
}

/* ---- CSS Variables (Dark theme — default) ---- */
#fxck-banner,
#fxck-overlay,
#fxck-reconsent {
  --fxck-accent: #8150f9;
  --fxck-bg: rgba(15, 22, 36, 0.97);
  --fxck-card-bg: rgba(24, 33, 50, 0.98);
  --fxck-text: #f0f4f8;
  --fxck-muted: rgba(160, 174, 192, 0.85);
  --fxck-border: rgba(255, 255, 255, 0.07);
  --fxck-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  --fxck-radius: 16px;
  --fxck-radius-sm: 10px;
  --fxck-track-off: rgba(255, 255, 255, 0.14);
  --fxck-font: inherit, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fxck-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--fxck-font);
}

/* ---- Light Theme ---- */
#fxck-banner.fxck-theme-light,
#fxck-overlay.fxck-theme-light,
#fxck-reconsent.fxck-theme-light {
  --fxck-bg: rgba(255, 255, 255, 0.97);
  --fxck-card-bg: rgba(248, 250, 252, 0.99);
  --fxck-text: #1a202c;
  --fxck-muted: rgba(74, 85, 104, 0.9);
  --fxck-border: rgba(0, 0, 0, 0.07);
  --fxck-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  --fxck-track-off: rgba(0, 0, 0, 0.12);
}

/* ---- Auto Theme (follow system) ---- */
@media (prefers-color-scheme: light) {

  #fxck-banner.fxck-theme-auto,
  #fxck-overlay.fxck-theme-auto,
  #fxck-reconsent.fxck-theme-auto {
    --fxck-bg: rgba(255, 255, 255, 0.97);
    --fxck-card-bg: rgba(248, 250, 252, 0.99);
    --fxck-text: #1a202c;
    --fxck-muted: rgba(74, 85, 104, 0.9);
    --fxck-border: rgba(0, 0, 0, 0.07);
    --fxck-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    --fxck-track-off: rgba(0, 0, 0, 0.12);
  }
}

/* ================================================================
   BANNER — Bottom / Top Bar
   ================================================================ */
#fxck-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--fxck-transition), opacity var(--fxck-transition);
  pointer-events: none;
}

#fxck-banner.fxck-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#fxck-banner.fxck-exit {
  transform: translateY(100%);
  opacity: 0;
}

#fxck-banner.fxck-pos-bottom {
  bottom: 0;
}

#fxck-banner.fxck-pos-top {
  top: 0;
  transform: translateY(-100%);
}

#fxck-banner.fxck-pos-top.fxck-visible {
  transform: translateY(0);
}

#fxck-banner.fxck-pos-top.fxck-exit {
  transform: translateY(-100%);
}

/* Center Popup - banner acts as overlay */
#fxck-banner.fxck-pos-center {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#fxck-banner.fxck-pos-center.fxck-visible {
  opacity: 1;
  transform: none;
}

#fxck-banner.fxck-pos-center.fxck-exit {
  opacity: 0;
  transform: none;
}

#fxck-banner .fxck-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

/* Card */
#fxck-banner .fxck-card {
  background: var(--fxck-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--fxck-shadow);
  border-top: 1px solid var(--fxck-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

#fxck-banner.fxck-pos-top .fxck-card {
  border-top: none;
  border-bottom: 1px solid var(--fxck-border);
}

#fxck-banner.fxck-pos-center .fxck-card {
  position: relative;
  z-index: 1;
  border-top: none;
  border-radius: var(--fxck-radius);
  border: 1px solid var(--fxck-border);
  max-width: 520px;
  width: calc(100% - 40px);
  flex-direction: column;
  align-items: stretch;
  padding: 28px;
  transform: scale(0.93);
  transition: transform var(--fxck-transition);
}

#fxck-banner.fxck-pos-center.fxck-visible .fxck-card {
  transform: scale(1);
}

/* Card body (icon + text) */
.fxck-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.fxck-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.fxck-text {
  min-width: 0;
}

.fxck-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fxck-text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.fxck-desc {
  font-size: 13px;
  color: var(--fxck-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.fxck-policy {
  color: var(--fxck-accent);
  text-decoration: none;
  font-weight: 500;
}

.fxck-policy:hover {
  text-decoration: underline;
}

/* Actions */
.fxck-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#fxck-banner.fxck-pos-center .fxck-actions {
  margin-top: 20px;
  justify-content: flex-end;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.fxck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px !important;
  border-radius: var(--fxck-radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--fxck-font);
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.fxck-btn-primary {
  background: var(--fxck-accent);
  color: #fff;
  border-color: var(--fxck-accent);
}

.fxck-btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--fxck-accent-35, rgba(14, 165, 233, 0.35));
}

.fxck-btn-outline {
  background: transparent;
  color: var(--fxck-muted);
  border-color: var(--fxck-border);
}

.fxck-btn-outline:hover {
  border-color: var(--fxck-accent);
  color: var(--fxck-accent);
}

.fxck-btn-ghost {
  background: transparent;
  color: var(--fxck-muted);
  border-color: transparent;
  padding-left: 10px;
  padding-right: 10px;
}

.fxck-btn-ghost:hover {
  color: var(--fxck-text);
  background: var(--fxck-border);
}

/* ================================================================
   CUSTOMIZE OVERLAY & MODAL
   ================================================================ */
#fxck-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fxck-transition);
  pointer-events: none;
}

#fxck-overlay.fxck-visible {
  opacity: 1;
  pointer-events: auto;
}

#fxck-overlay.fxck-exit {
  opacity: 0;
}

.fxck-modal {
  background: var(--fxck-card-bg);
  backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--fxck-border);
  border-radius: var(--fxck-radius);
  padding: 14px !important;
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--fxck-transition);
}

#fxck-overlay.fxck-visible .fxck-modal {
  transform: scale(1) translateY(0);
}

.fxck-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid var(--fxck-border);
}

.fxck-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fxck-text);
}

.fxck-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--fxck-border);
  color: var(--fxck-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.fxck-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.fxck-modal-body {
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
}

/* Cookie category row */
.fxck-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-bottom: 1px solid var(--fxck-border);
}

.fxck-cat:last-child {
  border-bottom: none;
}

.fxck-cat-fixed {
  opacity: 0.75;
}

.fxck-cat-info {
  flex: 1;
  min-width: 0;
}

.fxck-cat-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fxck-text);
  margin-bottom: 3px;
}

.fxck-cat-desc {
  display: block;
  font-size: 12px;
  color: var(--fxck-muted);
  line-height: 1.5;
}

.fxck-always-on {
  font-size: 11px;
  font-weight: 600;
  color: var(--fxck-accent);
  background: var(--fxck-accent-12, rgba(14, 165, 233, 0.12));
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fxck-modal-footer {
  padding: 20px 10px 5px;
  border-top: 1px solid var(--fxck-border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ================================================================
   TOGGLE SWITCH
   ================================================================ */
.fxck-toggle {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

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

.fxck-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--fxck-track-off);
  border-radius: 12px;
  transition: background 0.2s ease-in-out;
  position: relative;
  will-change: background;
}

.fxck-toggle-input:checked~.fxck-toggle-track {
  background: var(--fxck-accent);
}

.fxck-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.fxck-toggle-input:checked~.fxck-toggle-track .fxck-toggle-thumb {
  transform: translateX(20px);
}

/* ================================================================
   RE-CONSENT BUTTON
   ================================================================ */
#fxck-reconsent {
  position: fixed;
  z-index: 9999;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--fxck-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--fxck-border);
}


#fxck-reconsent:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

#fxck-reconsent.fxck-rpos-bottom-left {
  bottom: 1rem;
  left: 1rem;
}

#fxck-reconsent.fxck-rpos-bottom-right {
  bottom: 1rem;
  right: 1rem;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 640px) {
  #fxck-banner .fxck-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
  }

  .fxck-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .fxck-actions .fxck-btn {
    flex: 1;
    justify-content: center;
  }

  .fxck-btn-ghost {
    width: 100%;
    border: 1px solid var(--fxck-border);
    border-radius: var(--fxck-radius-sm);
  }

  .fxck-modal {
    max-height: 95vh;
  }

  .fxck-modal-footer {
    flex-wrap: wrap;
  }

  .fxck-modal-footer .fxck-btn {
    flex: 1;
  }

  .fxck-desc {
    margin-bottom: 10px;
  }
}