/* ForGamer cart: native dialog retains focus containment and Escape support. */
#modal.cart-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100%);max-width:100%;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #e0e6f2;border-radius:18px 0 0 18px;background:#fff;color:#202737;overflow:hidden;box-sizing:border-box;box-shadow:-18px 0 60px #14275320}
#modal.cart-drawer[open]{display:flex;flex-direction:column;animation:fg-cart-enter .24s ease-out}
#modal.cart-drawer::backdrop{background:#17233d66;backdrop-filter:blur(3px)}
#modal.cart-drawer .dialog-top{flex:0 0 auto;min-height:84px;padding:22px 26px;margin:0;border-bottom:1px solid #e7ebf3;gap:16px}
#modal.cart-drawer .dialog-top .eyebrow{font-size:26px;line-height:1.2;font-weight:700;letter-spacing:-.5px;text-transform:none;color:#202737}
#modal.cart-drawer #close-modal{flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#f3f5fa}
#modal.cart-drawer #modal-content{display:flex;flex-direction:column;flex:1;min-height:0}
.drawer-scroll{padding:0 26px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1}
#modal .drawer-notice{margin:0;padding:17px 0 3px;font-size:13px;line-height:1.5;color:#2854df;overflow-wrap:anywhere}
#modal .drawer-notice:empty{display:none}
.drawer-item{display:grid;grid-template-columns:96px minmax(0,1fr);gap:18px;padding:24px 0;border-bottom:1px solid #e7ebf3}
.drawer-item>img{width:96px;height:112px;object-fit:contain;border-radius:10px;background:#f3f5fa}
.drawer-item-body{min-width:0}.drawer-item h3{font-size:17px;line-height:1.35;letter-spacing:-.2px;margin:0;overflow-wrap:anywhere}
#modal .drawer-unit-price{font-size:14px;line-height:1.4;margin:7px 0 12px;color:#66728a}
.drawer-item-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
.cart-drawer .quantity{border:1px solid #dce2ed;border-radius:7px;overflow:hidden;background:#fff}
.cart-drawer .quantity button{width:34px;height:34px;padding:0;font-size:20px;background:#fff;text-decoration:none;color:#202737}
.cart-drawer .quantity span{min-width:28px;font-size:14px}
.cart-drawer .quantity button:disabled{opacity:.35;cursor:default}
.drawer-remove{background:transparent;color:#66728a;text-decoration:underline;text-underline-offset:3px;font-size:12px;padding:8px 0}
.drawer-line-total{display:block;margin-top:12px;font-size:17px;line-height:1.4;color:#2854df}
.drawer-footer{flex:0 0 auto;padding:22px 26px max(22px,env(safe-area-inset-bottom));border-top:1px solid #e7ebf3;background:#fff;box-shadow:0 -8px 24px #17233d04}
.drawer-total{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px 16px;font-size:18px;font-weight:600}
.drawer-total strong{font-size:26px;letter-spacing:-.6px;color:#2854df}
#modal .drawer-footer>p{font-size:12px;line-height:1.5;color:#66728a;margin:7px 0 18px}
.drawer-footer .btn{width:100%;min-height:49px;justify-content:center;gap:12px;font-size:14px;border-radius:8px;white-space:normal;line-height:1.4}
.drawer-footer .btn+.btn{margin-top:10px}.drawer-footer .btn-outline{border:1px solid #dce2ed;background:#fff;color:#34415b}
.drawer-footer .btn-ink{background:#2854df;color:#fff;border:1px solid #2854df}.drawer-footer .btn-ink:hover{background:#2047c6}
.drawer-empty{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;text-align:center;padding:30px 0}
.drawer-empty>svg{width:48px;height:48px;color:#a5b4d2}.drawer-empty h3{font-size:19px;line-height:1.4}
.cart-back{display:block;margin:0 0 18px;background:transparent;color:#2854df;font-size:14px;padding:8px 0;text-align:left}
@keyframes fg-cart-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-width:580px){#modal.cart-drawer{border-radius:0;border:0}.drawer-scroll{padding-inline:20px}#modal.cart-drawer .dialog-top{padding:18px 20px;min-height:76px}.drawer-footer{padding:18px 20px max(18px,env(safe-area-inset-bottom))}.drawer-item{gap:14px}.drawer-total strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){#modal.cart-drawer[open]{animation:none}}
