body.ro-auth-dialog-open { overflow: hidden; }

.woocommerce-account:not(.logged-in):not(.ro-auth-dialog-open)::before {
  position: fixed;
  z-index: 998;
  inset: 0;
  background: rgba(12, 12, 11, .72);
  content: '';
}

.ro-auth-shell {
  position: fixed;
  z-index: 999;
  inset: 0 0 0 auto;
  width: min(560px, 100vw);
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #171716;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: -24px 0 70px rgba(0, 0, 0, .22);
  animation: ro-auth-enter 220ms ease-out both;
}

.ro-auth-shell[open] { display: block; }

.ro-auth-shell::backdrop {
  background: rgba(12, 12, 11, .72);
  backdrop-filter: grayscale(.25) blur(1px);
}

@keyframes ro-auth-enter {
  from { opacity: .7; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

.ro-auth-topbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 6px 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #ecece8;
}

.ro-auth-topbar > span {
  color: #65655f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ro-auth-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #2c2c29;
  border: 1px solid transparent;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.ro-auth-close:hover { color: #111; border-color: #d8d8d3; background: #f7f7f4; }

.ro-auth-panel {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 40px) clamp(24px, 4vw, 40px) 32px;
}

.ro-auth-panel__header {
  margin-bottom: 20px;
  text-align: center;
}

.ro-auth-panel__eyebrow {
  margin: 0 0 7px;
  color: #087d72;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ro-auth-panel__header h2 {
  margin: 0 0 10px;
  color: #151514;
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}

.ro-auth-panel__header > p:last-child {
  max-width: 42ch;
  margin: 0 auto;
  color: #666660;
  font-size: 14px;
  line-height: 1.45;
}

.ro-auth-notices { margin: 0 0 18px; }
.ro-auth-notices .woocommerce-error,
.ro-auth-notices .woocommerce-info,
.ro-auth-notices .woocommerce-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.ro-auth-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  border: 1px solid #deded9;
  background: #f4f4f1;
}

.ro-auth-choice__item {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: #595954;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.ro-auth-choice__item:hover {
  color: #111;
  background: #fff;
}

.ro-auth-choice__item.is-active {
  color: #111;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .08);
}

.ro-social-login { margin: 0 0 20px; }
.ro-social-login .nsl-container { margin: 0 !important; text-align: left !important; }
.ro-social-login .nsl-container-buttons { width: 100% !important; padding: 0 !important; }
.ro-social-login .nsl-button {
  width: 100% !important;
  min-height: 50px;
  justify-content: center;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.ro-social-login__help {
  max-width: 48ch;
  margin: 9px auto 0;
  color: #72726c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.ro-social-login__separator {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 18px 0 0;
  color: #74746f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ro-social-login__separator::before,
.ro-social-login__separator::after { content: ''; flex: 1; height: 1px; background: #deded9; }

.ro-auth-panel .ride-on-turnstile[data-turnstile-status="verified"] { display: none; }

.ro-auth-panel form.login,
.ro-auth-panel form.register { margin: 0; padding: 0; border: 0; }
.woocommerce-account .ro-auth-panel form .form-row { margin: 0 0 14px; }
.woocommerce-account .ro-auth-panel form .form-row label {
  margin-bottom: 6px;
  color: #363633;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.woocommerce-account .ro-auth-panel form .form-row input.input-text {
  min-height: 50px;
  padding: 12px 14px;
  border-color: #aaa9a4;
  background: #fff;
  font-size: 16px;
}
.woocommerce-account .ro-auth-panel form .form-row input.input-text:hover { border-color: #6f6f69; }
.woocommerce-account .ro-auth-panel form .form-row input.input-text:focus {
  border-color: #111;
  outline: 3px solid rgba(54, 230, 207, .42);
}

.ro-auth-panel .show-password-input {
  min-width: 44px;
  min-height: 44px;
}

.ro-auth-login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 18px;
}
.woocommerce-account .ro-auth-login-meta .woocommerce-form-login__rememberme { margin: 0; }
.ro-auth-login-meta a {
  color: #343431;
  font-size: 12px;
  font-weight: 850;
  text-underline-offset: 4px;
}

.woocommerce-account .ro-auth-submit { margin: 0; }
.ro-auth-register-prompt {
  margin: 14px 0 0;
  color: #666660;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.ro-auth-register-prompt a {
  color: #222;
  font-weight: 850;
  text-underline-offset: 3px;
}
.woocommerce-account .ro-auth-panel .woocommerce-form-login__submit,
.woocommerce-account .ro-auth-panel .woocommerce-form-register__submit {
  width: 100%;
  min-height: 50px;
  color: #111;
  background: var(--ro-accent);
  border: 2px solid var(--ro-accent);
  font-size: 12px;
  letter-spacing: .08em;
}
.woocommerce-account .ro-auth-panel .woocommerce-form-login__submit:hover,
.woocommerce-account .ro-auth-panel .woocommerce-form-register__submit:hover {
  color: #fff;
  background: #111;
  border-color: #111;
}

.ro-auth-password-hint {
  display: block;
  margin-top: 7px;
  color: #62655f;
  font-size: 13px;
  line-height: 1.4;
}

.ro-auth-close:focus-visible,
.ro-auth-login-meta a:focus-visible,
.ro-auth-choice__item:focus-visible {
  outline: 3px solid rgba(54, 230, 207, .65);
  outline-offset: 3px;
}

.ro-social-account { margin-top: 28px; padding: 24px; background: #fff; border: 1px solid var(--ro-line); }
.ro-social-account__eyebrow {
  margin: 0 0 10px;
  color: #66665f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ro-social-account h3 { margin: 0 0 8px; }
.ro-social-account > p:not(.ro-social-account__eyebrow) { color: #66665f; }

@media (max-width: 620px) {
  .ro-auth-shell {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    box-shadow: none;
  }
  .ro-auth-topbar { min-height: 54px; padding: 5px 10px 5px 18px; }
  .ro-auth-close { width: 44px; height: 44px; }
  .ro-auth-panel { padding: 24px 22px 30px; }
  .ro-auth-panel__header { margin-bottom: 18px; }
  .ro-auth-panel__header h2 { font-size: clamp(32px, 10vw, 40px); overflow-wrap: normal; word-break: normal; }
}

@media (max-width: 390px) {
  .ro-auth-panel { padding-inline: 20px; }
  .ro-auth-login-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-height: 760px) and (min-width: 621px) {
  .ro-auth-panel { padding-top: 20px; }
  .ro-auth-panel__header { margin-bottom: 16px; }
  .ro-auth-panel__header h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .ro-auth-shell { animation: none; }
}
