/* LoveCookies CMP banner + preferences */

:root {
  --lc-accent: #00c471;
  --lc-accent-2: #ff477e;
  --lc-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  --lc-radius: 18px;
}

.lc-root {
  pointer-events: auto;
  width: min(680px, calc(100% - 32px));
  margin: 0 auto 16px;
  font-family: var(--lc-font);
}

.lc-card {
  background: #fff;
  border-radius: var(--lc-radius);
  padding: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.lc-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.lc-body {
  margin: 0 0 18px;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
}

.lc-link {
  font-weight: 600;
  color: var(--lc-accent);
  text-decoration: none;
}

.lc-link:hover {
  text-decoration: underline;
}

.lc-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 520px) {
  .lc-actions {
    grid-template-columns: 1fr;
  }
}

.lc-btn {
  border: 2px solid transparent;
  border-radius: calc(var(--lc-radius) - 6px);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.lc-btn:active {
  transform: translateY(1px);
}

.lc-btn--solid {
  background: linear-gradient(
    135deg,
    var(--lc-accent),
    var(--lc-accent-2, #f97316)
  );
  color: #fff;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.lc-btn--outline {
  border-color: rgba(15, 23, 42, 0.15);
  background: #fff;
  color: #111;
}

.lc-btn--ghost {
  background: rgba(15, 23, 42, 0.04);
  color: #111;
}

.lc-preferences {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lc-pref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lc-pref-overline {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  color: #a0aec0;
  margin: 0 0 6px;
}

.lc-pref-header h3 {
  margin: 0;
  font-size: 20px;
  color: #111;
}

.lc-pref-body {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: calc(var(--lc-radius) - 4px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
}

.lc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: calc(var(--lc-radius) - 8px);
}

.lc-toggle-copy p {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.lc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 26px;
}

.lc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.lc-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lc-switch input:checked + .lc-slider {
  background: var(--lc-accent);
}

.lc-switch input:checked + .lc-slider::before {
  transform: translateX(22px);
}

.lc-switch input:disabled + .lc-slider {
  background-color: rgba(15, 23, 42, 0.2);
  cursor: not-allowed;
}

.lc-pref-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 640px) {
  .lc-card {
    padding: 18px;
  }

  .lc-pref-footer {
    flex-direction: column;
  }

  .lc-switch {
    flex-shrink: 0;
  }
}
