/* DjimlyStore Marketplace v3.72.62 — scoped desktop reseller corrections.
   The buyer and seller order/payment APIs are unchanged. Mobile below 1024px is unchanged. */
@media (min-width:1024px) {
  /* The active Payments renderer is #rv44App, NOT .wallet-ios-shell.
     v3.72.61 styled the hidden legacy renderer, leaving the real view at 790px. */
  body.rv53-premium #app #tab-wallet.rv44-ready > .scroll {
    width:100%!important;max-width:none!important;min-width:0!important;
    padding:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    background:#09172b!important;
  }
  body.rv53-premium #app #tab-wallet.rv44-ready #rv44App {
    max-width:1560px!important;width:100%!important;min-width:0!important;
    margin:0 auto!important;padding:clamp(26px,3vw,46px)!important;
    box-sizing:border-box!important;background:transparent!important;
    color:#f7fbff!important;overflow-x:clip!important;
  }
  body.rv53-premium #app #tab-wallet.rv44-ready #rv44App[hidden],
  body.rv53-premium #app #tab-wallet.rv44-ready.rv44-advance #rv44App {
    display:none!important;
  }
  body.rv53-premium #app #tab-wallet.rv44-ready:not(.rv44-advance) #rv44App:has(> .rv44-funds) {
    display:grid!important;
    grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr)!important;
    grid-template-rows:auto repeat(3,auto) auto auto auto auto!important;
    gap:14px 23px!important;
    align-items:start!important;
  }
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-pagehead {grid-column:1/-1!important;grid-row:1!important;margin-bottom:8px!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-funds {grid-column:1!important;grid-row:2 / span 3!important;min-height:345px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;margin:0!important;padding:30px!important;background:linear-gradient(135deg,#102f63,#1768c8)!important;border:1px solid #5c9de4!important;border-radius:24px!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-funds>strong {font-size:clamp(38px,4vw,64px)!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-funds .rv44-mini-grid {gap:12px!important;margin-top:10px!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-funds .rv44-mini-grid>div {padding:16px 13px!important;background:#ffffff17!important;border:1px solid #ffffff40!important;border-radius:15px!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-funds .rv44-mini-grid small {font-size:12px!important;color:#dbeafe!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-funds .rv44-mini-grid b {font-size:19px!important;color:#fff!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-row {grid-column:2!important;grid-row:2!important;min-height:78px!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-outline {grid-column:2!important;grid-row:3!important;margin:0!important;min-height:56px!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-feature {grid-column:2!important;grid-row:4!important;margin:0!important;min-height:175px!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-label:nth-child(6){grid-column:1!important;grid-row:5!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-list:nth-child(7){grid-column:1!important;grid-row:6!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-label:nth-child(8){grid-column:2!important;grid-row:5!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-list:nth-child(9){grid-column:2!important;grid-row:6!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-label:nth-child(10){grid-column:1!important;grid-row:7!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-list:nth-child(11){grid-column:1!important;grid-row:8!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds) > .rv44-caution{grid-column:2!important;grid-row:7 / span 2!important;align-self:center!important;}
  body.rv53-premium #app #rv44App .rv44-pagehead h2 {font-size:clamp(26px,2.6vw,38px)!important;}
  body.rv53-premium #app #rv44App .rv44-row {border:1px solid #314d72!important;border-radius:14px!important;background:#152943!important;min-height:76px!important;padding:18px!important;}
  body.rv53-premium #app #rv44App .rv44-list {background:transparent!important;border:0!important;display:grid!important;gap:10px!important;margin:0!important;}
  body.rv53-premium #app #rv44App .rv44-label {margin:16px 0 6px!important;font-size:18px!important;}
  body.rv53-premium #app #rv44App .rv44-feature {border:1px solid #a5e7ef!important;}
  body.rv53-premium #app #rv44App .rv44-list .rv44-row {margin:0!important;width:100%!important;}
  body.rv53-premium #app #rv44App .rv44-row-copy b{font-size:15px!important;}
  body.rv53-premium #app #rv44App .rv44-row-copy small{font-size:12px!important;}
  body.rv53-premium #app #rv44App button:focus-visible {outline:3px solid #a5ddff!important;outline-offset:2px!important;}
  body.rv53-premium #app #rv44App .rv44-pagehead {margin-bottom:18px!important;}
  body.rv53-premium #app #rv44App:not(:has(> .rv44-funds)) > .rv44-list,
  body.rv53-premium #app #rv44App:not(:has(> .rv44-funds)) > .rv44-chips,
  body.rv53-premium #app #rv44App:not(:has(> .rv44-funds)) > .rv44-statement {max-width:1250px!important;}
  /* Conversation list is a full-width grid when no buyer chat is open. */
  body.rv53-premium #app #tab-messages #rv24Inbox {grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:1600px!important;}
  body.rv53-premium #app #tab-messages #rv24Inbox .rv31-inbox-row {min-width:0!important;line-height:1.5!important;}
  body.rv53-premium #rv24Panel.rv31-dark-panel .rv31-thread-bubbles {gap:12px!important;font-size:15px!important;line-height:1.55!important;}
  body.rv53-premium #rv24Panel.rv31-dark-panel .rv31-thread-message{max-width:min(83%,720px)!important;margin-bottom:14px!important;}
  body.rv53-premium #rv24Panel.rv31-dark-panel .rv31-thread-message>small{display:block!important;font-size:11px!important;opacity:.8!important;margin-top:6px!important;}
  body.rv53-premium #rv24Panel.rv31-dark-panel .rv31-thread-meta {padding:16px!important;margin-bottom:15px!important;border-radius:14px!important;}
  body.rv53-premium #rv24Panel.rv31-dark-panel .rv31-thread-meta strong{font-size:15px!important;line-height:1.3!important;}
  body.rv53-premium #rv24Panel.rv31-dark-panel .rv24-top strong{font-size:19px!important;}
}
@media (min-width:1320px) {
  /* Real PC split-view: persistent buyer list at left, conversation at right.
     The original panel logic/handlers and secure APIs are untouched. */
  body.rv53-premium:has(#rv24Panel.on.rv31-dark-panel) #app #tab-messages > .top-bar {width:390px!important;max-width:390px!important;}
  body.rv53-premium:has(#rv24Panel.on.rv31-dark-panel) #app #tab-messages > .scroll {width:390px!important;max-width:390px!important;padding:18px!important;margin:0!important;}
  body.rv53-premium:has(#rv24Panel.on.rv31-dark-panel) #app #tab-messages #rv24Inbox {grid-template-columns:1fr!important;gap:12px!important;width:100%!important;}
  body.rv53-premium:has(#rv24Panel.on.rv31-dark-panel) #app #tab-messages #rv24Inbox > .rv31-inbox-row{padding:14px!important;min-height:105px!important;gap:10px!important;}
  body.rv53-premium:has(#rv24Panel.on.rv31-dark-panel) #app #tab-messages #rv24Inbox img {width:48px!important;height:48px!important;}
  body.rv53-premium #rv24Panel.on.rv31-dark-panel:has(#rv31ThreadBubbles) {
    inset:20px 20px 20px 665px!important;max-height:none!important;
    border-radius:21px!important;width:auto!important;box-shadow:0 20px 50px #0007!important;
  }
  body.rv53-premium #rv24Panel.on.rv31-dark-panel:has(#rv31ThreadBubbles) #rv24Body {padding:20px 30px 12px!important;}
}
@media (min-width:1024px) and (max-width:1319px){
  body.rv53-premium #app #tab-messages #rv24Inbox {grid-template-columns:1fr!important;}
  body.rv53-premium #rv24Panel.on.rv31-dark-panel:has(#rv31ThreadBubbles) {inset:3vh 4vw!important;max-height:94vh!important;}
  body.rv53-premium #app #tab-wallet.rv44-ready:not(.rv44-advance) #rv44App:has(> .rv44-funds){grid-template-columns:minmax(0,1fr)!important;display:block!important;}
  body.rv53-premium #app #rv44App:has(> .rv44-funds)>*{margin-bottom:16px!important;}
}
