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

.rws-consent {
  --rws-consent-ink: #f5f9ff;
  --rws-consent-muted: #a9bdd6;
  --rws-consent-blue: #2f83f7;
  --rws-consent-blue-soft: #78b2ff;
  --rws-consent-line: rgba(134, 184, 249, .18);
  position: relative;
  z-index: 2147483000;
  color: var(--rws-consent-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.rws-consent button {
  -webkit-tap-highlight-color: transparent;
}

.rws-consent__overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(3, 13, 29, .72);
  backdrop-filter: blur(8px);
}

.rws-consent__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid rgba(126, 181, 255, .24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 2%, rgba(45, 127, 242, .21), transparent 34%),
    radial-gradient(circle at 5% 95%, rgba(40, 111, 214, .13), transparent 33%),
    #081d3d;
  box-shadow: 0 35px 110px rgba(1, 12, 29, .58);
  animation: rws-consent-dialog .32s cubic-bezier(.2, .8, .2, 1) both;
}

.rws-consent__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.rws-consent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rws-consent-line);
}

.rws-consent__header img {
  display: block;
  width: 186px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.rws-consent__close {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  padding: 0 0 2px;
  border: 1px solid rgba(134, 184, 249, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #dceaff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.rws-consent__close:hover {
  transform: rotate(3deg);
  border-color: rgba(134, 184, 249, .52);
  background: rgba(255, 255, 255, .1);
}

.rws-consent__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rws-consent-line);
}

.rws-consent__tabs button {
  position: relative;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #91a9c7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.rws-consent__tabs button::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background .2s, box-shadow .2s;
}

.rws-consent__tabs button:hover {
  color: #eaf3ff;
  background: rgba(255, 255, 255, .025);
}

.rws-consent__tabs button[aria-selected="true"] {
  color: #7eb7ff;
}

.rws-consent__tabs button[aria-selected="true"]::after {
  background: #3b8cff;
  box-shadow: 0 0 18px rgba(59, 140, 255, .72);
}

.rws-consent__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-color: rgba(126, 179, 245, .45) transparent;
}

.rws-consent__panel {
  padding: 28px 30px;
}

.rws-consent__eyebrow {
  margin: 0 0 9px !important;
  color: #77b1ff !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: .17em !important;
  text-transform: uppercase !important;
}

.rws-consent__panel h2 {
  max-width: 570px;
  margin: 0 0 17px !important;
  color: #fff !important;
  font-size: clamp(24px, 4vw, 28px) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
  white-space: nowrap;
}

.rws-consent__panel > p:not(.rws-consent__eyebrow):not(.rws-consent__panel-title) {
  max-width: 590px;
  margin: 0 0 12px !important;
  color: var(--rws-consent-muted) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.rws-consent__panel > p:last-child {
  margin-bottom: 0 !important;
}

.rws-consent__panel a {
  color: #dceaff !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(220, 234, 255, .48) !important;
  text-underline-offset: 3px;
}

.rws-consent__panel-title {
  margin: 0 0 7px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
}

.rws-consent__intro {
  margin: 0 0 17px !important;
  color: var(--rws-consent-muted) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.rws-consent__categories {
  display: grid;
  gap: 8px;
}

.rws-consent__categories article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(137, 187, 250, .16);
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
}

.rws-consent__categories h3 {
  margin: 0 0 5px !important;
  color: #f7faff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.015em !important;
}

.rws-consent__categories p {
  max-width: 470px;
  margin: 0 !important;
  color: #9db2cc !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.rws-consent__switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 27px;
  cursor: pointer;
}

.rws-consent__switch--required {
  cursor: default;
}

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

.rws-consent__switch span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(166, 195, 231, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  transition: background .2s, border-color .2s;
}

.rws-consent__switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #aebed2;
  box-shadow: 0 3px 8px rgba(0, 10, 28, .25);
  transition: transform .2s, background .2s;
}

