/* PopQuest QWERTY Lock Sidebar Fix (v6c regenerated)
   Applies ONLY on QWERTY pages via body.pqqw-is-qwerty.
*/
:root{
  --pqsq-sidebar-left: 0px;
  --pqsq-sidebar-right: 0px;
}

/* The tray behaves like the Daily Swipe "complete" panel: big rounded container behind the lock card */
body.pqqw-is-qwerty .pqqw-lock-tray{
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--pqsq-sidebar-left);
  right: var(--pqsq-sidebar-right);
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  z-index: 9999;
  box-sizing: border-box;
}

/* backdrop dim */
body.pqqw-is-qwerty .pqqw-lock-tray::before{
  content:"";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
}

/* tray panel */
body.pqqw-is-qwerty .pqqw-lock-tray__inner{
  position: relative;
  width: min(760px, calc(100vw - var(--pqsq-sidebar-left) - var(--pqsq-sidebar-right) - 36px));
  padding: 34px 26px;
  border-radius: 26px;
  background: rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.10);
  box-sizing: border-box;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Ensure the actual lock card sits centered and doesn't blow out */
body.pqqw-is-qwerty .pqqw-lock-tray__inner > *{
  max-width: 100%;
  box-sizing: border-box;
}

/* If the original overlay had fixed positioning, neutralize it inside tray */
body.pqqw-is-qwerty .pqqw-lock-tray__inner .pqsq-lock-overlay,
body.pqqw-is-qwerty .pqqw-lock-tray__inner .pq-qwerty-lock-overlay,
body.pqqw-is-qwerty .pqqw-lock-tray__inner .pq-lock-overlay,
body.pqqw-is-qwerty .pqqw-lock-tray__inner [data-pqsq-lock-overlay],
body.pqqw-is-qwerty .pqqw-lock-tray__inner [data-qwerty-lock-overlay]{
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  background: transparent !important;
}

/* Mobile: slightly tighter tray */
@media (max-width: 540px){
  body.pqqw-is-qwerty .pqqw-lock-tray{ padding: 18px 12px; }
  body.pqqw-is-qwerty .pqqw-lock-tray__inner{ padding: 22px 16px; border-radius: 22px; }
}
