/* Cookie consent banner + preferences modal. Kept as its own small file,
   separate from main.css, so it's easy to find/maintain. */

.sc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  background: #1a1a1e;
  color: #f5f5f7;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  padding: 1rem 1.25rem;
}
.sc-cookie-banner[hidden] { display: none; }

.sc-cookie-banner__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sc-cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d6d6db;
  flex: 1 1 320px;
}
.sc-cookie-banner__text a {
  color: #f15a24;
  text-decoration: underline;
}

.sc-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.sc-cookie-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.sc-cookie-btn--solid {
  background: #f15a24;
  color: #fff;
}
.sc-cookie-btn--solid:hover { background: #d94e1c; }

.sc-cookie-btn--outline {
  background: transparent;
  color: #f5f5f7;
  border-color: #f5f5f7;
}
.sc-cookie-btn--outline:hover { background: rgba(255, 255, 255, 0.08); }

.sc-cookie-btn--ghost {
  background: transparent;
  color: #b6b6bd;
  border-color: transparent;
  text-decoration: underline;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

/* Preferences modal */
.sc-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sc-cookie-modal[hidden] { display: none; }

.sc-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.sc-cookie-modal__panel {
  position: relative;
  background: #1a1a1e;
  color: #f5f5f7;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  max-height: 90vh;
  overflow-y: auto;
}

.sc-cookie-modal__panel h3 {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
}

.sc-cookie-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: #b6b6bd;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.sc-cookie-modal__close:hover { color: #fff; }

.sc-cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sc-cookie-row:first-of-type { border-top: none; }

.sc-cookie-row__text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.sc-cookie-row__text p {
  margin: 0;
  font-size: 0.8rem;
  color: #b6b6bd;
  line-height: 1.45;
}

.sc-cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}
.sc-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sc-cookie-toggle span {
  position: absolute;
  inset: 0;
  background: #46464e;
  border-radius: 999px;
  transition: background .2s ease;
}
.sc-cookie-toggle span::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
}
.sc-cookie-toggle input:checked + span { background: #f15a24; }
.sc-cookie-toggle input:checked + span::before { transform: translateX(18px); }
.sc-cookie-toggle--locked span { background: #6b6b72; opacity: 0.8; }
.sc-cookie-toggle--locked { cursor: not-allowed; }

.sc-cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

/* Small persistent re-opener so consent can be withdrawn/changed anytime */
.sc-cookie-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 99997;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1a1a1e;
  color: #f5f5f7;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
}
.sc-cookie-reopen.is-visible { display: flex; }
.sc-cookie-reopen:hover { background: #26262c; }

/* Inline "consent needed" facade shown over gated video-button triggers */
.sc-media-consent-prompt {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sc-media-consent-prompt__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.sc-media-consent-prompt__box {
  position: relative;
  background: #1a1a1e;
  color: #f5f5f7;
  border-radius: 12px;
  max-width: 380px;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
}
.sc-media-consent-prompt__box p {
  font-size: 0.9rem;
  color: #d6d6db;
  margin: 0 0 1.1rem;
}
.sc-media-consent-prompt__actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

@media (max-width: 700px) {
  .sc-cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .sc-cookie-banner__actions { justify-content: stretch; }
  .sc-cookie-banner__actions .sc-cookie-btn { flex: 1 1 auto; text-align: center; }
}
