@import url("https://fonts.googleapis.com/css2?family=Spectral:wght@400;600&family=Source+Sans+3:wght@400;600;700&display=swap");

body.wm-otp-enabled #wpadminbar {
  display: block;
}

body.wm-otp-enabled header,
body.wm-otp-enabled footer,
body.wm-otp-enabled .site-header,
body.wm-otp-enabled .site-footer,
body.wm-otp-enabled #masthead,
body.wm-otp-enabled #colophon,
body.wm-otp-enabled .woocommerce-breadcrumb,
body.wm-otp-enabled .entry-header,
body.wm-otp-enabled .header-part,
body.wm-otp-enabled .header-top,
body.wm-otp-enabled .header-content,
body.wm-otp-enabled .header-media-group,
body.wm-otp-enabled .header-widget-group,
body.wm-otp-enabled .header-form,
body.wm-otp-enabled .navbar-part,
body.wm-otp-enabled .navbar-content,
body.wm-otp-enabled .nav-sidebar,
body.wm-otp-enabled .nav-header,
body.wm-otp-enabled .mobile-menu,
body.wm-otp-enabled .backdrop,
body.wm-otp-enabled .footer-part,
body.wm-otp-enabled .footer-newsletter,
body.wm-otp-enabled .single-banner,
body.wm-otp-enabled .section.alignfull {
  display: none !important;
}

body.wm-otp-enabled,
body.wm-otp-enabled #page,
body.wm-otp-enabled #content,
body.wm-otp-enabled #primary,
body.wm-otp-enabled .site-content,
body.wm-otp-enabled .site-main {
  min-height: 100vh;
}

body.wm-otp-enabled .site-main {
  padding: 0 !important;
  margin: 0 !important;
}

.wm-otp-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 9999;
}

.wm-otp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 10, 10, 0.55);
  backdrop-filter: blur(2px);
}

.wm-otp-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
}

.wm-otp-checkout form.checkout {
  pointer-events: none;
  filter: blur(1.5px);
  opacity: 0.65;
}

body.wm-otp-checkout .woocommerce-error,
body.wm-otp-checkout .woocommerce-info,
body.wm-otp-checkout .woocommerce-message {
  display: none !important;
}

.wm-otp-checkout .wm-otp-wrap {
  max-width: none;
  margin: 0 auto;
}

body.wm-otp-enabled .grecaptcha-badge {
  position: fixed !important;
  right: 16px !important;
  left: auto !important;
  bottom: 16px !important;
  transform: scale(0.8) !important;
  transform-origin: right bottom;
  z-index: 9999;
}

body.wm-otp-enabled #wm-otp-recaptcha,
body.wm-otp-enabled #wm-otp-recaptcha.wm-otp-recaptcha-fixed {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 9999;
}

.wm-otp-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #f7ede8 0%, #fff6f2 45%, #f2e7e2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.wm-otp-screen::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(118, 37, 33, 0.18), rgba(118, 37, 33, 0));
}

.wm-otp-screen::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(118, 37, 33, 0.12), rgba(118, 37, 33, 0));
}
.wm-otp-shell {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.wm-otp-wrap {
  --wm-otp-accent: #762521;
  --wm-otp-ink: #2b1b1b;
  --wm-otp-soft: #f5eee9;
  --wm-otp-border: #e6d9d1;
  --wm-otp-progress: 33%;
  max-width: 480px;
  margin: 0;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 70%);
  border: 1px solid var(--wm-otp-border);
  box-shadow: 0 18px 50px rgba(118, 37, 33, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.wm-otp-wrap::before {
  content: "";
  position: absolute;
  inset: -50% auto auto -40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(118, 37, 33, 0.12), rgba(118, 37, 33, 0));
  pointer-events: none;
}

.wm-otp-enabled #customer_login {
  display: none;
}

.wm-otp-header {
  position: relative;
  z-index: 1;
}

