/* Cookie consent banner + preferences modal for the event and community sites
   (same look as GDA Network, skin/network/scss/elements/_cookie-consent.scss).
   Plain CSS on purpose - the sites use different Bootstrap versions, so the buttons are styled here.
   Each site sets its accent colour with --cc-accent on the banner and modal. */

.cookie-consent-banner,
.cookie-consent-modal {
  --cc-accent: #a08658;
  font-family: inherit;
  text-align: left;
  box-sizing: border-box;
}

.cookie-consent-banner *,
.cookie-consent-modal * {
  box-sizing: border-box;
}

.cookie-consent-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: #14110a;
  border-top: 1px solid #2a2a2a;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  padding: 18px 20px;
}

.cookie-consent-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-inner p {
  margin: 0;
  color: #bcbcbc;
  font-size: 14px;
  line-height: 1.6;
  flex: 1 1 320px;
}

.cookie-consent-inner p a {
  color: var(--cc-accent);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.cookie-consent-banner .cc-btn,
.cookie-consent-modal .cc-btn {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: var(--cc-accent);
  border: 1px solid var(--cc-accent);
  border-radius: 20px;
  box-shadow: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.cookie-consent-banner .cc-btn:hover,
.cookie-consent-modal .cc-btn:hover {
  opacity: 0.85;
}

.cookie-consent-banner .cc-btn-outline,
.cookie-consent-modal .cc-btn-outline {
  background: transparent;
  color: var(--cc-accent);
}

.cookie-consent-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-consent-modal-inner {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: #1b1b1b;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 28px 26px;
}

.cookie-consent-modal-inner h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  text-transform: none;
}

.cookie-consent-modal-inner > p {
  color: #9c9c9c;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.cookie-consent-category {
  border-top: 1px solid #2a2a2a;
  padding: 14px 0;
}

.cookie-consent-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-consent-category-header strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.cookie-consent-category p {
  margin: 6px 0 0;
  color: #9c9c9c;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-consent-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
}

.cookie-consent-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.cookie-consent-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #3a3a3a;
  border-radius: 22px;
  transition: 0.15s;
}

.cookie-consent-switch .slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.15s;
}

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

.cookie-consent-switch input:checked + .slider::before {
  transform: translateX(18px);
}

.cookie-consent-switch input:disabled + .slider {
  background: #4a4a4a;
  cursor: default;
  opacity: 0.7;
}

.cookie-consent-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Video placeholder until marketing consent (or a click on "Load video").
   Fills its parent, which keeps the 16:9 box (e.g. .game-detail .video on BGD). */
.video-consent-gate {
  --cc-accent: #a08658;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  background-size: cover;
  background-position: center;
  font-family: inherit;
}

.video-consent-gate iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-consent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.video-consent-overlay .play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.video-consent-overlay .play-icon::before {
  content: "";
  margin-left: 4px;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.video-consent-overlay p {
  max-width: 420px;
  margin: 0;
  color: #dadada;
  font-size: 13px;
  line-height: 1.6;
}

.video-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.video-consent-gate .cc-btn {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cc-accent);
  border: 1px solid var(--cc-accent);
  border-radius: 20px;
  cursor: pointer;
}

.video-consent-gate .cc-btn-outline {
  background: transparent;
  color: var(--cc-accent);
}

@media (max-width: 575px) {
  .cookie-consent-inner { flex-direction: column; align-items: stretch; }
  .cookie-consent-inner p { flex: 1 1 auto; }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions .cc-btn { flex: 1 1 auto; }
}
