.sp-consent {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(900px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #d1ddce;
  border-top: 5px solid #285a46;
  border-radius: 20px;
  background: #fffefa;
  color: #203e33;
  font:
    16px/1.6 "Segoe UI",
    system-ui,
    sans-serif;
  box-shadow: 0 24px 100px #0a211652;
  overflow: hidden;
  color-scheme: light;
}
.sp-consent[open] {
  display: flex;
  flex-direction: column;
}
.sp-consent::backdrop {
  background: #102d2466;
  backdrop-filter: blur(4px);
}
.sp-consent * {
  box-sizing: border-box;
}
.sp-consent [hidden] {
  display: none !important;
}
.sp-consent button,
.sp-consent input {
  font: inherit;
}
.sp-consent a {
  color: #245b43;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sp-consent button:focus-visible,
.sp-consent a:focus-visible,
.sp-consent summary:focus-visible {
  outline: 3px solid #aa7b26;
  outline-offset: 3px;
}
.sp-consent button {
  cursor: pointer;
}
.sp-consent__header:focus {
  /* This is a reading destination, not an interactive control. */
  outline: none;
}
.sp-consent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 28px;
  gap: 16px;
  flex: none;
}
.sp-consent__brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.15;
}
.sp-consent__domain {
  font-weight: 400;
}
.sp-consent__brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
  color: #5c694c;
}
.sp-consent__close {
  border: 1px solid #dce3d6;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
}
.sp-consent__tabs {
  display: flex;
  flex: none;
  border-block: 1px solid #dde4d8;
}
.sp-consent__tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #536254;
  flex: 1;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 600;
  min-height: 52px;
}
.sp-consent__tabs button[aria-selected="true"] {
  border-bottom-color: #285a46;
  color: #234c38;
  background: #f1f5ec;
}
.sp-consent__body {
  padding: 24px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.sp-consent h2 {
  font:
    700 23px/1.25 "Segoe UI",
    system-ui,
    sans-serif;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
  color: #203e33;
}
.sp-consent p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
}
.sp-consent p:last-child {
  margin-bottom: 0;
}
.sp-consent__choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d6dfd0;
  border-radius: 12px;
  margin: 22px 0 18px;
  overflow: hidden;
}
.sp-consent__choices label {
  font-weight: 400;
  color: inherit;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 14px;
  margin: 0;
  cursor: pointer;
  border-right: 1px solid #d6dfd0;
}
.sp-consent__choices label:last-child {
  border-right: 0;
}
.sp-consent__choices strong {
  font-size: 14px;
  display: block;
  font-weight: 650;
}
.sp-consent__choices small {
  font-size: 11px;
  display: block;
  line-height: 1.5;
  color: #596655;
  margin-top: 3px;
}
.sp-consent__choices input {
  position: absolute;
  right: 14px;
  width: 44px;
  height: 28px;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.sp-consent__switch {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 20px;
  background: #6f796f;
  flex: none;
  pointer-events: none;
  transition: background 0.15s;
}
.sp-consent__switch::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  margin: 3px;
  transition: transform 0.15s;
}
.sp-consent input:checked + .sp-consent__switch {
  background: #285a46;
}
.sp-consent input:checked + .sp-consent__switch::after {
  transform: translateX(18px);
}
.sp-consent input:disabled + .sp-consent__switch {
  background: #85917b;
}
.sp-consent input:focus-visible + .sp-consent__switch {
  outline: 3px solid #aa7b26;
  outline-offset: 4px;
}
.sp-consent .sp-consent__note {
  font-size: 13px;
  color: #56644e;
}
.sp-consent__footer {
  display: block;
  padding: 20px 28px 18px;
  border-top: 1px solid #dce4d6;
  flex: none;
  background: #f7f8f2;
}
.sp-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sp-consent__actions button {
  background: #285a46;
  color: #fff;
  border: 1px solid #285a46;
  border-radius: 9px;
  min-height: 48px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
.sp-consent__actions button:hover {
  background: #1c4433;
}
.sp-consent__actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.sp-consent__footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 13px 0 0;
  font-size: 12px;
  color: #53604c;
}
.sp-consent__footer p span {
  margin-left: auto;
}
.sp-consent details {
  padding: 14px 0;
  border-bottom: 1px solid #dbe3d4;
}
.sp-consent summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  padding: 4px 0;
}
.sp-consent details p {
  margin-top: 12px;
}
.sp-consent dl {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr;
  gap: 10px 16px;
  font-size: 13px;
  margin: 16px 0 4px;
}
.sp-consent dt {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sp-consent dd {
  margin: 0;
}
.sp-consent__request {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
}
.sp-consent__receipt {
  font-size: 12px !important;
  overflow-wrap: anywhere;
  background: #f0f4ea;
  padding: 12px;
  border-radius: 8px;
}
.sp-consent__error {
  background: #fff1e9;
  color: #8a3517;
  padding: 12px 28px !important;
  font-size: 14px !important;
  margin: 0 !important;
  flex: none;
}
.sp-consent-launcher {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #faf9f1;
  border: 1px solid #becbb4;
  border-radius: 50%;
  box-shadow: 0 4px 14px #1631241a;
  color: #254e3b;
}
.sp-consent-launcher:focus-visible {
  outline: 3px solid #aa7b26;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .sp-consent {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 15px;
  }
  .sp-consent__header {
    padding: 16px;
  }
  .sp-consent__brand {
    font-size: 22px;
    gap: 9px;
  }
  .sp-consent__brand img {
    width: 33px;
    height: 33px;
  }
  .sp-consent__brand small {
    font-size: 9px;
  }
  .sp-consent__body {
    padding: 20px 16px;
  }
  .sp-consent__tabs button {
    font-size: 13px;
    padding: 12px 3px;
    min-height: 46px;
  }
  .sp-consent h2 {
    font-size: 21px;
  }
  .sp-consent__choices {
    grid-template-columns: 1fr;
    margin: 16px 0;
  }
  .sp-consent__choices label {
    border-right: 0;
    border-bottom: 1px solid #d6dfd0;
    padding: 12px 14px;
  }
  .sp-consent__choices label:last-child {
    border-bottom: 0;
  }
  .sp-consent__choices small {
    font-size: 12px;
  }
  .sp-consent__footer {
    padding: 14px 16px;
  }
  .sp-consent__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sp-consent__actions button {
    min-height: 44px;
    padding: 9px 8px;
  }
  .sp-consent__footer p {
    gap: 5px 14px;
    font-size: 11px;
    margin-top: 10px;
  }
  .sp-consent__footer p span {
    margin-left: 0;
  }
  .sp-consent dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .sp-consent dd {
    margin-bottom: 12px;
  }
  .sp-consent__error {
    padding: 10px 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp-consent__switch,
  .sp-consent__switch::after {
    transition: none;
  }
}
