:root {
  --emt-cc-ink: #233a41;
  --emt-cc-paper: #f4ebdb;
  --emt-cc-teal: #5eada6;
  --emt-cc-orange: #de8023;
  --emt-cc-line: rgba(244, 235, 219, 0.24);
  --emt-cc-shadow: 0 20px 60px rgba(17, 31, 35, 0.32);
}

.emt-cc-root,
.emt-cc-root * {
  box-sizing: border-box;
}

.emt-cc-root {
  color: var(--emt-cc-paper);
  font-family: "Bricolage Grotesque", "Saira", system-ui, sans-serif;
  position: relative;
  z-index: 2147483000;
}

.emt-cc-banner {
  align-items: center;
  background: var(--emt-cc-ink);
  border: 1px solid var(--emt-cc-line);
  border-radius: 22px;
  bottom: 16px;
  box-shadow: var(--emt-cc-shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  inset-inline: 16px;
  margin-inline: auto;
  max-width: 1160px;
  padding: 22px;
  position: fixed;
}

.emt-cc-copy {
  min-width: 0;
}

.emt-cc-title,
.emt-cc-dialog-title {
  color: var(--emt-cc-paper);
  font-family: "HeliosExt", "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.emt-cc-summary,
.emt-cc-dialog-intro,
.emt-cc-category-description {
  color: rgba(244, 235, 219, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 72ch;
  overflow-wrap: anywhere;
}

.emt-cc-policy {
  color: var(--emt-cc-teal);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.emt-cc-actions,
.emt-cc-dialog-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.emt-cc-button,
.emt-cc-close,
.emt-cookie-footer-control {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.emt-cc-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1.15;
  min-height: 46px;
  padding: 12px 18px;
  white-space: normal;
}

.emt-cc-choice {
  background: var(--emt-cc-paper);
  border: 2px solid var(--emt-cc-paper);
  color: var(--emt-cc-ink);
}

.emt-cc-manage {
  background: transparent;
  border: 2px solid rgba(244, 235, 219, 0.55);
  color: var(--emt-cc-paper);
}

.emt-cc-save {
  background: var(--emt-cc-teal);
  border: 2px solid var(--emt-cc-teal);
  color: var(--emt-cc-ink);
}

.emt-cc-button:hover,
.emt-cc-button:focus-visible {
  transform: translateY(-1px);
}

.emt-cc-button:focus-visible,
.emt-cc-close:focus-visible,
.emt-cc-policy:focus-visible,
.emt-cookie-footer-control:focus-visible,
.emt-cookie-footer-link:focus-visible,
.emt-cc-switch input:focus-visible + .emt-cc-switch-track {
  outline: 3px solid var(--emt-cc-orange);
  outline-offset: 3px;
}

.emt-cc-backdrop {
  align-items: center;
  background: rgba(17, 31, 35, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
}

.emt-cc-dialog {
  background: var(--emt-cc-ink);
  border: 1px solid var(--emt-cc-line);
  border-radius: 24px;
  box-shadow: var(--emt-cc-shadow);
  max-height: min(760px, calc(100dvh - 40px));
  max-width: 680px;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  width: 100%;
}

.emt-cc-dialog-header {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.emt-cc-close {
  align-items: center;
  background: transparent;
  border: 1px solid var(--emt-cc-line);
  border-radius: 999px;
  color: var(--emt-cc-paper);
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.emt-cc-close svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 20px;
}

.emt-cc-dialog-intro {
  margin: 10px 0 22px;
}

.emt-cc-categories {
  border-block: 1px solid var(--emt-cc-line);
  margin-block: 0 24px;
}

.emt-cc-category {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 18px;
}

.emt-cc-category + .emt-cc-category {
  border-top: 1px solid var(--emt-cc-line);
}

.emt-cc-category-copy {
  min-width: 0;
}

.emt-cc-category-title {
  color: var(--emt-cc-paper);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
  margin: 0 0 5px;
}

.emt-cc-category-description {
  font-size: 0.875rem;
}

.emt-cc-switch {
  cursor: pointer;
  display: inline-flex;
  min-height: 44px;
  min-width: 52px;
  position: relative;
}

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

.emt-cc-switch-track {
  align-self: center;
  background: rgba(244, 235, 219, 0.2);
  border: 1px solid rgba(244, 235, 219, 0.45);
  border-radius: 999px;
  height: 30px;
  position: relative;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
  width: 52px;
}

.emt-cc-switch-track::after {
  background: var(--emt-cc-paper);
  border-radius: 50%;
  content: "";
  height: 22px;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  position: absolute;
  transition: transform 160ms ease-out;
  width: 22px;
}

.emt-cc-switch input:checked + .emt-cc-switch-track {
  background: var(--emt-cc-teal);
  border-color: var(--emt-cc-teal);
}

.emt-cc-switch input:checked + .emt-cc-switch-track::after {
  transform: translateX(22px);
}

.emt-cc-switch input:disabled + .emt-cc-switch-track {
  cursor: not-allowed;
  opacity: 0.72;
}

.emt-cc-modal-open {
  overflow: hidden;
}

.emt-cookie-footer-link,
.emt-cookie-footer-control {
  color: inherit;
  font: inherit;
}

.emt-cookie-footer-link {
  margin-inline-start: 16px;
}

.emt-cookie-footer-control {
  background: transparent;
  border: 0;
  margin: 0;
  min-height: 24px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 880px) {
  .emt-cc-banner {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .emt-cc-actions .emt-cc-button {
    flex: 1 1 150px;
  }
}

@media (max-width: 560px) {
  .emt-cc-banner {
    border-radius: 18px;
    bottom: 8px;
    gap: 16px;
    inset-inline: 8px;
    padding: 18px;
  }

  .emt-cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .emt-cc-manage {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .emt-cc-backdrop {
    align-items: flex-end;
    padding: 8px;
  }

  .emt-cc-dialog {
    border-radius: 20px;
    max-height: calc(100dvh - 16px);
  }

  .emt-cc-dialog-actions .emt-cc-button {
    flex: 1 1 140px;
  }

  .emt-cookie-footer-link {
    margin-inline-start: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emt-cc-root *,
  .emt-cc-root *::before,
  .emt-cc-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .emt-cc-banner,
  .emt-cc-dialog {
    border: 2px solid CanvasText;
  }

  .emt-cc-choice,
  .emt-cc-save,
  .emt-cc-manage {
    border: 2px solid ButtonText;
  }
}
