#sp-consent-root,
#sp-consent-root * {
  box-sizing: border-box;
}

#sp-consent-root [hidden] {
  display: none !important;
}

.sp-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  color: #1d2733;
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.22);
  font-family: Arial, Helvetica, sans-serif;
}

.sp-consent-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.sp-consent-copy h2,
.sp-consent-panel h2,
.sp-consent-category h3,
.sp-external-media h3 {
  margin: 0;
  color: #1d2733;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: none;
}

.sp-consent-copy h2,
.sp-consent-panel h2 {
  font-size: 21px;
  line-height: 1.25;
}

.sp-consent-copy p,
.sp-consent-intro,
.sp-consent-category p,
.sp-external-media p {
  margin: 7px 0 0;
  color: #46525f;
  font-size: 14px;
  line-height: 1.5;
}

.sp-consent-actions,
.sp-consent-modal-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.sp-consent-button {
  min-height: 42px;
  padding: 10px 16px;
  color: #15304a;
  background: #fff;
  border: 1px solid #15304a;
  border-radius: 5px;
  cursor: pointer;
  font: 600 14px/1.2 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sp-consent-button:hover,
.sp-consent-button:focus {
  color: #fff;
  background: #15304a;
  outline: none;
}

.sp-consent-primary {
  color: #fff;
  background: #0877bd;
  border-color: #0877bd;
}

.sp-consent-primary:hover,
.sp-consent-primary:focus {
  background: #065f97;
  border-color: #065f97;
}

.sp-consent-reopen {
  position: fixed;
  z-index: 2147482998;
  bottom: 14px;
  left: 14px;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: #15304a;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font: 600 13px/1.2 Arial, Helvetica, sans-serif;
}

.sp-consent-reopen:hover,
.sp-consent-reopen:focus {
  background: #0877bd;
  outline: none;
}

.sp-consent-reopen .fa {
  margin-right: 5px;
}

.sp-consent-modal {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 23, 34, 0.66);
  font-family: Arial, Helvetica, sans-serif;
}

.sp-consent-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 26px;
  color: #1d2733;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.3);
}

.sp-consent-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #273746;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 32px/38px Arial, Helvetica, sans-serif;
}

.sp-consent-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 15px;
  background: #f6f8fa;
  border: 1px solid #e1e6eb;
  border-radius: 7px;
}

.sp-consent-category-copy {
  flex: 1 1 auto;
}

.sp-consent-category h3,
.sp-external-media h3 {
  font-size: 16px;
  line-height: 1.3;
}

.sp-consent-required {
  flex: 0 0 auto;
  color: #17633b;
  font-size: 12px;
  font-weight: 700;
}

.sp-consent-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
}

.sp-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sp-consent-switch span {
  position: absolute;
  inset: 0;
  background: #aeb7c0;
  border-radius: 26px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sp-consent-switch span::before {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  content: '';
  transition: transform 0.15s ease;
}

.sp-consent-switch input:checked + span {
  background: #0877bd;
}

.sp-consent-switch input:checked + span::before {
  transform: translateX(20px);
}

.sp-consent-switch input:focus + span {
  box-shadow: 0 0 0 3px rgba(8, 119, 189, 0.25);
}

.sp-consent-modal-actions {
  margin-top: 20px;
}

.sp-external-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #111a24 0%, #20384d 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  aspect-ratio: 16 / 9;
}

.embed-container > .sp-external-media {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.sp-external-media-inner {
  max-width: 560px;
  padding: 28px;
  text-align: center;
}

.sp-external-media .sp-external-media-icon {
  display: block;
  margin-bottom: 12px;
  color: #7cc6ff;
  font-size: 52px;
  line-height: 1;
}

.sp-external-media h3 {
  color: #fff;
}

.sp-external-media p {
  color: #cbd3dc;
}

.sp-external-media .sp-consent-button {
  margin-top: 16px;
}

.sp-external-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 600px) {
  .sp-external-media {
    min-height: 200px;
  }

  .embed-container > .sp-external-media {
    min-height: 0;
  }

  .sp-external-media-inner {
    padding: 18px;
  }

  .sp-external-media .sp-external-media-icon {
    margin-bottom: 8px;
    font-size: 42px;
  }
}

