:root {
  --expcc-navy: #232959;
  --expcc-navy-dark: #171e50;
  --expcc-purple: #bb58cb;
  --expcc-lavender: #ceb6ed;
  --expcc-light: #fbf6fc;
  --expcc-line: #e8dced;
  --expcc-text: #626271;
  --expcc-white: #ffffff;
}

html.expcc-open,
html.expcc-open body { overflow: hidden; }

.expcc,
.expcc * { box-sizing: border-box; }

.expcc,
.expcc *,
.expcc-reopen,
.expcc-inline-reopen {
  font-family: "Ubuntu Sans Mono", "Courier New", monospace !important;
}

.expcc {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: "Ubuntu Sans Mono", "Courier New", monospace !important;
  font-weight: 700;
  color: var(--expcc-text);
}

.expcc[hidden],
.expcc [hidden] { display: none !important; }

.expcc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 30, 80, .72);
  backdrop-filter: blur(4px);
}

.expcc__dialog {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(680px, calc(100% - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid var(--expcc-line);
  border-radius: 18px 18px 0 18px;
  background: var(--expcc-white);
  box-shadow: 0 28px 80px rgba(23, 30, 80, .38);
  outline: none;
}

.expcc__brand {
  position: absolute;
  top: 30px;
  right: 30px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 14px 14px 0 14px;
  background: var(--expcc-purple);
  color: var(--expcc-white);
}

.expcc__brand svg { width: 46px; height: 46px; }

.expcc__content {
  padding: 44px;
  padding-right: 130px;
}

.expcc__kicker {
  margin: 0 0 9px;
  color: var(--expcc-purple);
  font-family: "Ubuntu Sans Mono", "Courier New", monospace !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.expcc h2 {
  max-width: 440px;
  margin: 0 0 14px;
  color: var(--expcc-navy);
  font-family: "Ubuntu Sans Mono", "Courier New", monospace !important;
  font-size: clamp(29px, 3.6vw, 42px);
  font-weight: 700 !important;
  line-height: 1.12;
}

.expcc p {
  margin: 0 0 13px;
  font-size: 16px;
  line-height: 1.6;
}

.expcc__privacy a {
  color: var(--expcc-navy);
  font-weight: 700;
  text-underline-offset: 4px;
}

.expcc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}

.expcc__actions--main .expcc__button--settings { grid-column: 1 / -1; }

.expcc__button {
  min-height: 52px;
  padding: 11px 20px;
  border: 2px solid var(--expcc-navy);
  border-radius: 9px 9px 0 9px;
  cursor: pointer;
  font-family: "Ubuntu Sans Mono", "Courier New", monospace !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.expcc__button:hover,
.expcc__button:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(187, 88, 203, .42);
  outline-offset: 2px;
}

.expcc__button--accept {
  color: var(--expcc-white) !important;
  background: var(--expcc-purple) !important;
  background-color: var(--expcc-purple) !important;
  border-color: var(--expcc-purple) !important;
}

.expcc__button--reject {
  color: var(--expcc-navy) !important;
  background: var(--expcc-white) !important;
  background-color: var(--expcc-white) !important;
  border-color: var(--expcc-lavender) !important;
}

.expcc__button--settings {
  color: var(--expcc-white) !important;
  background: var(--expcc-purple) !important;
  background-color: var(--expcc-purple) !important;
  border-color: var(--expcc-purple) !important;
}

.expcc .expcc__button {
  appearance: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.expcc .expcc__button--accept:hover,
.expcc .expcc__button--settings:hover,
.expcc .expcc__button--accept:focus-visible,
.expcc .expcc__button--settings:focus-visible {
  background: #9e3caf !important;
  background-color: #9e3caf !important;
  border-color: #9e3caf !important;
  color: var(--expcc-white) !important;
}

.expcc__details {
  margin-top: 25px;
  border-top: 1px solid var(--expcc-line);
}

.expcc__category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--expcc-line);
}

.expcc__category strong {
  display: block;
  color: var(--expcc-navy);
  font-size: 16px;
}

.expcc__category span {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.5;
}

.expcc__switch {
  position: relative;
  display: block;
  width: 52px;
  height: 29px;
  cursor: pointer;
}

.expcc__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.expcc__switch > span {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 99px;
  background: #aeb8c8;
  transition: background .2s;
}

.expcc__switch > span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--expcc-white);
  box-shadow: 0 2px 6px rgba(14, 31, 61, .22);
  content: '';
  transition: transform .2s;
}

.expcc__switch input:checked + span { background: var(--expcc-navy); }
.expcc__switch input:checked + span::after { transform: translateX(23px); }
.expcc__switch input:focus-visible + span { outline: 3px solid var(--expcc-purple); outline-offset: 3px; }

.expcc__switch em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.expcc-reopen {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 2147482000;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 11px 11px 0 11px;
  color: #bb58cb !important;
  background: var(--expcc-purple);
  box-shadow: 0 8px 24px rgba(23, 30, 80, .25);
  cursor: pointer;
}

.expcc-reopen[hidden] { display: none; }
.expcc-reopen svg { width: 32px; height: 32px; }
.expcc-reopen:focus-visible { outline: 3px solid var(--expcc-navy); outline-offset: 3px; }
.expcc-inline-reopen { cursor: pointer; }

@media (max-width: 720px) {
  .expcc__dialog {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 15px 15px 0 15px;
  }

  .expcc__content {
    padding: 28px 22px;
    padding-top: 94px;
  }

  .expcc__brand {
    top: 20px;
    right: auto;
    left: 22px;
    width: 58px;
    height: 58px;
  }

  .expcc__brand svg { width: 36px; height: 36px; }
  .expcc__actions { grid-template-columns: 1fr; }
  .expcc__actions--main .expcc__button--settings { grid-column: auto; }
  .expcc__category { grid-template-columns: 1fr auto; gap: 12px; }
  .expcc-reopen { bottom: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .expcc *,
  .expcc-reopen {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
