/* White mobile drawer shared by React and static pages. */
.w2b-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.w2b-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: min(86vw, 360px);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) 20px;
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px 0 0 24px;
  background: #ffffff;
  background-image: radial-gradient(ellipse at 100% 0%, rgba(37, 99, 235, 0.035), transparent 48%);
  color: #334155;
  box-shadow: -16px 0 56px rgba(15, 23, 42, 0.14);
  scrollbar-width: thin;
}

.w2b-mobile-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 16px;
  padding: 0 4px 20px;
  border-bottom: 1px solid #edf0f5;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #0f172a;
}

.w2b-mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 10px;
  border: 1px solid #e8edf4;
  border-radius: 50%;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.w2b-mobile-menu-close svg { width: 20px; height: 20px; }
.w2b-mobile-menu-close:active { transform: scale(0.94); }
.w2b-mobile-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.w2b-mobile-brand img { width: 36px; height: 36px; object-fit: contain; }
.w2b-mobile-brand span { margin-left: -4px; padding-top: 2px; font-size: 24px; line-height: 32px; }
.w2b-mobile-menu-links {
  display: grid;
  gap: 4px;
  flex-shrink: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f5;
}
.w2b-mobile-menu-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #f1f4f8;
  border-radius: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: normal;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.w2b-mobile-menu-links a::after {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
}
.w2b-mobile-menu-links a[aria-current="page"] {
  border-radius: 12px;
  border-color: transparent;
  background: linear-gradient(105deg, #eff6ff, #f0f9ff);
  color: #1e40af;
  font-weight: 900;
}
.w2b-mobile-menu-links a:last-child { border-bottom-color: transparent; }
.w2b-mobile-menu-links a:hover,
.w2b-mobile-menu-close:hover { background: #f1f5f9; color: #1d4ed8; }
.w2b-mobile-panel a:focus-visible,
.w2b-mobile-menu-close:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }


.w2b-mobile-panel .w2b-mobile-support {
  flex-shrink: 0;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e8eef7;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
}
.w2b-mobile-panel .w2b-mobile-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.w2b-mobile-panel .w2b-mobile-support h2 {
  margin: 0;
  color: #171923;
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.08 !important;
  letter-spacing: -0.045em;
  animation: none;
}
.w2b-mobile-panel .w2b-mobile-description {
  margin: 14px 0 0;
  color: #555b68;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: normal;
}
.w2b-mobile-actions {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #edf0f5;
}
.w2b-mobile-cta,
.w2b-mobile-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: normal;
  text-decoration: none;
}
.w2b-mobile-cta { border-radius: 9999px; }
.w2b-mobile-login { border-radius: 9999px; color: #334155; }
.w2b-mobile-login:hover { background: #f1f5f9; color: #1d4ed8; }

#w2b-mobile-nav-root {
  position: fixed;
  inset: 0;
  z-index: 105;
  overflow: hidden;
  pointer-events: none;
}
#w2b-mobile-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.36s;
}
#w2b-mobile-drawer {
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.36s;
}
#w2b-mobile-backdrop.is-open,
#w2b-mobile-drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
#w2b-mobile-backdrop.is-open { opacity: 1; }
#w2b-mobile-drawer.is-open { transform: translateX(0); }

body.w2b-menu-locked { overflow: hidden !important; }

@media (min-width: 768px) {
  .w2b-mobile-backdrop,
  .w2b-mobile-panel,
  #w2b-mobile-nav-root { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  #w2b-mobile-backdrop,
  #w2b-mobile-drawer,
  .w2b-mobile-menu-close,
  .w2b-mobile-menu-links a { transition: none; }
}
