.oft-consent {
  --oft-consent-accent: #18c7b5;
  --oft-consent-accent-strong: #087f8c;
  --oft-consent-bg: #081116;
  --oft-consent-panel: #101e25;
  --oft-consent-panel-soft: #162932;
  --oft-consent-text: #f4fbfd;
  --oft-consent-muted: #b9cbd2;
  --oft-consent-line: rgba(190, 226, 235, 0.2);
  --oft-consent-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  position: relative;
  z-index: 2147483000;
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--oft-consent-text);
}

.oft-consent *,
.oft-consent *::before,
.oft-consent *::after {
  box-sizing: border-box;
}

.oft-consent [hidden] {
  display: none !important;
}

.oft-consent a {
  color: var(--oft-consent-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oft-consent button,
.oft-consent input {
  font: inherit;
}

.oft-consent button:focus-visible,
.oft-consent a:focus-visible,
.oft-consent input:focus-visible,
.oft-consent summary:focus-visible {
  outline: 3px solid #ffbd59;
  outline-offset: 3px;
}

.oft-consent__banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--oft-consent-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 41, 50, 0.99), rgba(8, 17, 22, 0.99));
  box-shadow: var(--oft-consent-shadow);
}

.oft-consent__brand {
  width: 42px;
  height: 42px;
}

.oft-consent__brand img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.oft-consent h2,
.oft-consent h3,
.oft-consent p {
  margin-top: 0;
}

.oft-consent__banner h2 {
  margin-bottom: 8px;
  color: var(--oft-consent-text);
  font-size: 20px;
  line-height: 1.25;
}

.oft-consent__banner p {
  margin-bottom: 16px;
  color: var(--oft-consent-muted);
  font-size: 14px;
}

.oft-consent__actions,
.oft-consent__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.oft-consent__button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.oft-consent__button:hover {
  transform: translateY(-1px);
}

.oft-consent__button--primary {
  background: var(--oft-consent-accent);
  color: #041313;
}

.oft-consent__button--primary:hover {
  background: #45ddce;
}

.oft-consent__button--secondary {
  border-color: var(--oft-consent-line);
  background: transparent;
  color: var(--oft-consent-text);
}

.oft-consent__button--secondary:hover {
  background: var(--oft-consent-panel-soft);
}

.oft-consent__button--save {
  border-color: var(--oft-consent-accent);
  background: transparent;
  color: var(--oft-consent-accent);
}

.oft-consent__policy-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 650;
}

.oft-consent__backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(2, 8, 12, 0.72);
  backdrop-filter: blur(4px);
}

.oft-consent__backdrop.is-open {
  display: block;
}

.oft-consent__preferences {
  position: fixed;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: none;
  width: min(760px, calc(100vw - 32px));
  max-height: min(840px, calc(100vh - 32px));
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid var(--oft-consent-line);
  border-radius: 16px;
  background: var(--oft-consent-bg);
  box-shadow: var(--oft-consent-shadow);
}

.oft-consent__preferences.is-open {
  display: flex;
  flex-direction: column;
}

.oft-consent__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--oft-consent-line);
  background: linear-gradient(135deg, var(--oft-consent-panel-soft), var(--oft-consent-bg));
}

.oft-consent__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--oft-consent-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oft-consent__header h2 {
  margin: 0;
  color: var(--oft-consent-text);
  font-size: 24px;
  line-height: 1.2;
}

.oft-consent__close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--oft-consent-line);
  border-radius: 50%;
  background: transparent;
  color: var(--oft-consent-text);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.oft-consent__content {
  overflow-y: auto;
  padding: 22px 24px;
}

.oft-consent__intro h3,
.oft-consent__more h3 {
  margin-bottom: 7px;
  color: var(--oft-consent-text);
  font-size: 16px;
}

.oft-consent__intro p,
.oft-consent__more p {
  color: var(--oft-consent-muted);
}

.oft-consent__category {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--oft-consent-line);
}

.oft-consent__category details {
  min-width: 0;
}

.oft-consent__category summary {
  cursor: pointer;
  list-style: none;
  padding-right: 22px;
}

.oft-consent__category summary::-webkit-details-marker {
  display: none;
}

.oft-consent__category summary::after {
  position: absolute;
  top: 18px;
  right: 72px;
  content: "+";
  color: var(--oft-consent-accent);
  font-size: 20px;
  font-weight: 500;
}

.oft-consent__category details[open] summary::after {
  content: "−";
}

.oft-consent__category strong,
.oft-consent__category small {
  display: block;
}

.oft-consent__category strong {
  color: var(--oft-consent-text);
  font-size: 15px;
}

.oft-consent__category small {
  margin-top: 4px;
  color: var(--oft-consent-muted);
  font-size: 12px;
  font-weight: 400;
}

.oft-consent__category em {
  display: inline-block;
  margin-top: 8px;
  color: var(--oft-consent-accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.oft-consent__category details > p {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--oft-consent-panel);
  color: var(--oft-consent-muted);
  font-size: 13px;
}

.oft-consent__switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.oft-consent__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.oft-consent__switch > span:last-child {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid var(--oft-consent-line);
  border-radius: 999px;
  background: #3c4b53;
  transition: background 160ms ease;
}

.oft-consent__switch > span:last-child::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.oft-consent__switch input:checked + span {
  background: var(--oft-consent-accent-strong);
}

.oft-consent__switch input:checked + span::after {
  transform: translateX(22px);
}

.oft-consent__switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.75;
}

.oft-consent__more {
  padding-top: 18px;
  border-top: 1px solid var(--oft-consent-line);
}

.oft-consent__more p {
  margin-bottom: 0;
}

.oft-consent__footer {
  justify-content: flex-end;
  padding: 18px 24px;
  border-top: 1px solid var(--oft-consent-line);
  background: var(--oft-consent-panel);
}

.oft-consent__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.oft-consent-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .oft-consent__banner {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .oft-consent__brand {
    display: none;
  }

  .oft-consent__actions,
  .oft-consent__footer {
    display: grid;
  }

  .oft-consent__button {
    width: 100%;
  }

  .oft-consent__header,
  .oft-consent__content,
  .oft-consent__footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .oft-consent__header h2 {
    font-size: 20px;
  }
}

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