.privacy-box {
  padding: 16px 20px;
  color: var(--theme-text, #1d2922);
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #bfcfc3);
  border-radius: 10px;
  box-shadow: 0 12px 40px #17251d33;
  font-size: 14px;
  line-height: 1.5;
}

.privacy-banner {
  position: fixed;
  z-index: 1540;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(660px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.privacy-settings {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
}

.privacy-settings::backdrop {
  background: #11201988;
}

.privacy-box h2 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.25;
}

.privacy-box p {
  margin: 0 0 12px;
}

.privacy-box a,
.privacy-policy a {
  color: var(--theme-accent, #116132);
  text-decoration: underline;
  text-underline-offset: .14em;
  overflow-wrap: anywhere;
}

.privacy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.privacy-choice {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--theme-accent, #14703d);
  border-radius: 6px;
  background: var(--theme-surface, #fff);
  color: var(--theme-accent, #116132);
  font-weight: 700;
}

.privacy-choice:hover,
.privacy-choice:focus-visible {
  background: var(--theme-soft, #eaf5eb);
}

.privacy-box .privacy-feedback {
  margin: 8px 0 0;
  color: var(--theme-error, #962e32);
}

.privacy-box .privacy-feedback:empty {
  margin: 0;
}

.privacy-settings-close {
  margin-top: 10px;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .14em;
  min-height: 36px;
}

.privacy-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 4px;
}

.privacy-footer a,
.privacy-footer button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .14em;
}

.privacy-policy {
  max-width: min(880px, calc(100% - 32px));
}

.privacy-policy h2 {
  margin: 1.45em 0 .55em;
  font-size: clamp(21px, 3.5vw, 25px);
  line-height: 1.25;
}

.privacy-policy h2:first-child {
  margin-top: 0;
}

.privacy-policy ul {
  padding-left: 1.5em;
}

.privacy-policy li + li {
  margin-top: .5em;
}

@media (max-width: 740px) {
  .privacy-banner {
    bottom: calc(58px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom));
    padding: 13px 14px;
  }
}

@media (max-width: 360px) {
  .privacy-choice {
    padding-inline: 7px;
  }
}