@media (max-width: 900px) {
  .sp-consent-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

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

  .sp-consent-actions .sp-consent-button {
    flex: 1 1 180px;
  }
}

@media (max-width: 600px) {
  .sp-consent-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
  }

  .sp-consent-copy h2,
  .sp-consent-panel h2 {
    font-size: 19px;
  }

  .sp-consent-actions,
  .sp-consent-modal-actions {
    flex-direction: column;
  }

  .sp-consent-actions .sp-consent-button,
  .sp-consent-modal-actions .sp-consent-button {
    flex: 0 0 auto;
    width: 100%;
  }

  .sp-consent-panel {
    padding: 22px 15px 16px;
  }

  .sp-consent-category {
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
  }

  .sp-consent-required {
    max-width: 90px;
    text-align: right;
  }

  .sp-consent-reopen {
    bottom: 8px;
    left: 8px;
  }
}

/* SportPitt banner design */
#sp-consent-root .sp-consent-banner {
  max-width: 1040px;
  padding: 18px 20px;
  color: #fff;
  background: rgba(14, 21, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
}

#sp-consent-root .sp-consent-copy h2 {
  color: #fff;
  font-size: 18px;
}

#sp-consent-root .sp-consent-copy p {
  margin-top: 5px;
  color: #cbd3dc;
  font-size: 13px;
  line-height: 1.45;
}

#sp-consent-root .sp-consent-copy .sp-consent-privacy {
  margin-top: 8px;
}

#sp-consent-root .sp-consent-privacy a,
#sp-consent-root .sp-consent-privacy a:visited {
  color: #7cc6ff !important;
  font-weight: 700;
  text-decoration: none !important;
}

#sp-consent-root .sp-consent-privacy a:hover,
#sp-consent-root .sp-consent-privacy a:focus {
  color: #fff !important;
  text-decoration: none !important;
}

#sp-consent-root .sp-consent-privacy .fa {
  margin-right: 3px;
}

#sp-consent-root .sp-consent-actions {
  gap: 8px;
}

#sp-consent-root .sp-consent-actions .sp-consent-button {
  min-height: 42px;
  padding: 10px 14px;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid #687583 !important;
  border-radius: 6px;
  box-shadow: none !important;
  text-shadow: none !important;
}

#sp-consent-root .sp-consent-actions .sp-consent-primary {
  color: #fff !important;
  background: #167bd9 !important;
  border-color: #167bd9 !important;
}

#sp-consent-root .sp-consent-actions [data-sp-consent-action="reject"] {
  color: #15202b !important;
  background: #fff !important;
  border-color: #fff !important;
}

#sp-consent-root .sp-consent-actions .sp-consent-button:hover,
#sp-consent-root .sp-consent-actions .sp-consent-button:focus {
  color: #fff !important;
  background: #263442 !important;
  border-color: #8794a1 !important;
}

#sp-consent-root .sp-consent-actions .sp-consent-primary:hover,
#sp-consent-root .sp-consent-actions .sp-consent-primary:focus {
  background: #0f69bc !important;
  border-color: #0f69bc !important;
}

#sp-consent-root .sp-consent-actions [data-sp-consent-action="reject"]:hover,
#sp-consent-root .sp-consent-actions [data-sp-consent-action="reject"]:focus {
  color: #15202b !important;
  background: #e8edf2 !important;
  border-color: #e8edf2 !important;
}

@media (max-width: 600px) {
  #sp-consent-root .sp-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 12px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 12px;
  }

  #sp-consent-root .sp-consent-copy h2 {
    font-size: 17px;
  }

  #sp-consent-root .sp-consent-copy p {
    font-size: 13px;
    line-height: 1.4;
  }

  #sp-consent-root .sp-consent-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  #sp-consent-root .sp-consent-actions .sp-consent-button {
    width: 100%;
    min-height: 40px;
    padding: 9px 8px;
    font-size: 12px;
  }

  #sp-consent-root .sp-consent-actions .sp-consent-primary {
    grid-column: 1 / -1;
  }
}