.rws-consent__switch input:checked + span {
  border-color: #3f90ff;
  background: rgba(42, 127, 247, .35);
}

.rws-consent__switch input:checked + span::after {
  transform: translateX(21px);
  background: #64a6ff;
}

.rws-consent__switch input:focus-visible + span {
  outline: 3px solid rgba(73, 149, 255, .3);
  outline-offset: 2px;
}

.rws-consent__switch b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.rws-consent__footer {
  flex: 0 0 auto;
  padding: 17px 20px 20px;
  border-top: 1px solid var(--rws-consent-line);
  background: rgba(3, 16, 36, .24);
}

.rws-consent__footer > p {
  margin: 0 0 11px !important;
  color: #7790af !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
}

.rws-consent__footer code {
  color: #a9c9f1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.rws-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rws-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 13px;
  border-radius: 13px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s;
}

.rws-consent__button:hover {
  transform: translateY(-2px);
}

.rws-consent__button--primary {
  border: 1px solid #3187ff;
  background: linear-gradient(100deg, #176bea, #398fff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 107, 234, .27);
}

.rws-consent__button--secondary {
  border: 1px solid rgba(113, 174, 255, .52);
  background: rgba(44, 125, 239, .13);
  color: #cde2ff;
}

.rws-consent__button--outline {
  border: 1px solid rgba(143, 188, 247, .3);
  background: rgba(255, 255, 255, .045);
  color: #d6e6fa;
}

.rws-consent__button--outline:hover,
.rws-consent__button--secondary:hover {
  border-color: rgba(127, 181, 255, .66);
  background: rgba(255, 255, 255, .085);
}

.rws-consent__reopen {
  position: fixed;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(81, 137, 211, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #315a8d;
  font-size: 9px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(24, 61, 111, .12);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.rws-consent__reopen span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2375e9;
  box-shadow: 0 0 0 4px rgba(35, 117, 233, .11);
}

.rws-consent-open {
  overflow: hidden;
}

@keyframes rws-consent-dialog {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  .rws-consent__overlay {
    padding: 10px;
  }

  .rws-consent__dialog {
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .rws-consent__header {
    min-height: 66px;
    padding: 15px 17px;
  }

  .rws-consent__header img {
    width: 156px;
  }

  .rws-consent__close {
    width: 36px;
    height: 36px;
  }

  .rws-consent__tabs button {
    min-height: 45px;
    padding: 0 5px;
    font-size: 9px;
    letter-spacing: .025em;
  }

  .rws-consent__tabs button::after {
    right: 10px;
    left: 10px;
  }

  .rws-consent__panel {
    padding: 22px 18px;
  }

  .rws-consent__panel h2 {
    font-size: 25px !important;
    white-space: normal;
  }

  .rws-consent__panel > p:not(.rws-consent__eyebrow):not(.rws-consent__panel-title) {
    font-size: 11px !important;
  }

  .rws-consent__categories article {
    gap: 13px;
    padding: 13px;
  }

  .rws-consent__categories p {
    font-size: 9px !important;
  }

  .rws-consent__required {
    max-width: 68px;
    text-align: right;
    white-space: normal;
  }

  .rws-consent__footer {
    padding: 13px 12px 14px;
  }

  .rws-consent__footer > p {
    margin-bottom: 8px !important;
  }

  .rws-consent__actions {
    grid-template-columns: 1fr;
  }

  .rws-consent__button {
    min-height: 43px;
  }

  .rws-consent__reopen {
    bottom: 9px;
    left: 9px;
  }
}

@media (max-height: 650px) and (min-width: 621px) {
  .rws-consent__overlay {
    padding: 10px;
  }

  .rws-consent__dialog {
    max-height: calc(100vh - 20px);
  }

  .rws-consent__header {
    min-height: 62px;
    padding-block: 12px;
  }

  .rws-consent__panel {
    padding-block: 20px;
  }

  .rws-consent__categories article {
    padding-block: 11px;
  }
}

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