/* GAME420 basket. One presentation owns its layout, colors and responsive states. */
/* The same basket node is parked when closed and moved into the shared dialog. */
#screen4-container { display: none; }
#screen4-container.is-open { display: flex; }
#screen4-container [hidden] { display: none !important; }

#shortcut-dialog[data-panel="cart"] {
  isolation: isolate; left: 10px !important; width: calc(100% - 20px) !important;
  max-height: var(--g420-cart-room,calc(100% - 70px)); margin-top: 8px;
  border: 1px solid #a77ddd7a; border-radius: 3px;
  background: linear-gradient(155deg,#101124,#0a0d1b 65%,#17112a); color: #f2ecfa;
  box-shadow: 0 0 22px #945ced22,inset 0 0 0 1px #c4a2ff0b,0 15px 35px #000a;
  font: 400 14px/1.5 G420AccountUI,'DM Sans',system-ui,sans-serif;
}
#shortcut-dialog[data-panel="cart"]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('game420-astronaut-poster.jpg') right -220px/1400px auto no-repeat; opacity: .065;
}
#shortcut-dialog[data-panel="cart"] .shortcut-heading { min-height: 58px; padding: 6px 12px 6px 16px; gap: 10px; border-bottom: 1px solid #a77ddd36; background: linear-gradient(90deg,#29213a90,#12132580); }
#shortcut-dialog[data-panel="cart"] #shortcut-title { flex: 1; display: flex; align-items: center; gap: 10px; font: 400 15px/1.4 G420AccountPixel,'Silkscreen',monospace; color: #efe5ff; text-shadow: none; -webkit-text-stroke: 0; }
#shortcut-dialog[data-panel="cart"] #shortcut-title::before { content: ''; width: 22px; height: 22px; flex: none; background: #b8ef86; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.5' d='M2 3h3l2 12h12l2-9H6M8 18h2v3H8zM17 18h2v3h-2z'/%3E%3C/svg%3E") center/contain no-repeat; }
#shortcut-dialog[data-panel="cart"] .cart-header-count { flex: none; color: #b9b0cb; font: 400 11px/1.4 G420AccountUI,'DM Sans',sans-serif; white-space: nowrap; }
#shortcut-dialog[data-panel="cart"] #shortcut-close { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 3px; background: linear-gradient(#1a183166,#1a183166) center/36px 36px no-repeat; color: #cebee2; font: 25px/1 G420AccountUI,sans-serif; box-shadow: none; }

