:root {
  --chs-privacy-red: #ef252f;
  --chs-privacy-ink: #0b0b0d;
  --chs-privacy-paper: #f6f6f3;
  --chs-privacy-line: #d9d9dc;
}

.chs-consent-banner,
.chs-privacy-dialog,
.chs-contact-form-wrap,
.chs-legal-page {
  box-sizing: border-box;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.chs-consent-banner *,
.chs-privacy-dialog *,
.chs-contact-form-wrap *,
.chs-legal-page * {
  box-sizing: border-box;
}

.chs-consent-banner[hidden],
.chs-privacy-dialog [hidden] {
  display: none !important;
}

.chs-consent-banner {
  position: fixed;
  z-index: 1000000;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  width: min(720px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid #34343a;
  border-radius: 15px;
  background: rgba(11, 11, 13, 0.97);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  color: #fff;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.chs-consent-banner__copy > span,
.chs-privacy-dialog header span {
  display: block;
  margin-bottom: 5px;
  color: #ff4852;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chs-consent-banner h2 {
  margin: 0 0 7px !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.025em !important;
}

.chs-consent-banner p {
  max-width: 470px;
  margin: 0 !important;
  color: #c4c4c9 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.chs-consent-banner__actions {
  display: grid;
  align-content: center;
  gap: 7px;
  width: 150px;
}

.chs-consent-button,
.chs-consent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #45454b;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.chs-consent-button--primary {
  border-color: var(--chs-privacy-red);
  background: var(--chs-privacy-red);
}

.chs-consent-button:hover,
.chs-consent-button:focus-visible {
  border-color: #fff;
  outline: 0;
}

.chs-consent-link {
  min-height: 26px;
  padding: 3px;
  border: 0;
  color: #b9b9be;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chs-privacy-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #323237;
  border-radius: 18px;
  background: #101012;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.46);
  color: #fff;
}

.chs-privacy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.chs-privacy-dialog__panel {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 27px;
}

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

.chs-privacy-dialog h2 {
  max-width: 520px;
  margin: 0 !important;
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
}

.chs-privacy-dialog__close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #414147;
  border-radius: 50%;
  background: #17171a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chs-privacy-dialog__intro,
.chs-privacy-choice p,
.chs-privacy-dialog__gpc {
  margin: 0 !important;
  color: #b7b7bc !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.chs-privacy-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid #34343a;
  border-radius: 12px;
  background: #17171a;
}

.chs-privacy-choice strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 15px;
}

.chs-privacy-choice__status {
  padding: 6px 9px;
  border-radius: 999px;
  background: #29292e;
  color: #d2d2d6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chs-privacy-choice--toggle {
  cursor: pointer;
}

.chs-privacy-choice--toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chs-privacy-choice--toggle > span {
  position: relative;
  width: 48px;
  height: 27px;
  border: 1px solid #595960;
  border-radius: 999px;
  background: #27272b;
  transition: 160ms ease;
}

.chs-privacy-choice--toggle > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: 160ms ease;
}

.chs-privacy-choice--toggle input:checked + span {
  border-color: var(--chs-privacy-red);
  background: var(--chs-privacy-red);
}

.chs-privacy-choice--toggle input:checked + span::after {
  transform: translateX(21px);
}

.chs-privacy-choice--toggle input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.chs-privacy-choice--toggle input:disabled + span {
  opacity: 0.45;
}

.chs-privacy-dialog__gpc {
  padding: 12px 14px;
  border-left: 3px solid var(--chs-privacy-red);
  background: #1c1416;
}

.chs-privacy-dialog__actions {
  display: flex;
  gap: 8px;
}

.chs-privacy-dialog__actions .chs-consent-button {
  min-width: 130px;
}

.chs-privacy-dialog nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding-top: 4px;
  border-top: 1px solid #303035;
}

