html.oe-or-open,
html.oe-or-open body {
  overflow: hidden;
}

.oe-or-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

.oe-or-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.oe-or-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 29, 33, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.oe-or-dialog {
  position: relative;
  width: min(100%, 38rem);
  max-height: min(90vh, 46rem);
  overflow: auto;
  border: 1px solid rgba(226, 184, 92, .35);
  border-radius: 1.5rem;
  padding: clamp(1.45rem, 4vw, 2.4rem);
  background:
    radial-gradient(circle at top right, rgba(226, 184, 92, .15), transparent 32%),
    #fffdf8;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
  color: #102e36;
  transform: translateY(18px) scale(.985);
  transition: transform .25s ease;
}

.oe-or-modal.is-open .oe-or-dialog {
  transform: translateY(0) scale(1);
}

.oe-or-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 58, 74, .08);
  color: #0e3a4a;
  font: 400 1.55rem/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.oe-or-close:hover,
.oe-or-close:focus-visible {
  background: rgba(14, 58, 74, .14);
  transform: rotate(4deg);
  outline: none;
}

.oe-or-eyebrow {
  margin: 0 3rem .35rem 0;
  color: #0d7f7d;
  font: 600 .72rem/1.3 Outfit, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.oe-or-dialog h2 {
  margin: 0;
  font: 500 clamp(2rem, 7vw, 3rem)/1.05 Fraunces, Georgia, serif;
  letter-spacing: -.025em;
}

.oe-or-copy {
  max-width: 34rem;
  margin: .85rem 0 0;
  color: #52666b;
  font: 400 .98rem/1.65 Outfit, system-ui, sans-serif;
}

.oe-or-options {
  display: grid;
  gap: .8rem;
  margin-top: 1.5rem;
}

.oe-or-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  min-height: 5.25rem;
  border: 1px solid #dce7e5;
  border-radius: 1.1rem;
  padding: .95rem 1rem;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.8);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.oe-or-option:hover,
.oe-or-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(13, 127, 125, .55);
  background: #fff;
  box-shadow: 0 12px 30px rgba(14, 58, 74, .1);
  outline: none;
}

.oe-or-option__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #0e3a4a;
  color: #f3c664;
  font: 600 .7rem/1 Outfit, system-ui, sans-serif;
  letter-spacing: .08em;
}

.oe-or-option strong,
.oe-or-option small {
  display: block;
}

.oe-or-option strong {
  color: #102e36;
  font: 600 1rem/1.3 Outfit, system-ui, sans-serif;
}

.oe-or-option small {
  margin-top: .25rem;
  color: #617176;
  font: 400 .82rem/1.45 Outfit, system-ui, sans-serif;
}

.oe-or-option__arrow {
  color: #0d7f7d;
  font-size: 1.3rem;
}

.oe-or-form-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #0d7f7d;
  font: 600 .88rem/1.4 Outfit, system-ui, sans-serif;
  text-underline-offset: .25em;
}

.oe-or-form-link:hover,
.oe-or-form-link:focus-visible {
  color: #0e3a4a;
}

.oe-or-note {
  margin: 1rem 0 0;
  color: #7a8587;
  font: 400 .75rem/1.5 Outfit, system-ui, sans-serif;
}

/* The longer mobile label remains readable without widening the viewport. */
.oe-mobile-actions .oe-mobile-action.is-primary span:last-child {
  white-space: normal;
  text-align: center;
  line-height: 1.05;
  font-size: .64rem;
}

@media (max-width: 430px) {
  .oe-or-modal { padding: .7rem; }
  .oe-or-dialog { border-radius: 1.25rem; padding: 1.35rem 1rem 1.15rem; }
  .oe-or-option { gap: .7rem; padding: .85rem; }
  .oe-or-option__icon { width: 2.2rem; height: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .oe-or-modal,
  .oe-or-dialog,
  .oe-or-close,
  .oe-or-option { transition: none !important; }
}