/* Layout is local to the basket; it does not depend on the catalogue's styles. */
#shortcut-dialog[data-panel="cart"] #screen4-container {
  position: relative; inset: auto; z-index: 120; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0;
  overflow: hidden; background: transparent; backdrop-filter: none; box-sizing: border-box;
}
#shortcut-dialog[data-panel="cart"] .screen4-panel {
  position: relative; z-index: 20; display: flex; flex-direction: column; gap: 0;
  width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; max-height: none;
  margin: 0; padding: 12px 19px 17px; border: 0; border-radius: 0; box-shadow: none;
  background: transparent; overflow: hidden; box-sizing: border-box;
}
#shortcut-dialog[data-panel="cart"] .screen4-header { display: none; }
#shortcut-dialog[data-panel="cart"] #screen4Scroll {
  position: relative; z-index: 30; width: 100%; flex: 1 1 0; min-height: 0;
  padding: 0 3px 9px 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; box-sizing: border-box;
  scroll-padding-block: 8px; scrollbar-width: thin; scrollbar-color: #9e7abf #0a0d1b;
}
#shortcut-dialog[data-panel="cart"] #screen4Scroll::-webkit-scrollbar { width: 6px; }
#shortcut-dialog[data-panel="cart"] #screen4Scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 10px; }
#shortcut-dialog[data-panel="cart"] #cartList { display: block; gap: 10px; }
#shortcut-dialog[data-panel="cart"] .cart-group { margin: 0 0 18px; }
#shortcut-dialog[data-panel="cart"] .cart-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; margin: 0 0 7px; }
#shortcut-dialog[data-panel="cart"] .cart-group-heading h3 { font: 400 11px/1.5 G420AccountPixel,'Silkscreen',monospace; color: #ba94e8; letter-spacing: .4px; margin: 0; }
#shortcut-dialog[data-panel="cart"] .cart-group-gift .cart-group-heading h3 { color: #b8ef86; }
#shortcut-dialog[data-panel="cart"] .cart-group-heading > span { font: 400 11px/1.4 G420AccountUI,'DM Sans',sans-serif; color: #b9b0cb; }
#shortcut-dialog[data-panel="cart"] .cart-card { display: grid; grid-template-columns: 52px minmax(0,1fr) minmax(44px,max-content); align-items: start; column-gap: 10px; row-gap: 3px; padding: 12px 0 8px; margin: 0; border: 0; border-bottom: 1px solid #a77ddd2c; border-radius: 0; background: none; box-shadow: none; }
#shortcut-dialog[data-panel="cart"] .cart-card > img { display: block; grid-column: 1; grid-row: 1; width: 52px; height: 60px; margin: 0; border: 1px solid #b39bce3b; border-radius: 3px; object-fit: contain; background: #131627; }
#shortcut-dialog[data-panel="cart"] .cart-info { grid-column: 2; grid-row: 1; min-width: 0; }
#shortcut-dialog[data-panel="cart"] .cart-name { margin: 0 0 4px; color: #f0e7fa; font: 400 13px/1.4 G420AccountUI,'DM Sans',sans-serif; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#shortcut-dialog[data-panel="cart"] .cart-format { margin: 0 0 3px; color: #b9b0cb; font: 400 11px/1.4 G420AccountUI,'DM Sans',sans-serif; overflow-wrap: anywhere; }
#shortcut-dialog[data-panel="cart"] .cart-card[data-cart-kind="gift"] .cart-format { color: #b8ef86; }
#shortcut-dialog[data-panel="cart"] .cart-unit-price { color: #b1a7c2; font: 400 11px/1.4 G420AccountUI,'DM Sans',sans-serif; overflow-wrap: anywhere; }
#shortcut-dialog[data-panel="cart"] .cart-line-total { grid-column: 3; grid-row: 1; max-width: 82px; min-width: 0; padding-top: 1px; color: #e3d4f2; text-align: right; font: 400 13px/1.4 G420AccountUI,'DM Sans',sans-serif; overflow-wrap: anywhere; }
#shortcut-dialog[data-panel="cart"] .cart-card[data-cart-kind="gift"] .cart-line-total { color: #b8ef86; }
#shortcut-dialog[data-panel="cart"] .cart-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; min-width: 0; }
#shortcut-dialog[data-panel="cart"] :is(.cart-modify,.cart-remove) { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-height: 44px; max-width: 100%; padding: 6px; border: 0; border-radius: 3px; background: transparent; color: #d5b9f0; font: 400 12px/1.35 G420AccountUI,'DM Sans',sans-serif; box-shadow: none !important; white-space: normal; }
#shortcut-dialog[data-panel="cart"] .cart-remove svg { width: 18px; height: 18px; }

#shortcut-dialog[data-panel="cart"] :is(.cart-review-notice,.cart-line-warning,.cart-editor-warning) { grid-column: 1 / -1; margin: 4px 0 7px; padding: 5px 7px; border-left: 2px solid #d9c99e; background: #33253b80; color: #e4c99c; font: 400 12px/1.5 'DM Sans',system-ui,sans-serif; overflow-wrap: anywhere; }
#shortcut-dialog[data-panel="cart"] .cart-format-editor { grid-column: 1 / -1; min-width: 0; padding: 8px 0 3px; border-top: 1px solid #a77ddd2c; }
#shortcut-dialog[data-panel="cart"] .cart-format-editor h4 { margin: 0 0 5px; color: #d6b4f4; font: 400 12px/1.45 G420AccountPixel,'Silkscreen',monospace; }
#shortcut-dialog[data-panel="cart"] .cart-editor-help { margin: 4px 0 8px; font: 400 12px/1.5 'DM Sans',system-ui,sans-serif; color: #b9b0cb; }
#shortcut-dialog[data-panel="cart"] .cart-format-options { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
#shortcut-dialog[data-panel="cart"] .cart-format-option { min-height: 44px; padding: 7px 9px; background: #19182f; border: 1px solid #84719e70; border-radius: 4px; color: #e7ddf1; font: 400 13px/1.4 'DM Sans',system-ui,sans-serif; text-align: left; white-space: normal; overflow-wrap: anywhere; }
#shortcut-dialog[data-panel="cart"] .cart-format-option[aria-pressed=true] { background: #a8f65b10; border-color: #a9ec705e; color: #d1ff9e; }
#shortcut-dialog[data-panel="cart"] .cart-editor-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#shortcut-dialog[data-panel="cart"] .cart-editor-actions button { flex: 1 1 90px; min-height: 44px; padding: 7px 8px; color: #e7ddf1; font: 400 12px/1.4 'DM Sans',system-ui,sans-serif; border: 1px solid #84719e70; border-radius: 4px; background: #19182f; white-space: normal; overflow-wrap: anywhere; }
#shortcut-dialog[data-panel="cart"] .cart-editor-actions .cart-edit-apply { background: #b8ef86; color: #10220c; }
#shortcut-dialog[data-panel="cart"] #screen4-container button:disabled { opacity: .4; cursor: default; }

