:root {
  --tebba-cookie-purple: #64216f;
  --tebba-cookie-purple-dark: #4f1759;
  --tebba-cookie-ink: #302234;
  --tebba-cookie-muted: #6f6472;
  --tebba-cookie-border: #e4d8e7;
  --tebba-cookie-bg: #fff;
}

.tebba-cookie,
.tebba-cookie * {
  box-sizing: border-box;
}

.tebba-cookie__banner {
  position: fixed;
  z-index: 10040;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 26px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--tebba-cookie-ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--tebba-cookie-border);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(45, 26, 49, .22);
  font-family: "Open Sans", Arial, sans-serif;
}

.tebba-cookie__banner.is-visible {
  display: flex;
}

.tebba-cookie__content {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 17px;
}

.tebba-cookie__icon {
  display: flex;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  color: var(--tebba-cookie-purple);
  background: #f7eff8;
  border-radius: 50%;
}

.tebba-cookie__icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tebba-cookie__copy h2,
.tebba-cookie__modal h2 {
  margin: 0 0 7px;
  color: var(--tebba-cookie-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 700;
}

.tebba-cookie__copy p,
.tebba-cookie__modal-intro {
  max-width: 680px;
  margin: 0;
  color: var(--tebba-cookie-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tebba-cookie a {
  color: var(--tebba-cookie-purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tebba-cookie__actions,
.tebba-cookie__modal-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.tebba-cookie__button {
  min-height: 46px;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.tebba-cookie__button:hover,
.tebba-cookie__button:focus {
  transform: translateY(-1px);
  outline: 3px solid rgba(100, 33, 111, .15);
  outline-offset: 2px;
}

.tebba-cookie__button--primary {
  color: #fff;
  background: var(--tebba-cookie-purple);
  border-color: var(--tebba-cookie-purple);
}

.tebba-cookie__button--primary:hover,
.tebba-cookie__button--primary:focus {
  color: #fff;
  background: var(--tebba-cookie-purple-dark);
  border-color: var(--tebba-cookie-purple-dark);
}

.tebba-cookie__button--outline {
  color: var(--tebba-cookie-purple);
  background: #fff;
  border-color: var(--tebba-cookie-purple);
}

.tebba-cookie__button--text {
  color: var(--tebba-cookie-purple);
  background: transparent;
  border-color: transparent;
}

.tebba-cookie__manage {
  position: fixed;
  z-index: 10020;
  bottom: 15px;
  left: 15px;
  display: inline-flex;
  min-height: 40px;
  padding: 9px 14px;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--tebba-cookie-purple);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 20px rgba(63, 25, 70, .22);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tebba-cookie__manage[hidden] {
  display: none !important;
}

.tebba-cookie__manage svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tebba-cookie__manage:hover,
.tebba-cookie__manage:focus {
  color: #fff;
  background: var(--tebba-cookie-purple-dark);
  outline: 3px solid rgba(100, 33, 111, .18);
  outline-offset: 2px;
}

.tebba-cookie__overlay {
  position: fixed;
  z-index: 10060;
  inset: 0;
  display: none;
  padding: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(30, 24, 31, .58);
  overflow-y: auto;
}

.tebba-cookie__overlay.is-visible {
  display: flex;
}

.tebba-cookie__modal {
  width: min(100%, 690px);
  max-height: calc(100vh - 48px);
  padding: 30px;
  color: var(--tebba-cookie-ink);
  background: var(--tebba-cookie-bg);
  border-radius: 22px;
  box-shadow: 0 25px 75px rgba(25, 15, 27, .35);
  font-family: "Open Sans", Arial, sans-serif;
  overflow-y: auto;
}

.tebba-cookie__modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.tebba-cookie__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--tebba-cookie-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.tebba-cookie__close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  color: var(--tebba-cookie-purple);
  background: #f7eff8;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 30px;
  line-height: 38px;
  cursor: pointer;
}

.tebba-cookie__modal-intro {
  margin-bottom: 20px;
}

.tebba-cookie__category {
  display: flex;
  min-height: 82px;
  margin-top: 10px;
  padding: 16px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--tebba-cookie-ink);
  background: #fbf8fc;
  border: 1px solid var(--tebba-cookie-border);
  border-radius: 14px;
  cursor: pointer;
}

div.tebba-cookie__category {
  cursor: default;
}

.tebba-cookie__category-copy {
  min-width: 0;
}

.tebba-cookie__category-copy h3,
.tebba-cookie__category-title {
  display: block;
  margin: 0 0 4px;
  color: var(--tebba-cookie-ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.tebba-cookie__category-copy p,
.tebba-cookie__category-copy > span:not(.tebba-cookie__category-title) {
  display: block;
  margin: 0;
  color: var(--tebba-cookie-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tebba-cookie__always {
  flex: 0 0 auto;
  color: #3e7c4d;
  font-size: 12px;
  white-space: nowrap;
}

.tebba-cookie__switch {
  position: relative;
  display: block;
  width: 48px;
  height: 27px;
  flex: 0 0 48px;
}

.tebba-cookie__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tebba-cookie__switch span {
  position: absolute;
  inset: 0;
  background: #c9c0cb;
  border-radius: 999px;
  transition: background .2s ease;
}

.tebba-cookie__switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}

.tebba-cookie__switch input:checked + span {
  background: var(--tebba-cookie-purple);
}

.tebba-cookie__switch input:checked + span::after {
  transform: translateX(21px);
}

.tebba-cookie__switch input:focus + span {
  outline: 3px solid rgba(100, 33, 111, .18);
  outline-offset: 2px;
}

.tebba-cookie__modal-links {
  margin: 18px 0;
  text-align: center;
  font-size: 13px;
}

.tebba-cookie__modal-actions {
  justify-content: flex-end;
}

html.tebba-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .tebba-cookie__banner {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .tebba-cookie__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .tebba-cookie__banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 20px 18px;
    border-radius: 16px;
  }

  .tebba-cookie__content {
    gap: 12px;
  }

  .tebba-cookie__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .tebba-cookie__copy h2,
  .tebba-cookie__modal h2 {
    font-size: 21px;
  }

  .tebba-cookie__copy p {
    font-size: 13px;
  }

  .tebba-cookie__actions,
  .tebba-cookie__modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tebba-cookie__button {
    width: 100%;
  }

  .tebba-cookie__overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .tebba-cookie__modal {
    max-height: calc(100vh - 20px);
    padding: 22px 17px;
    border-radius: 18px 18px 10px 10px;
  }

  .tebba-cookie__category {
    padding: 14px;
  }

  .tebba-cookie__always {
    max-width: 82px;
    text-align: right;
    white-space: normal;
  }

  .tebba-cookie__manage {
    bottom: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tebba-cookie *,
  .tebba-cookie *::before,
  .tebba-cookie *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
