/* Shared Mobile Account Drawer (#loginDrawer) — loaded on every public page, including homepage CRP. */
/* Shared Mobile Account Drawer (#loginDrawer) — loaded on every public page, including homepage CRP. */
#loginDrawerOverlay.mobile-panel-overlay,
#loginDrawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s;
  z-index: 14100;
}
#loginDrawerOverlay.mobile-panel-overlay.active,
#loginDrawerOverlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  z-index: 14100 !important;
}

#loginDrawer.mobile-right-panel,
#loginDrawer {
  position: fixed;
  top: 0;
  right: 0 !important;
  bottom: 0;
  width: min(420px, 86vw);
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 14110;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid #eef2f7;
  box-shadow: -16px 0 50px rgba(0, 0, 0, 0.12);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
}
#loginDrawer.mobile-right-panel.active,
#loginDrawer.active {
  transform: translateX(0);
  right: 0 !important;
  pointer-events: auto !important;
  z-index: 14110 !important;
}

@media (prefers-reduced-motion: reduce) {
  #loginDrawer {
    transition: none !important;
  }
}

.mobile-drawer-divider {
  height: 1px;
  background: #eef2f7;
  margin: 18px 0;
}
.mobile-drawer-text-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 4px;
}
.mobile-text-action {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 6px 0;
  text-align: left;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px;
}
.mobile-text-action:hover,
.mobile-text-action:focus-visible {
  background: #f8fafc;
  color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.16);
}
.mobile-drawer-section {
  margin-top: 18px;
}
.mobile-drawer-heading {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.mobile-drawer-description {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}
.mobile-drawer-link-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-link-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  border-radius: 14px;
}
.mobile-link-cta:hover,
.mobile-link-cta:focus-visible {
  background: #f8fafc;
  color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.16);
}
.mobile-link-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.mobile-link-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.mobile-link-strong {
  font-size: 15px;
  color: #0f172a;
  font-weight: 800;
}
.mobile-link-arrow {
  color: #4f46e5;
  font-weight: 800;
}

/* Drawer lives in .mobile-only; homepage CRP hides that wrapper from 992px while the header stays mobile until 1024. */
@media (max-width: 1023.98px) {
  body.acm-shell > .mobile-only:has(#loginDrawer) {
    display: block !important;
  }
}