.wm-otp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--wm-otp-accent);
  border: 1px solid rgba(118, 37, 33, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wm-otp-title {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.8rem;
  color: var(--wm-otp-ink);
  font-family: "Spectral", Georgia, serif;
  letter-spacing: 0.02em;
}

.wm-otp-subtitle {
  margin: 0 0 1rem;
  color: #5e4a45;
  font-size: 0.98rem;
  line-height: 1.45;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.wm-otp-wrap label {
  display: block;
  margin: 0.85rem 0 0.3rem;
  font-weight: 600;
  color: var(--wm-otp-ink);
  font-size: 0.95rem;
}

.wm-otp-mask {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.85rem;
  color: #6b5a56;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.wm-otp-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.wm-otp-otp input {
  text-align: center;
  font-size: 1.1rem;
  padding: 0.6rem 0;
  border: 1px solid var(--wm-otp-border);
  border-radius: 10px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.wm-otp-step {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wm-otp-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.wm-otp-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
}

.wm-otp-steps::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(118, 37, 33, 0.12);
}

.wm-otp-steps::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: var(--wm-otp-progress);
  border-radius: 999px;
  background: linear-gradient(90deg, #762521, #9a3a34);
  transition: width 0.25s ease;
}

.wm-otp-step-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(118, 37, 33, 0.08);
  color: #6e4c49;
  border: 1px solid rgba(118, 37, 33, 0.12);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wm-otp-wrap[data-step="phone"] .wm-otp-step-pill[data-step="phone"],
.wm-otp-wrap[data-step="verify"] .wm-otp-step-pill[data-step="verify"],
.wm-otp-wrap[data-step="profile"] .wm-otp-step-pill[data-step="profile"] {
  background: var(--wm-otp-accent);
  color: #fff;
  border-color: var(--wm-otp-accent);
  transform: translateY(-2px) scale(1.02);
}

.wm-otp-wrap input[type="tel"],
.wm-otp-wrap input[type="text"],
.wm-otp-wrap input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--wm-otp-border);
  border-radius: 10px;
  background: #fff;
  color: var(--wm-otp-ink);
  font-size: 1rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

.wm-otp-wrap input:focus {
  outline: none;
  border-color: var(--wm-otp-accent);
  box-shadow: 0 0 0 3px rgba(118, 37, 33, 0.15);
}

.wm-otp-help {
  margin: 0.45rem 0 0;
  color: #6b5a56;
  font-size: 0.85rem;
}

.wm-otp-wrap .button {
  margin-top: 0.75rem;
  width: 100%;
  position: relative;
  border-radius: 10px;
  background: var(--wm-otp-accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 24px rgba(118, 37, 33, 0.22);
}

.wm-otp-wrap .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(118, 37, 33, 0.26);
}

.wm-otp-wrap .button.button-secondary {
  background: #f7f1ee;
  color: var(--wm-otp-ink);
  border: 1px solid var(--wm-otp-border);
  box-shadow: none;
}

.wm-otp-wrap .button.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.wm-otp-wrap .button.is-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.85);
  border-right-color: rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  animation: wm-otp-spin 0.9s linear infinite;
  vertical-align: middle;
}

.wm-otp-wrap .button.loading {
  opacity: 0.85;
  pointer-events: none;
}

.wm-otp-wrap .button.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.85);
  border-right-color: rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  animation: wm-otp-spin 0.9s linear infinite;
  vertical-align: middle;
}

@keyframes wm-otp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wm-otp-actions {
  display: flex;
  gap: 0.5rem;
}

.wm-otp-actions .button {
  flex: 1;
}

.wm-otp-resend {
  margin-top: 0.75rem;
  color: var(--wm-otp-accent);
  cursor: pointer;
  font-weight: 600;
}

.wm-otp-resend.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.wm-otp-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  display: none;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.wm-otp-message.error {
  display: block;
  background: #fdecea;
  color: #8c2f2b;
  border: 1px solid rgba(140, 47, 43, 0.2);
}

.wm-otp-message.success {
  display: block;
  background: #e7f5ee;
  color: #1f5b3f;
  border: 1px solid rgba(31, 91, 63, 0.2);
}

.wm-otp-footer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: #7b6a66;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.wm-otp-visual {
  background: linear-gradient(160deg, #7a2b27 0%, #8f3a35 45%, #5a1f1c 100%);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.wm-otp-visual::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0));
}

.wm-otp-visual::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 32px;
  transform: rotate(18deg);
  background: rgba(255,255,255,0.12);
}

.wm-otp-visual-inner {
  position: relative;
  z-index: 1;
  max-width: 360px;
}

.wm-otp-visual-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.wm-otp-visual h3 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  font-family: "Spectral", Georgia, serif;
}

.wm-otp-logo {
  max-width: 160px;
  margin-bottom: 1.5rem;
  display: block;
}

.wm-otp-visual p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.wm-otp-visual-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  font-weight: 600;
}

.wm-otp-visual-check {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.25);
  position: relative;
}

.wm-otp-visual-check::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}

.wm-otp-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  border: 1px solid rgba(255,255,255,0.22);
  transition: transform 0.15s ease, background 0.15s ease;
}

.wm-otp-home:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.wm-otp-phone {
  margin-top: 1rem;
}

.wm-otp-account-phone input[readonly] {
  background: #f9f9f9;
}

@media (max-width: 991px) {
  .wm-otp-shell {
    grid-template-columns: 1fr;
  }
  .wm-otp-visual {
    display: none;
  }
}

@media (max-width: 600px) {
  .wm-otp-shell {
    gap: 1.25rem;
  }
  .wm-otp-wrap {
    padding: 1rem;
  }
  .wm-otp-actions {
    flex-direction: column;
  }
}
