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

.lp-consent-banner,
.lp-consent-backdrop,
.lp-consent-banner *,
.lp-consent-backdrop * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.lp-consent-banner {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  border: 1px solid #26384c;
  border-radius: 8px;
  background: #07111f;
  padding: 22px;
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(2, 8, 18, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lp-consent-banner[hidden] {
  display: none;
}

.lp-consent-banner h2,
.lp-consent-modal h2,
.lp-consent-modal h3 {
  margin: 0;
  color: inherit;
}

.lp-consent-banner h2 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.lp-consent-banner p,
.lp-consent-modal p {
  margin: 8px 0 0;
  color: #c5d3df;
  font-size: 0.9rem;
  line-height: 1.6;
}

.lp-consent-banner a,
.lp-consent-policy {
  display: inline-block;
  margin-top: 10px;
  color: #62e2df;
  font-size: 0.82rem;
  font-weight: 650;
  text-underline-offset: 3px;
}

.lp-consent-banner__actions,
.lp-consent-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  align-content: center;
  gap: 10px;
}

.lp-consent-button {
  min-height: 44px;
  border: 1px solid #6b8298;
  border-radius: 6px;
  padding: 10px 16px;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.lp-consent-button:hover,
.lp-consent-button:focus-visible {
  border-color: #29d3d0;
  outline: 2px solid #29d3d0;
  outline-offset: 2px;
}

.lp-consent-button--choice {
  border-color: #d7e1e9;
  background: #f8fafc;
  color: #07111f;
}

.lp-consent-button--choice:hover,
.lp-consent-button--choice:focus-visible {
  background: #dff9f8;
  color: #07111f;
}

.lp-consent-button--customize {
  grid-column: 1 / -1;
}

.lp-consent-backdrop {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(2, 8, 18, 0.72);
  padding: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lp-consent-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  color: #07111f;
  box-shadow: 0 24px 80px rgba(2, 8, 18, 0.38);
}

.lp-consent-modal h2 {
  padding-right: 42px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.lp-consent-modal__intro {
  color: #526478 !important;
}

.lp-consent-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #07111f;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.lp-consent-close:hover,
.lp-consent-close:focus-visible {
  border-color: #0c8f92;
  outline: 2px solid #29d3d0;
  outline-offset: 2px;
}

.lp-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  border-top: 1px solid #dbe4eb;
  padding-top: 20px;
}

.lp-consent-category h3 {
  font-size: 1rem;
}

.lp-consent-category p {
  color: #526478;
}

.lp-consent-always {
  color: #176d70;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.lp-consent-category--toggle {
  position: relative;
  cursor: pointer;
}

.lp-consent-category--toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.lp-consent-switch {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid #9aa9b8;
  border-radius: 13px;
  background: #dbe4eb;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.lp-consent-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 8, 18, 0.3);
  content: "";
  transition: transform 150ms ease;
}

.lp-consent-category--toggle input:checked + .lp-consent-switch {
  border-color: #0c8f92;
  background: #0c8f92;
}

.lp-consent-category--toggle input:checked + .lp-consent-switch::after {
  transform: translateX(22px);
}

.lp-consent-category--toggle input:focus-visible + .lp-consent-switch {
  outline: 2px solid #29d3d0;
  outline-offset: 3px;
}

.lp-consent-modal__actions {
  margin-top: 26px;
}

.lp-consent-modal .lp-consent-button--choice {
  border-color: #07111f;
  background: #07111f;
  color: #ffffff;
}

.lp-consent-modal .lp-consent-button--choice:hover,
.lp-consent-modal .lp-consent-button--choice:focus-visible {
  background: #17304c;
  color: #ffffff;
}

.lp-consent-button--save {
  grid-column: 1 / -1;
  border-color: #0c8f92;
  color: #075f62;
}

@media (max-width: 760px) {
  .lp-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 18px;
    width: auto;
    padding: 18px;
  }

  .lp-consent-banner__actions,
  .lp-consent-modal__actions {
    grid-template-columns: 1fr;
  }

  .lp-consent-button--customize,
  .lp-consent-button--save {
    grid-column: auto;
  }

  .lp-consent-backdrop {
    align-items: end;
    padding: 10px;
  }

  .lp-consent-modal {
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
  }

  .lp-consent-category {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-consent-button,
  .lp-consent-switch,
  .lp-consent-switch::after {
    transition: none;
  }
}
