.gsthr-promotion {
  --promotion-background: #fff;
  --promotion-foreground: #212529;
  width: min(960px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  outline: none;
  border-radius: 0.75rem;
  background: var(--promotion-background);
  color: var(--promotion-foreground);
  box-shadow: 0 1rem 4rem rgb(0 0 0 / 25%);
  overscroll-behavior: contain;
  color-scheme: light;
}

.gsthr-promotion[data-mdb-theme='dark'] {
  --promotion-background: #212529;
  --promotion-foreground: #f8f9fa;
  color-scheme: dark;
}

.gsthr-promotion::backdrop {
  background: rgb(0 0 0 / 55%);
}

.gsthr-promotion__header {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.875rem 1rem 0.5rem;
  background: var(--promotion-background);
}

.gsthr-promotion__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem 0.55rem 1.125rem;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.gsthr-promotion__close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.gsthr-promotion__close:hover .gsthr-promotion__close-icon {
  background: rgb(255 255 255 / 25%);
  transform: rotate(90deg);
}

.gsthr-promotion__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem
    rgba(var(--mdb-primary-rgb, var(--bs-primary-rgb, 200, 35, 51)), 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .gsthr-promotion__close,
  .gsthr-promotion__close-icon {
    transition: none;
  }

  .gsthr-promotion__close:hover .gsthr-promotion__close-icon {
    transform: none;
  }
}

.gsthr-promotion__body {
  padding: 0.75rem clamp(0.75rem, 3vw, 2rem) 1.5rem;
  overflow-wrap: anywhere;
}

.gsthr-promotion__body img,
.gsthr-promotion__body video,
.gsthr-promotion__body iframe {
  max-width: 100%;
}

html:has(.gsthr-promotion[open]) {
  overflow: hidden;
}
