html[data-rx-rotate-required] { overflow: hidden; }

#rxOrientationGuard[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100dvw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(20px, var(--rx-safe-top)) max(24px, var(--rx-safe-right)) max(20px, var(--rx-safe-bottom)) max(24px, var(--rx-safe-left));
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: var(--rx-color-overlay-solid);
  color: var(--rx-color-text);
  font-family: var(--rx-font-sans);
  text-align: center;
  box-shadow: none;
}

#rxOrientationGuard::backdrop { background: var(--rx-color-overlay-solid); }
#rxOrientationGuard [hidden] { display: none; }
.rx-orientation-message { max-width: 36rem; margin: auto; }
.rx-orientation-icon { display: block; width: 72px; height: 72px; margin: 0 auto 12px; color: var(--rx-color-accent); }
#rxOrientationTitle { margin: 0; font-size: var(--rx-font-size-title); line-height: 1.25; font-weight: var(--rx-font-weight-heavy); outline: none; }
#rxOrientationDescription { margin: 12px 0 0; color: var(--rx-color-text-muted); font-size: var(--rx-font-size-body); line-height: 1.5; }
#rxOrientationMatch { margin: 16px 0; font-size: var(--rx-font-size-sm); color: var(--rx-color-text); }
#rxOrientationCancel { margin-top: 16px; }
#rxOrientationGuard[data-required-orientation="landscape"] .rx-orientation-icon { transform: rotate(90deg); }
