dialog.gs-review {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(34rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-top: 5px solid #ffcd00;
  border-radius: 12px;
  background: #002042;
  color: #fff;
  font-family: var(--e-global-typography-text-font-family, "Open Sans"), sans-serif;
  box-shadow: 0 16px 56px rgb(16 35 58 / 24%);
  z-index: 900;
}

.gs-review[open] { animation: gs-review-in 180ms ease-out; }
.gs-review::backdrop { background: rgb(9 23 40 / 44%); }
html:has(.gs-review--first[open]) { overflow: hidden; }

dialog.gs-review--reminder {
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(24rem, calc(100% - 2rem));
  padding: 1.25rem;
}

.gs-review h2 {
  margin: 0 2.5rem 0.625rem 0;
  color: inherit;
  font: 400 clamp(2rem, 5vw, 2.75rem)/1.08 var(--e-global-typography-secondary-font-family, Yellowtail), cursive;
}

.gs-review--reminder h2 { font-size: 1.875rem; }
.gs-review p { margin: 0 0 1.25rem; color: #e1eaf4; font-size: 1rem; line-height: 1.5; }
.gs-review__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; }

.gs-review .gs-review__primary,
.gs-review button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  text-transform: none;
  cursor: pointer;
}

.gs-review .gs-review__primary { background: #ffcd00; color: #002042; text-decoration: none; text-transform: uppercase; }
.gs-review .gs-review__primary:hover { background: #ffe273; color: #002042; }
.gs-review button:hover { background: #173957; color: #fff; }
.gs-review :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.gs-review .gs-review__close {
  position: absolute;
  inset: 0.375rem 0.375rem auto auto;
  width: 44px;
  padding: 0;
  font-size: 1.5rem;
}

@media (max-width: 600px) {
  dialog.gs-review--reminder {
    inset-inline: 0;
    margin-inline: auto;
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 5.5rem - env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  .gs-review__actions > * { width: 100%; }
}
@keyframes gs-review-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .gs-review[open] { animation: none; }
}
