/* ═══════════════════════════════════════════════════════════════
   HappyTextil · cookie-consent.css v1
   GDPR banner + settings modal — Toyland v3 design system
   ═══════════════════════════════════════════════════════════════ */

/* ── Banner ───────────────────────────────────────────────────── */
.ht-cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: #fff;
  border-top: 1px solid var(--line, #e8e0d4);
  box-shadow: 0 -4px 32px rgba(28, 25, 22, .14);
  padding: 1.25rem 1rem;
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.ht-cc-banner.ht-cc-visible {
  transform: translateY(0);
}

.ht-cc-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ht-cc-banner-text {
  flex: 1 1 320px;
}
.ht-cc-banner-title {
  display: block;
  font-size: .94rem;
  font-weight: 800;
  color: var(--ink, #1a1816);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.ht-cc-banner-text p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-60, #6b6560);
}

.ht-cc-banner-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Shared button styles ─────────────────────────────────────── */
.ht-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.01em;
  border-radius: 999px;
  padding: .55rem 1.25rem;
  transition:
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
  white-space: nowrap;
}
.ht-cc-btn:active { transform: scale(.97); }

.ht-cc-btn-rose {
  background: var(--rose, #b84468);
  color: #fff;
}
.ht-cc-btn-rose:hover { background: #a33c5d; box-shadow: 0 4px 16px rgba(184,68,104,.35); }

.ht-cc-btn-ghost {
  background: transparent;
  color: var(--ink, #1a1816);
  border: 1.5px solid var(--line, #e8e0d4);
}
.ht-cc-btn-ghost:hover { background: var(--surface-1, #fdfaf6); border-color: var(--ink-40, #9a9490); }

.ht-cc-btn-link {
  background: transparent;
  color: var(--teal, #1a6268);
  padding: .55rem .6rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ht-cc-btn-link:hover { color: #14494d; }

.ht-cc-btn-wide { width: 100%; }

/* ── Overlay ──────────────────────────────────────────────────── */
.ht-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(26, 24, 22, .52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.ht-cc-overlay.ht-cc-visible { opacity: 1; }

/* ── Modal card ───────────────────────────────────────────────── */
.ht-cc-modal {
  background: #fff;
  border-radius: var(--r-12, 1rem);
  box-shadow: 0 24px 72px rgba(26, 24, 22, .22);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(.97);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.ht-cc-overlay.ht-cc-visible .ht-cc-modal {
  transform: translateY(0) scale(1);
}

/* Modal head */
.ht-cc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line, #e8e0d4);
}
.ht-cc-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink, #1a1816);
  letter-spacing: -.02em;
}
.ht-cc-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface-1, #fdfaf6);
  cursor: pointer;
  color: var(--ink-60, #6b6560);
  transition: background .2s ease, color .2s ease;
}
.ht-cc-modal-close:hover { background: var(--surface-blob, #f5e6d4); color: var(--ink, #1a1816); }

/* Modal body */
.ht-cc-modal-body {
  overflow-y: auto;
  padding: .5rem 1.5rem 1rem;
  flex: 1;
}
.ht-cc-modal-body::-webkit-scrollbar { width: 5px; }
.ht-cc-modal-body::-webkit-scrollbar-thumb { background: var(--line, #e8e0d4); border-radius: 4px; }

/* Category rows */
.ht-cc-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line, #e8e0d4);
}
.ht-cc-row:last-of-type { border-bottom: none; }

.ht-cc-row-info {
  flex: 1;
}
.ht-cc-row-info strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink, #1a1816);
  margin-bottom: .25rem;
}
.ht-cc-row-info p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--ink-60, #6b6560);
}

/* Always-on badge */
.ht-cc-always-on {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal, #1a6268);
  background: var(--teal-pale, #e6f3f4);
  border-radius: 999px;
  padding: .25rem .75rem;
  white-space: nowrap;
  margin-top: .15rem;
}

/* Toggle switch */
.ht-cc-toggle {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  cursor: pointer;
  margin-top: .1rem;
}
.ht-cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ht-cc-track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--line, #e8e0d4);
  transition: background .2s ease;
  position: relative;
}
.ht-cc-toggle input:checked + .ht-cc-track {
  background: var(--teal, #1a6268);
}
.ht-cc-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26,24,22,.2);
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.ht-cc-toggle input:checked + .ht-cc-track .ht-cc-thumb {
  transform: translateX(20px);
}
.ht-cc-toggle input:focus-visible + .ht-cc-track {
  outline: 3px solid var(--teal, #1a6268);
  outline-offset: 2px;
}

/* GDPR note */
.ht-cc-gdpr-note {
  margin: 1rem 0 .5rem;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--ink-40, #9a9490);
}

/* Modal footer */
.ht-cc-modal-foot {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line, #e8e0d4);
}

/* Body scroll lock when modal open */
body.ht-cc-modal-open { overflow: hidden; }

/* Hide the reCAPTCHA badge — legal notice included in forms instead */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* reCAPTCHA legal notice */
.recaptcha-notice {
  font-size: .72rem;
  line-height: 1.55;
  color: var(--ink-40, #9a9490);
  margin-top: .5rem;
}
.recaptcha-notice a {
  color: var(--teal, #1a6268);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Cookie settings link in footer ──────────────────────────── */
a[data-cookie-settings],
button[data-cookie-settings] {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.4);
}
a[data-cookie-settings]:hover,
button[data-cookie-settings]:hover {
  text-decoration-color: currentColor;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ht-cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .ht-cc-banner-actions {
    flex-direction: column;
  }
  .ht-cc-btn {
    width: 100%;
    justify-content: center;
  }
  .ht-cc-btn-link { text-align: center; }
  .ht-cc-modal { max-height: 95vh; border-radius: var(--r-8, .75rem) var(--r-8, .75rem) 0 0; }
  .ht-cc-overlay { align-items: flex-end; padding: 0; }
}
