/* Tennis Now consent */

.footer-link-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.footer-link-button:hover {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.consent-open {
  overflow: hidden;
}

.consent-banner {
  position: fixed;
  z-index: 1000;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.consent-banner-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #1f1f1f;
  color: #fffceb;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.consent-banner-copy {
  max-width: 620px;
}

.consent-banner-copy h2 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.consent-banner-copy p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
}

.consent-banner-copy a,
.consent-dialog a {
  color: inherit;
  text-underline-offset: 3px;
}

.consent-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.consent-button,
.consent-text-button,
.consent-close {
  font: inherit;
  cursor: pointer;
}

.consent-button {
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}

.consent-banner .consent-button:hover {
  background: #fffceb;
  color: #1f1f1f;
}

.consent-text-button {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-overlay {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(31, 31, 31, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.consent-dialog {
  width: min(100%, 620px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  background: #fffceb;
  color: #1f1f1f;
  border: 1px solid rgba(31, 31, 31, 0.12);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.20);
}

.consent-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.consent-kicker {
  margin: 0 0 9px;
  color: #1e3b29;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.consent-dialog h2 {
  margin: 0;
  max-width: 480px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.consent-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(31, 31, 31, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: #1f1f1f;
  font-size: 24px;
  line-height: 1;
}

.consent-close:hover {
  background: #fff;
}

.consent-dialog-intro {
  max-width: 520px;
  margin: 18px 0 26px;
  color: rgba(31, 31, 31, 0.70);
  font-size: 15px;
  line-height: 1.55;
}

.consent-categories {
  display: grid;
  gap: 10px;
}

.consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(31, 31, 31, 0.09);
  border-radius: 16px;
}

.consent-category-copy {
  max-width: 400px;
}

.consent-category-heading {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}

.consent-category-copy p {
  margin: 0;
  color: rgba(31, 31, 31, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.consent-required,
.consent-inactive {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.consent-required {
  background: #c1db00;
  color: #1f1f1f;
}

.consent-inactive {
  background: rgba(31, 31, 31, 0.07);
  color: rgba(31, 31, 31, 0.62);
}

.consent-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-switch-visual {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.12);
}

.consent-switch-visual::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #1f1f1f;
  transition: transform 160ms ease;
}

.consent-switch input:checked + .consent-switch-visual {
  background: #c1db00;
}

.consent-switch input:checked + .consent-switch-visual::after {
  transform: translateX(20px);
}

.consent-dialog-links {
  margin: 20px 0 0;
  color: rgba(31, 31, 31, 0.62);
  font-size: 12px;
}

.consent-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.consent-dialog .consent-button {
  min-width: 130px;
  border-color: #1f1f1f;
  background: #1f1f1f;
  color: #fffceb;
}

.consent-dialog .consent-button:hover {
  background: #c1db00;
  border-color: #c1db00;
  color: #1f1f1f;
}

.consent-inline-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  font-size: 12px;
}

.consent-inline-links a,
.consent-inline-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-inline-links a:hover,
.consent-inline-button:hover {
  color: #1f1f1f;
}

@media (max-width: 800px) {
  .consent-banner-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .consent-overlay {
    padding: 12px;
    align-items: end;
  }

  .consent-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 24px 20px 22px;
    border-radius: 24px;
  }

  .consent-dialog h2 {
    font-size: 27px;
  }

  .consent-category {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .consent-dialog-actions {
    justify-content: stretch;
  }

  .consent-dialog .consent-button {
    width: 100%;
  }

  .consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .consent-banner-inner {
    padding: 18px;
    border-radius: 20px;
  }
}
