.tunmed-consent[hidden],
.tunmed-cookie-settings[hidden] {
  display: none !important;
}

.tunmed-consent {
  bottom: 0;
  color: #19363b;
  font-family: Arial, Helvetica, sans-serif;
  left: 0;
  padding: 14px;
  position: fixed;
  right: 0;
  z-index: 2147483000;
}

.tunmed-consent__panel {
  background: #fff;
  border: 1px solid #d4e1e2;
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(17, 58, 65, .24);
  display: grid;
  gap: 18px 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-height: calc(100vh - 28px);
  max-width: 980px;
  overflow: auto;
  padding: clamp(20px, 3vw, 30px);
}

.tunmed-consent__eyebrow {
  color: #a77b3f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.tunmed-consent h2 {
  color: #174f59;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
}

.tunmed-consent__intro > p:last-of-type {
  color: #526a6f;
  font-size: 15px;
  line-height: 1.55;
  margin: 10px 0 8px;
  max-width: 650px;
}

.tunmed-consent a {
  color: #174f59;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tunmed-consent__actions {
  align-content: center;
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.tunmed-consent button {
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  min-height: 44px;
  padding: 10px 18px;
}

.tunmed-consent__choice {
  background: #246f7c;
  border: 2px solid #246f7c;
  color: #fff;
}

.tunmed-consent__choice:hover,
.tunmed-consent__choice:focus-visible {
  background: #174f59;
  border-color: #174f59;
}

.tunmed-consent__customize,
.tunmed-consent__save,
.tunmed-consent__close {
  background: #fff;
  border: 2px solid #b9ccce;
  color: #174f59;
}

.tunmed-consent__customize:hover,
.tunmed-consent__customize:focus-visible,
.tunmed-consent__save:hover,
.tunmed-consent__save:focus-visible,
.tunmed-consent__close:hover,
.tunmed-consent__close:focus-visible {
  border-color: #246f7c;
}

.tunmed-consent button:focus-visible,
.tunmed-cookie-settings:focus-visible {
  outline: 3px solid rgba(174, 132, 73, .45);
  outline-offset: 3px;
}

.tunmed-consent__details {
  border-top: 1px solid #d7e4e5;
  grid-column: 1 / -1;
  padding-top: 8px;
}

.tunmed-consent__category {
  align-items: center;
  border-bottom: 1px solid #e1e9ea;
  color: inherit;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  padding: 13px 2px;
}

.tunmed-consent__category strong,
.tunmed-consent__category span {
  display: block;
}

.tunmed-consent__category strong {
  color: #19363b;
  font-size: 15px;
  margin-bottom: 3px;
}

.tunmed-consent__category div > span {
  color: #607276;
  font-size: 13px;
  line-height: 1.45;
}

.tunmed-consent__always {
  color: #3f6f54;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tunmed-consent__category input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.tunmed-consent__category i {
  background: #d6e1e2;
  border-radius: 999px;
  display: block;
  height: 26px;
  position: relative;
  transition: background-color .18s ease;
  width: 46px;
}

.tunmed-consent__category i::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(24, 55, 60, .25);
  content: "";
  height: 20px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .18s ease;
  width: 20px;
}

.tunmed-consent__category input:checked + i {
  background: #246f7c;
}

.tunmed-consent__category input:checked + i::after {
  transform: translateX(20px);
}

.tunmed-consent__category input:focus-visible + i {
  outline: 3px solid rgba(174, 132, 73, .45);
  outline-offset: 3px;
}

.tunmed-consent__save {
  margin-top: 16px;
  min-width: 170px;
}

.tunmed-cookie-settings {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #174f59;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tunmed-cookie-settings:hover {
  color: #0f3d45;
}

.tunmed-consent-is-open .tunmed-cookie-settings {
  display: none;
}

.tunmed-footer-info {
  background: #f3f7f7;
  border-top: 1px solid #d7e4e5;
  color: #526a6f;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 38px;
  padding: 22px 20px;
}

.tunmed-footer-info__inner {
  align-items: center;
  display: flex;
  gap: 18px 32px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
}

.tunmed-footer-info__school strong,
.tunmed-footer-info__school span {
  display: block;
}

.tunmed-footer-info__school strong {
  color: #174f59;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 3px;
}

.tunmed-footer-info__school span {
  font-size: 13px;
  line-height: 1.45;
}

.tunmed-footer-info__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-end;
}

.tunmed-footer-info__links a,
.tunmed-footer-info__links .tunmed-cookie-settings {
  color: #174f59;
  font-size: 13px;
  font-weight: 700;
}

.tunmed-footer-info__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tunmed-footer-info--fallback {
  margin-top: 24px;
}

.tunmed-external-placeholder {
  align-items: center;
  background: #f2f7f7;
  border: 1px solid #d7e4e5;
  border-radius: 14px;
  color: #526a6f;
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: center;
  min-height: 180px;
  padding: 22px;
  text-align: center;
}

.tunmed-external-placeholder p {
  margin: 0;
}

.tunmed-external-placeholder button {
  background: #fff;
  border: 1px solid #b9ccce;
  border-radius: 999px;
  color: #174f59;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 14px;
}

@media (max-width: 720px) {
  .tunmed-consent {
    padding: 8px;
  }

  .tunmed-consent__panel {
    border-radius: 17px;
    gap: 16px;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 16px);
    padding: 18px;
  }

  .tunmed-consent__actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .tunmed-consent__customize {
    grid-column: 1 / -1;
  }

  .tunmed-consent__details {
    grid-column: 1;
  }

  .tunmed-footer-info__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tunmed-footer-info__links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .tunmed-consent__actions {
    grid-template-columns: 1fr;
  }

  .tunmed-consent__customize {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tunmed-consent__category i,
  .tunmed-consent__category i::after {
    transition: none;
  }
}
