.wai-cookie-consent[hidden],
.wai-cookie-consent__settings[hidden],
.wai-cookie-consent__actions[hidden] {
  display: none !important;
}

html.consent-dialog-open,
body.consent-dialog-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

#wai-cookie-consent.wai-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  place-items: center;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  color: #15191f;
  background: transparent;
  box-shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

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

.wai-cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 9, 13, 0.4);
}

.wai-cookie-consent__dialog {
  width: min(100%, 520px);
  max-height: calc(100dvh - 40px);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e2e5e9;
  border-radius: 10px;
  color: #15191f;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(10, 15, 22, 0.22);
  animation: wai-cookie-consent-in 160ms ease-out both;
  scrollbar-width: thin;
}

.wai-cookie-consent__content {
  min-width: 0;
}

.wai-cookie-consent__title {
  margin: 0 0 8px;
  color: #15191f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  outline: none;
}

.wai-cookie-consent__text {
  margin: 0;
  color: #555e69;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

.wai-cookie-consent__text a {
  color: #20262d;
  font-weight: 700;
  text-decoration-color: #aab0b7;
  text-underline-offset: 3px;
}

.wai-cookie-consent__text a:hover {
  color: #d94f00;
  text-decoration-color: currentColor;
}

.wai-cookie-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.wai-cookie-consent__actions--settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wai-cookie-consent__settings {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.wai-cookie-consent__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #252b33;
  background: #f8f9fa;
  cursor: pointer;
}

.wai-cookie-consent__option--locked {
  cursor: default;
}

.wai-cookie-consent__option input {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid #c9ced4;
  border-radius: 999px;
  appearance: none;
  background: #dfe3e7;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.wai-cookie-consent__option input::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 25, 31, 0.28);
  content: "";
  transition: transform 140ms ease;
}

.wai-cookie-consent__option input:checked {
  border-color: #e75700;
  background: #f35c00;
}

.wai-cookie-consent__option input:checked::after {
  transform: translateX(16px);
}

.wai-cookie-consent__option input:disabled {
  border-color: #77a687;
  background: #47835d;
  cursor: default;
  opacity: 1;
}

.wai-cookie-consent__option input:focus-visible {
  outline: 3px solid rgba(243, 92, 0, 0.28);
  outline-offset: 3px;
}

.wai-cookie-consent__option span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.wai-cookie-consent__option strong,
.wai-cookie-consent__option small {
  display: block;
  letter-spacing: 0;
}

.wai-cookie-consent__option strong {
  font-size: 13px;
  line-height: 1.3;
}

.wai-cookie-consent__option small {
  margin-top: 3px;
  color: #69727d;
  font-size: 11px;
  line-height: 1.4;
}

.wai-cookie-consent__button {
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #cfd4da;
  border-radius: 8px;
  color: #252b33;
  background: #f3f4f6;
  cursor: pointer;
  font: 800 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.wai-cookie-consent__button:hover {
  border-color: #aeb5bd;
  background: #e9ebee;
}

.wai-cookie-consent__button:focus-visible,
.wai-cookie-consent__text a:focus-visible {
  outline: 3px solid rgba(243, 92, 0, 0.34);
  outline-offset: 3px;
}

.wai-cookie-consent__button--primary {
  border-color: #cf4900;
  color: #ffffff;
  background: #cf4900;
}

.wai-cookie-consent__button--primary:hover {
  border-color: #bd4300;
  background: #bd4300;
}

@keyframes wai-cookie-consent-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  #wai-cookie-consent.wai-cookie-consent {
    place-items: end center;
    padding: 8px;
  }

  .wai-cookie-consent__dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 10px;
    animation-name: wai-cookie-consent-sheet-in;
  }

  .wai-cookie-consent__title {
    font-size: 18px;
  }

  .wai-cookie-consent__text {
    font-size: 13px;
  }

  .wai-cookie-consent__actions--settings {
    grid-template-columns: 1fr;
  }

  .wai-cookie-consent__button {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .wai-cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}

@keyframes wai-cookie-consent-sheet-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wai-cookie-consent__dialog,
  .wai-cookie-consent *,
  .wai-cookie-consent *::before,
  .wai-cookie-consent *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .wai-cookie-consent {
    display: none !important;
  }
}