#shortcut-dialog[data-panel="cart"] #cartSummary { flex: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 0 2px; border: 0; border-top: 1px solid #a47acf36; background: transparent; }
#shortcut-dialog[data-panel="cart"] #cartTotal { display: flex; flex-direction: column; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 9px; margin: 0; padding: 13px 12px; border: 1px solid #7c709263; border-radius: 3px; background: linear-gradient(145deg,#2d244654,#101527c4); box-shadow: none; color: #edf1d9; font: 400 14px/1.5 G420AccountUI,'DM Sans',sans-serif; text-align: left; }
#shortcut-dialog[data-panel="cart"] .cart-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #d1c7df; font-size: 13px; }
#shortcut-dialog[data-panel="cart"] .cart-summary-row strong { font-weight: 500; color: #e9d9ff; white-space: nowrap; }
#shortcut-dialog[data-panel="cart"] .cart-summary-points strong { color: #b8ef86; }
#shortcut-dialog[data-panel="cart"] #cartTotal .cart-total-note { flex: auto; font: 400 11px/1.5 G420AccountUI,'DM Sans',sans-serif; color: #b9aecb; margin-top: 3px; }
#shortcut-dialog[data-panel="cart"] :is(#sendCartBtn,#cartBrowseBtn) { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; border: 1px solid #ddffbd; border-bottom: 3px solid #658c45; border-radius: 3px; background: linear-gradient(#c7f7a0,#a6e66f); color: #10220c; font: 400 12px/1.4 G420AccountPixel,'Silkscreen',monospace; box-shadow: 0 3px 0 #152411 !important; }
#shortcut-dialog[data-panel="cart"] #sendCartBtn { width: 100%; }
#shortcut-dialog[data-panel="cart"] #clearCartBtn { display: block; min-height: 44px; margin: 0 auto; padding: 4px 10px; border: 0; border-radius: 2px; background: none; box-shadow: none !important; color: #d5b9f0; font: 400 12px/1.3 G420AccountUI,'DM Sans',sans-serif; text-decoration: underline; text-underline-offset: 3px; }
#shortcut-dialog[data-panel="cart"] #cartEmpty { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 100%; margin: 0; padding: 26px 6px; box-sizing: border-box; opacity: 1; color: #f2ecfa; font: 400 14px/1.4 G420AccountUI,'DM Sans',sans-serif; text-align: center; }
#shortcut-dialog[data-panel="cart"] #cartEmpty p { margin: 0; font: 400 16px/1.5 G420AccountPixel,'Silkscreen',monospace; }
#shortcut-dialog[data-panel="cart"] #cartEmpty > svg { width: 40px; height: 40px; color: #cfb5ed; flex: none; }
#shortcut-dialog[data-panel="cart"] #cartBrowseBtn { width: min(100%,270px); min-width: 150px; }

#shortcut-dialog[data-panel="cart"] :is(.shortcut-heading,#screen4-container),#shortcut-dialog[data-panel="cart"] :is(.shortcut-heading,#screen4-container) * { font-synthesis: none; text-shadow: none !important; -webkit-text-stroke: 0 !important; }
#shortcut-dialog[data-panel="cart"] :is(#screen4-container button,#shortcut-close):is(:focus-visible,.console-selected) { outline: 1px solid #c0fa80 !important; outline-offset: -2px; filter: none !important; box-shadow: none !important; }
@media (hover:hover) {
  #shortcut-dialog[data-panel="cart"] :is(.cart-modify,.cart-remove,#shortcut-close):hover { background: #29213a; }
}
@media (max-width:360px) {
  #shortcut-dialog[data-panel="cart"] .screen4-panel { padding: 10px 13px 13px; }
  #shortcut-dialog[data-panel="cart"] .cart-card { grid-template-columns: 44px minmax(0,1fr) minmax(40px,max-content); column-gap: 7px; }
  #shortcut-dialog[data-panel="cart"] .cart-card > img { width: 44px; height: 53px; }
  #shortcut-dialog[data-panel="cart"] .cart-controls { gap: 8px; }
  #shortcut-dialog[data-panel="cart"] #shortcut-title { font-size: 12px; }
  #shortcut-dialog[data-panel="cart"] #cartTotal { padding: 10px; }
}
