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

.wsh-consent {
  position: fixed;
  z-index: 99999;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: end;
  width: min(52rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.25rem;
  color: #1a1a1a;
  font-family: "IBM Plex Sans Thai", sans-serif;
  background: #fff;
  border: 1px solid #c2c9cf;
  border-radius: 12px;
}

.wsh-consent__copy,
.wsh-consent__copy p {
  margin: 0;
}

.wsh-consent__title {
  margin: 0 0 .35rem;
  color: #1a1a1a;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.wsh-consent__copy p {
  max-width: 42rem;
  font-size: .9375rem;
  line-height: 1.65;
}

.wsh-consent__privacy {
  display: inline-block;
  margin-top: .45rem;
  color: #466556;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.wsh-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
  min-width: 21.5rem;
}

.wsh-consent__button,
.wsh-measurement-settings {
  min-height: 44px;
  padding: .7rem 1rem;
  font: 500 .9375rem/1.3 "IBM Plex Sans Thai", sans-serif;
  border: 1px solid #466556;
  border-radius: 8px;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.wsh-consent__button--accept {
  color: #fff;
  background: #466556;
}

.wsh-consent__button--accept:hover {
  color: #fff;
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.wsh-consent__button--reject,
.wsh-measurement-settings {
  color: #466556;
  background: #fff;
}

.wsh-consent__button--reject:hover,
.wsh-measurement-settings:hover {
  color: #fff;
  background: #466556;
}

.wsh-consent :focus-visible,
.wsh-measurement-settings:focus-visible {
  outline: 3px solid #a2acb5;
  outline-offset: 3px;
}

.wsh-measurement-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .5rem;
}

@media (max-width: 767px) {
  .wsh-consent {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: auto;
    padding: 1rem;
    border-radius: 10px;
  }

  .wsh-consent__actions {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wsh-consent__button,
  .wsh-measurement-settings {
    transition: none;
  }
}

