/* Scribbled Fox cookie consent: midnight card, gold keyline, Cormorant title, Outfit body.
   Three equal buttons on purpose; an unequal choice is a dark pattern. */
.sf-consent,
.sf-consent * { box-sizing: border-box; }
.sf-consent {
  position: fixed;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  z-index: 99990;
  width: min(400px, calc(100vw - 2rem));
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #F5EEE1;
  animation: sf-consent-in 0.35s ease both;
}
.sf-consent[hidden] { display: none; }
@keyframes sf-consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sf-consent__card {
  position: relative;
  background: #0E1428;
  border: 1px solid rgba(201, 162, 75, 0.7);
  outline: 1px solid rgba(201, 162, 75, 0.25);
  outline-offset: 4px;
  border-radius: 10px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 24px 60px rgba(14, 20, 40, 0.45);
}
.sf-consent__star {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #C9A24B;
  font-size: 14px;
  line-height: 1;
}
.sf-consent__h2 {
  margin: 0 0 0.5rem !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  color: #F5EEE1 !important;
}
.sf-consent__p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245, 238, 225, 0.82);
}
.sf-consent__link,
.sf-consent__link:visited {
  color: #E8C87E !important;
  -webkit-text-fill-color: #E8C87E;
  text-decoration: underline;
}
.sf-consent__prefs {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0 0.25rem;
  border-top: 1px solid rgba(201, 162, 75, 0.28);
}
.sf-consent__toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.35rem 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #F5EEE1 !important;
  font: inherit !important;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
}
.sf-consent__toggle.is-locked { cursor: default; opacity: 0.85; }
.sf-consent__switch {
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  margin-top: 2px;
  border-radius: 11px;
  background: rgba(245, 238, 225, 0.22);
  position: relative;
  transition: background-color 0.2s ease;
}
.sf-consent__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #F5EEE1;
  transition: transform 0.2s ease;
}
.sf-consent__toggle[aria-checked="true"] .sf-consent__switch { background: #C9A24B; }
.sf-consent__toggle[aria-checked="true"] .sf-consent__knob { transform: translateX(18px); background: #0E1428; }
.sf-consent__toggle:focus-visible .sf-consent__switch { box-shadow: 0 0 0 2px #E8C87E; }
.sf-consent__toggle-label {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  color: #F5EEE1;
  -webkit-text-fill-color: #F5EEE1;
}
.sf-consent__toggle-label small {
  display: block;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(245, 238, 225, 0.7);
  -webkit-text-fill-color: rgba(245, 238, 225, 0.7);
}
.sf-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.sf-consent__btn {
  display: inline-block;
  width: 100%;
  padding: 11px 6px !important;
  background: transparent !important;
  border: 1px solid #C9A24B !important;
  border-radius: 2px !important;
  color: #E8C87E !important;
  -webkit-text-fill-color: #E8C87E;
  font: 600 11.5px/1.2 "Outfit", system-ui, sans-serif !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sf-consent__btn:hover,
.sf-consent__btn:focus-visible {
  background: #C9A24B !important;
  color: #0E1428 !important;
  -webkit-text-fill-color: #0E1428;
  outline: none;
}
.sf-consent-tab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 99980;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #0E1428 !important;
  border: 1px solid rgba(201, 162, 75, 0.7) !important;
  border-radius: 50% !important;
  color: #C9A24B !important;
  -webkit-text-fill-color: #C9A24B;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 20, 40, 0.3) !important;
}
.sf-consent-tab[hidden] { display: none !important; }
.sf-consent-tab:hover { color: #E8C87E !important; }
@media (max-width: 480px) {
  .sf-consent { left: 0.75rem; bottom: 0.75rem; width: calc(100vw - 1.5rem); }
  .sf-consent__actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-consent { animation: none; }
  .sf-consent__switch, .sf-consent__knob, .sf-consent__btn { transition: none; }
}

/* Fixes after the first live check (16 Sep 2026): the kit styles every <button> uppercase with letter
   spacing, which reached the switch labels; and display:grid was beating the [hidden] attribute. */
.sf-consent__prefs[hidden] { display: none !important; }
.sf-consent__toggle,
.sf-consent__toggle * {
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}
.sf-consent__toggle-label { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {
  .sf-consent__card { padding: 1.1rem 1.1rem 1rem; }
  .sf-consent__h2 { font-size: 1.4rem !important; }
  .sf-consent__p { font-size: 0.86rem; margin-bottom: 0.8rem; }
  .sf-consent__actions { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
  .sf-consent__btn { padding: 10px 4px !important; font-size: 10.5px !important; letter-spacing: 0.6px; }
}
