.orchard-consent-lock {
  overflow: hidden;
}

.orchard-consent-layer[hidden],
.orchard-consent-details[hidden],
.orchard-consent-close[hidden],
.orchard-consent-button[hidden] {
  display: none !important;
}

.orchard-consent-layer {
  align-items: center;
  background: rgba(1, 26, 0, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 10050;
}

.orchard-consent-dialog {
  background: #fff;
  border: 1px solid #d9e1da;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(1, 26, 0, .28);
  color: #172217;
  max-height: min(90vh, 760px);
  max-width: 720px;
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
}

.orchard-consent-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.orchard-consent-kicker {
  color: #23713f;
  display: block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.orchard-consent-dialog h2 {
  color: #011a00;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}

.orchard-consent-copy {
  color: #4b5d4d;
  line-height: 1.65;
  margin: 1rem 0;
}

.orchard-consent-copy a,
.orchard-consent-note a {
  color: #176334;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.orchard-consent-close {
  align-items: center;
  background: #f1f5f1;
  border: 0;
  border-radius: 999px;
  color: #011a00;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 40px;
  font-size: 1.3rem;
  height: 40px;
  justify-content: center;
}

.orchard-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
}

.orchard-consent-button {
  align-items: center;
  border: 1px solid #11612f;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
}

.orchard-consent-button-primary {
  background: #11612f;
  color: #fff;
}

.orchard-consent-button-secondary {
  background: #fff;
  color: #0b4e26;
}

.orchard-consent-button:hover,
.orchard-consent-button:focus-visible,
.orchard-consent-close:hover,
.orchard-consent-close:focus-visible,
.orchard-consent-review:hover,
.orchard-consent-review:focus-visible {
  box-shadow: 0 0 0 3px rgba(46, 139, 78, .24);
  outline: 2px solid transparent;
}

.orchard-consent-details {
  border-top: 1px solid #dfe6df;
  margin-top: 1.25rem;
  padding-top: .5rem;
}

.orchard-consent-category {
  align-items: flex-start;
  border-bottom: 1px solid #e5eae5;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem 0;
}

.orchard-consent-category h3 {
  color: #102710;
  font-size: 1rem;
  margin: 0 0 .3rem;
}

.orchard-consent-category p {
  color: #58685a;
  font-size: .9rem;
  line-height: 1.5;
  margin: 0;
}

.orchard-consent-status {
  background: #edf5ef;
  border-radius: 999px;
  color: #285b37;
  font-size: .75rem;
  font-weight: 750;
  padding: .32rem .6rem;
  white-space: nowrap;
}

.orchard-consent-switch {
  display: inline-flex;
  position: relative;
}

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

.orchard-consent-slider {
  background: #9aa59b;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 28px;
  position: relative;
  transition: background .18s ease;
  width: 50px;
}

.orchard-consent-slider::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .18s ease;
  width: 22px;
}

.orchard-consent-switch input:checked + .orchard-consent-slider {
  background: #18713a;
}

.orchard-consent-switch input:checked + .orchard-consent-slider::after {
  transform: translateX(22px);
}

.orchard-consent-switch input:focus-visible + .orchard-consent-slider {
  box-shadow: 0 0 0 3px rgba(46, 139, 78, .25);
}

.orchard-consent-note {
  background: #f5f8f5;
  border-radius: 10px;
  color: #526154;
  font-size: .82rem;
  line-height: 1.5;
  margin-top: 1rem;
  padding: .8rem;
}

.orchard-consent-review {
  align-items: center;
  background: #011a00;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  bottom: 1.1rem;
  box-shadow: 0 8px 24px rgba(1, 26, 0, .24);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  gap: .45rem;
  left: 1.1rem;
  min-height: 44px;
  padding: .65rem .9rem;
  position: fixed;
  z-index: 1040;
}

.orchard-consent-review svg {
  height: 18px;
  width: 18px;
}

.orchard-consent-resource-placeholder {
  align-items: center;
  background: #f3f6f3;
  border: 1px solid #dbe3dc;
  border-radius: 8px;
  color: #516052;
  display: flex;
  font-size: .8rem;
  justify-content: center;
  min-height: 38px;
  padding: .45rem .7rem;
}

.orchard-consent-resource-placeholder[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .orchard-consent-layer {
    align-items: flex-end;
    padding: 0;
  }

  .orchard-consent-dialog {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 1.2rem;
  }

  .orchard-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .orchard-consent-button {
    width: 100%;
  }

  .orchard-consent-review span {
    position: absolute;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    width: 1px;
  }

  .orchard-consent-review {
    justify-content: center;
    padding: .65rem;
    width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orchard-consent-slider,
  .orchard-consent-slider::after {
    transition: none;
  }
}