.chs-privacy-dialog nav a {
  color: #bdbdc2 !important;
  font-size: 11px;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.chs-contact-form-wrap {
  width: 100%;
}

.chs-contact-form {
  display: grid;
  gap: 18px;
}

.chs-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chs-contact-form > label,
.chs-contact-form__grid label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.chs-contact-form label > span:first-child {
  color: #202024;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chs-contact-form input[type="text"],
.chs-contact-form input[type="email"],
.chs-contact-form select,
.chs-contact-form textarea {
  width: 100%;
  min-height: 50px;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid #c9c9cd !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #151518 !important;
  font: inherit !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

.chs-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.chs-contact-form input:focus,
.chs-contact-form select:focus,
.chs-contact-form textarea:focus {
  border-color: #18181b !important;
  outline: 3px solid rgba(239, 37, 47, 0.13) !important;
}

.chs-contact-form__medical {
  margin: 0 !important;
  padding: 14px 16px;
  border-left: 3px solid var(--chs-privacy-red);
  background: #f8eded;
  color: #4a3133 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.chs-contact-form__check {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px !important;
}

.chs-contact-form__check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
}

.chs-contact-form__check span {
  color: #4d4d52 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.chs-contact-form__check a {
  color: #141417 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.chs-contact-form__submit {
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--chs-privacy-red);
  border-radius: 8px;
  background: var(--chs-privacy-red);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.chs-contact-form__submit:hover,
.chs-contact-form__submit:focus-visible {
  border-color: #111114;
  background: #111114;
  outline: 0;
}

.chs-contact-form__storage {
  margin: -8px 0 0 !important;
  color: #77777d !important;
  font-size: 10.5px !important;
  line-height: 1.5 !important;
}

.chs-contact-form__notice {
  margin: 0 0 18px !important;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.chs-contact-form__notice--success {
  border: 1px solid #8ebd9c;
  background: #edf8f0;
  color: #164f27 !important;
}

.chs-contact-form__notice--error {
  border: 1px solid #dca4a8;
  background: #fbefef;
  color: #6d2025 !important;
}

.chs-contact-form__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.chs-legal-page {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 80px;
  color: #17171a;
}

.chs-legal-hero {
  padding: clamp(36px, 6vw, 74px);
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(239, 37, 47, 0.22),
      transparent 33%
    ),
    #0c0c0e;
  color: #fff;
}

.chs-legal-hero > span {
  display: block;
  margin-bottom: 16px;
  color: #ff3e48;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chs-legal-hero h1 {
  max-width: 820px;
  margin: 0 0 19px !important;
  color: #fff !important;
  font-size: clamp(44px, 7vw, 82px) !important;
  font-weight: 720 !important;
  line-height: 0.96 !important;
  letter-spacing: -0.055em !important;
}

.chs-legal-hero p {
  max-width: 720px;
  margin: 0 0 23px !important;
  color: #c4c4c9 !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.chs-legal-hero small {
  color: #818188;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chs-legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: clamp(35px, 6vw, 82px);
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid #dedee1;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: #fff;
}

.chs-legal-layout > aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 10px;
  padding: 19px;
  border: 1px solid #dedee1;
  border-radius: 12px;
  background: var(--chs-privacy-paper);
}

.chs-legal-layout > aside strong {
  font-size: 13px;
}

.chs-legal-layout > aside a,
.chs-legal-layout > aside p {
  margin: 0 !important;
  color: #5b5b61 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}

.chs-legal-layout > aside button,
.chs-legal-choice-button {
  min-height: 42px;
  margin-top: 7px;
  padding: 10px 13px;
  border: 1px solid #17171a;
  border-radius: 7px;
  background: #17171a;
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.chs-legal-layout article {
  min-width: 0;
}

.chs-legal-layout article section + section {
  margin-top: 45px;
  padding-top: 42px;
  border-top: 1px solid #e1e1e3;
}

.chs-legal-layout article h2 {
  margin: 0 0 17px !important;
  color: #111114 !important;
  font-size: 30px !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
}

.chs-legal-layout article h3 {
  margin: 26px 0 9px !important;
  color: #17171a !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.chs-legal-layout article p,
.chs-legal-layout article li {
  color: #4c4c52 !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}

.chs-legal-layout article p {
  margin: 0 0 15px !important;
}

.chs-legal-layout article ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px !important;
  padding-left: 22px;
}

.chs-legal-layout article a {
  color: #b6111a !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.chs-legal-callout {
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid var(--chs-privacy-red);
  background: #f8eded;
}

.chs-legal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #741b21;
}

.chs-cookie-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dedee1;
  border-radius: 10px;
}

.chs-cookie-table table {
  width: 100%;
  min-width: 690px;
  margin: 0 !important;
  border-collapse: collapse;
}

.chs-cookie-table th,
.chs-cookie-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e3e3e5;
  color: #4b4b50;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.chs-cookie-table th {
  background: #17171a;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .chs-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 14px;
    width: auto;
    padding: 17px;
    border-radius: 13px;
  }

  .chs-consent-banner p {
    font-size: 11.5px !important;
  }

  .chs-consent-banner__actions {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .chs-consent-link {
    grid-column: 1 / -1;
  }

  .chs-privacy-dialog__panel {
    padding: 20px;
  }

  .chs-privacy-dialog h2 {
    font-size: 27px !important;
  }

  .chs-privacy-choice {
    gap: 14px;
    padding: 15px;
  }

  .chs-privacy-dialog__actions,
  .chs-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .chs-privacy-dialog__actions {
    display: grid;
  }

  .chs-legal-page {
    width: calc(100% - 24px);
    margin-top: 24px;
  }

  .chs-legal-hero {
    padding: 38px 24px;
    border-radius: 16px 16px 0 0;
  }

  .chs-legal-hero h1 {
    font-size: 43px !important;
  }

  .chs-legal-hero p {
    font-size: 15px !important;
  }

  .chs-legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 34px 23px;
    border-radius: 0 0 16px 16px;
  }

  .chs-legal-layout > aside {
    position: static;
    order: 2;
  }

  .chs-legal-layout article h2 {
    font-size: 27px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chs-privacy-choice--toggle > span,
  .chs-privacy-choice--toggle > span::after {
    transition: none;
  }
}
