.sh-consent {
  --sh-consent-ink: var(--ink, #0b3d43);
  --sh-consent-teal: var(--teal, #087a71);
  --sh-consent-deep: var(--deep, #083d43);
  --sh-consent-mint: var(--mint, #edf5f1);
  --sh-consent-muted: var(--muted, #4c6468);
  --sh-consent-gold: var(--gold, #a28b52);
  --sh-consent-line: var(--line, #d6e1dd);
  color: var(--sh-consent-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.sh-consent *,
.sh-consent *::before,
.sh-consent *::after {
  box-sizing: border-box;
}

.sh-consent [hidden] {
  display: none !important;
}

.sh-consent__initial,
.sh-consent__preferences {
  position: fixed;
  z-index: 1000;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--sh-consent-line);
  border-top: 3px solid var(--sh-consent-gold);
  background: #fff;
  box-shadow: 0 12px 34px rgb(8 61 67 / 16%);
}

.sh-consent__preferences {
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px));
}

.sh-consent__title {
  margin: 0;
  color: var(--sh-consent-ink);
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.sh-consent__copy,
.sh-consent__status {
  margin: 11px 0 0;
  color: var(--sh-consent-muted);
  font-size: 13px;
}

.sh-consent__privacy {
  display: inline-block;
  margin-top: 5px;
  color: var(--sh-consent-ink);
  text-decoration: underline;
  text-decoration-color: var(--sh-consent-gold);
  text-underline-offset: 3px;
}

.sh-consent__privacy:hover {
  color: var(--sh-consent-teal);
}

.sh-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.sh-consent__action,
.sh-consent__trigger,
.sh-consent__withdraw,
.sh-consent__close {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--sh-consent-teal);
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sh-consent__action--accept,
.sh-consent__action--reject {
  background: var(--sh-consent-teal);
  color: #fff;
}

.sh-consent__action:hover,
.sh-consent__trigger:hover {
  border-color: var(--sh-consent-deep);
  background: var(--sh-consent-deep);
  color: #fff;
}

.sh-consent__trigger {
  position: fixed;
  z-index: 999;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 46px;
  padding-inline: 17px;
  border-color: var(--sh-consent-deep);
  background: var(--sh-consent-deep);
  color: #fff;
  box-shadow: 0 4px 15px rgb(6 47 53 / 14%);
}

.sh-consent__withdraw,
.sh-consent__close {
  margin-top: 10px;
  background: var(--sh-consent-mint);
  color: var(--sh-consent-ink);
}

.sh-consent__withdraw {
  width: 100%;
  border-color: var(--sh-consent-line);
  text-align: left;
}

.sh-consent__close {
  min-width: 96px;
  border-color: var(--sh-consent-gold);
}

.sh-consent button:focus-visible,
.sh-consent a:focus-visible {
  outline: 3px solid var(--sh-consent-gold);
  outline-offset: 3px;
}

@media (max-width: 380px) {
  .sh-consent__initial,
  .sh-consent__preferences {
    padding: 17px;
  }

  .sh-consent__action {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .sh-consent__initial,
  .sh-consent__trigger {
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px));
  }

  .sh-consent__preferences {
    bottom: max(136px, calc(env(safe-area-inset-bottom) + 126px));
    max-height: calc(100dvh - 155px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-consent *,
  .sh-consent *::before,
  .sh-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
