:root.secuconsent-open {
  overflow: hidden;
}

.secuconsent-backdrop {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  background: rgba(3, 10, 7, .72);
  backdrop-filter: blur(3px);
}

.secuconsent-dialog {
  position: fixed;
  z-index: 2147483001;
  inset: auto 0 0;
  display: block;
  max-height: min(92dvh, 780px);
  overflow: auto;
  color: #f5faf6;
  font-family: Arial, Helvetica, sans-serif;
}

.secuconsent-dialog[hidden],
.secuconsent-backdrop[hidden] {
  display: none !important;
}

.secuconsent-dialog-inner {
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 0 auto;
  border: 1px solid rgba(149, 255, 181, .44);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #09140e;
  box-shadow: 0 -16px 52px rgba(0, 0, 0, .42);
}

.secuconsent-header,
.secuconsent-content,
.secuconsent-actions {
  box-sizing: border-box;
  padding-inline: clamp(20px, 4vw, 42px);
}

.secuconsent-header {
  position: relative;
  padding-top: 26px;
}

.secuconsent-kicker {
  margin: 0 0 6px;
  color: #9cffb3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

.secuconsent-header h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.secuconsent-close {
  position: absolute;
  top: 18px;
  right: clamp(16px, 3vw, 30px);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 250, 246, .5);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.secuconsent-content {
  padding-top: 17px;
}

.secuconsent-content p {
  max-width: 790px;
  margin: 0 0 13px;
  color: #e5eee7;
  font-size: 15px;
  line-height: 1.55;
}

.secuconsent-content .secuconsent-lead {
  color: #fff;
  font-size: 16px;
}

.secuconsent-legal-link a,
.secuconsent-category a {
  color: #a9ffbe;
  font-weight: 700;
}

.secuconsent-request-note {
  padding: 12px 14px;
  border-left: 3px solid #9cffb3;
  background: rgba(156, 255, 179, .1);
}

.secuconsent-category {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(245, 250, 246, .18);
  border-radius: 12px;
  background: #102218;
}

.secuconsent-category-requested {
  border-color: #a9ffbe;
  box-shadow: 0 0 0 2px rgba(169, 255, 190, .2);
}

.secuconsent-category-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.secuconsent-category h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 16px;
}

.secuconsent-category p {
  margin: 0;
  font-size: 14px;
}

.secuconsent-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  color: #f5faf6;
  font-size: 12px;
  cursor: pointer;
}

.secuconsent-switch input {
  position: absolute;
  opacity: 0;
}

.secuconsent-switch span {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  border: 1px solid rgba(245, 250, 246, .6);
  border-radius: 999px;
  background: #49544d;
  transition: background .15s ease;
}

.secuconsent-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  content: '';
  transition: transform .15s ease;
}

.secuconsent-switch input:checked + span {
  background: #168c43;
}

.secuconsent-switch input:checked + span::after {
  transform: translateX(18px);
}

.secuconsent-switch input:focus-visible + span {
  outline: 3px solid #a9ffbe;
  outline-offset: 3px;
}

.secuconsent-switch input:disabled + span {
  opacity: .8;
}

.secuconsent-providers {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(245, 250, 246, .15);
  list-style: none;
}

.secuconsent-providers li {
  display: grid;
  gap: 3px;
  color: #dce8df;
  font-size: 13px;
}

.secuconsent-providers strong {
  color: #fff;
}

.secuconsent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 21px;
  padding-bottom: 26px;
}

.secuconsent-button,
.secuconsent-settings-button {
  min-height: 45px;
  border: 1px solid #a9ffbe;
  border-radius: 8px;
  padding: 10px 15px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.secuconsent-button-primary {
  color: #fff;
  background: #1c6333;
}

.secuconsent-button-secondary {
  color: #fff;
  background: #1c6333;
}

.secuconsent-button:hover,
.secuconsent-settings-button:hover,
.secuconsent-close:hover {
  filter: brightness(1.08);
}

.secuconsent-button:focus-visible,
.secuconsent-settings-button:focus-visible,
.secuconsent-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.secuconsent-settings-button {
  position: fixed;
  z-index: 2147482999;
  right: 15px;
  /* Keep the persistent consent control clear of the fixed website-assistant launcher. */
  bottom: max(90px, calc(env(safe-area-inset-bottom) + 76px));
  max-width: calc(100vw - 30px);
  min-height: 38px;
  padding: 8px 11px;
  border-color: rgba(169, 255, 190, .9);
  background: #102218;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
  font-size: 12px;
}

@media (max-width: 640px) {
  .secuconsent-dialog {
    inset: 0;
    max-height: 100dvh;
    padding: 0;
    background: #09140e;
  }

  .secuconsent-dialog-inner {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .secuconsent-header {
    padding-top: 23px;
  }

  .secuconsent-category-head {
    display: block;
  }

  .secuconsent-switch {
    margin-top: 13px;
  }

  .secuconsent-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .secuconsent-button {
    width: 100%;
  }
}
