.lg-consent-banner,
.lg-consent-modal,
.lg-consent-settings-button {
  box-sizing: border-box;
  color: #17233b;
  font-family: var(--font-family-ui, Inter, Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  letter-spacing: 0;
}

.lg-consent-banner[hidden],
.lg-consent-modal[hidden],
.lg-consent-settings-button[hidden] {
  display: none !important;
}

.lg-consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d8dfeb;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(23, 35, 59, 0.18);
}

.lg-consent-banner-copy {
  min-width: 0;
}

.lg-consent-banner-title,
.lg-consent-modal-title {
  margin: 0;
  color: #17233b;
  font-weight: 700;
  line-height: 1.25;
}

.lg-consent-banner-title {
  font-size: 18px;
}

.lg-consent-banner-text,
.lg-consent-modal-intro,
.lg-consent-purpose-copy {
  margin: 6px 0 0;
  color: #526078;
  font-size: 14px;
  line-height: 1.55;
}

.lg-consent-banner a,
.lg-consent-modal a {
  color: #195bc7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lg-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.lg-consent-button,
.lg-consent-settings-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.lg-consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
}

.lg-consent-button--primary {
  color: #fff;
  background: #246cf0;
  border-color: #246cf0;
}

.lg-consent-button--secondary {
  color: #173f80;
  background: #eef4ff;
  border-color: #b8cef5;
}

.lg-consent-button--quiet {
  color: #344258;
  background: #fff;
  border-color: #cbd4e2;
}

.lg-consent-button:hover,
.lg-consent-settings-button:hover {
  filter: brightness(0.97);
}

.lg-consent-button:focus-visible,
.lg-consent-settings-button:focus-visible,
.lg-consent-toggle-input:focus-visible + .lg-consent-toggle-control {
  outline: 3px solid #ff4e80;
  outline-offset: 2px;
}

.lg-consent-settings-button {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 2147482998;
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #245fc7;
  background: #fff;
  border-color: #cbd4e2;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(23, 35, 59, 0.14);
}

.lg-consent-settings-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lg-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 20, 38, 0.62);
}

.lg-consent-modal-panel {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d8dfeb;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(10, 20, 38, 0.3);
}

.lg-consent-modal-header,
.lg-consent-modal-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
}

.lg-consent-modal-header {
  justify-content: space-between;
  border-bottom: 1px solid #e1e6ef;
}

.lg-consent-modal-title {
  font-size: 21px;
}

.lg-consent-modal-close {
  width: 40px;
  min-width: 40px;
  padding: 0;
  color: #344258;
  background: #fff;
  border-color: #cbd4e2;
  font-size: 18px;
}

.lg-consent-modal-body {
  padding: 18px 20px 4px;
}

.lg-consent-purpose-list {
  margin-top: 18px;
  border-top: 1px solid #e1e6ef;
}

.lg-consent-purpose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e1e6ef;
}

.lg-consent-purpose-title {
  margin: 0;
  color: #24344e;
  font-size: 15px;
  font-weight: 700;
}

.lg-consent-purpose-copy {
  margin-top: 3px;
}

.lg-consent-always-on {
  color: #14735d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.lg-consent-toggle {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}

.lg-consent-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lg-consent-toggle-control {
  position: absolute;
  inset: 0;
  background: #aeb8c8;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.lg-consent-toggle-control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(23, 35, 59, 0.28);
  transition: transform 140ms ease;
}

.lg-consent-toggle-input:checked + .lg-consent-toggle-control {
  background: #00a97f;
}

.lg-consent-toggle-input:checked + .lg-consent-toggle-control::after {
  transform: translateX(18px);
}

.lg-consent-modal-footer {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lg-consent-lock {
  overflow: hidden !important;
}

@media (max-width: 860px) {
  .lg-consent-banner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lg-consent-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .lg-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding: 16px;
  }

  .lg-consent-actions,
  .lg-consent-button {
    width: 100%;
  }

  .lg-consent-modal-close {
    width: 40px;
    flex: 0 0 40px;
  }

  .lg-consent-modal {
    align-items: end;
    padding: 0;
  }

  .lg-consent-modal-panel {
    width: 100%;
    max-height: min(86vh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .lg-consent-purpose {
    gap: 12px;
  }

  .lg-consent-modal-footer .lg-consent-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-consent-toggle-control,
  .lg-consent-toggle-control::after {
    transition: none;
  }
}
