#omnexCheckout .ox-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffffff20;
  border-radius: 16px;
  background: #ffffff08;
}

#omnexCheckout .ox-summary img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #0b1220;
}

#omnexCheckout .ox-price {
  font-size: clamp(13px, 4vw, 19px);
  font-variant-numeric: tabular-nums;
}

#omnexCheckout .ox-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

#omnexCheckout .ox-status:empty {
  display: none;
}

@media (max-width: 380px) {
  #omnexCheckout .ox-summary { grid-template-columns: 44px minmax(0, 1fr); }
  #omnexCheckout .ox-summary img { width: 44px; height: 44px; }
  #omnexCheckout .ox-price { grid-column: 2; margin: 0; }
}

/* The same back control fits catalog headers and checkout dialogs. */
html body :is(
  #robloxGamePage .rgp-top,
  #robuxModal.robux-fixed-packs,
  #robuxPurchaseScreen.robux-direct-menu,
  #pubgCategoryPage.pubg-premium,
  #psnStoreScreen .psn-head,
  #completeSupplierCatalog .sc-head,
  #rgpMm2Checkout.gb-package-dialog,
  #sabCheckout.gb-package-dialog,
  #pubgAccountCheckoutOverlay.gb-package-dialog,
  #gbCodePurchaseConfirm .gb-code-shell,
  #omnexCheckout .ox-dialog-head,
  #storePurchaseBox .digital-game-preview
) button.l1017-package-back.l1017-package-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: max-content !important;
  min-width: 74px !important;
  height: 44px !important;
  min-height: 44px !important;
  flex: 0 0 auto !important;
  padding: 0 11px !important;
  border: 1px solid #9a72d7 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #583983, #3c285e) !important;
  color: #fcf6ff !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  box-shadow: inset 0 1px #ffffff20, 0 4px 12px #160a2c55 !important;
  direction: rtl;
  white-space: nowrap;
  cursor: pointer;
  justify-self: start !important;
  text-align: center !important;
  -webkit-tap-highlight-color: transparent;
}

html body button.l1017-package-back svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

html body button.l1017-package-back:focus-visible {
  outline: 2px solid #dcc7ff !important;
  outline-offset: 3px;
}

/* The first cell in every header is the rightmost cell. */
html body :is(
  #robloxGamePage .rgp-top,
  #robuxPurchaseScreen .robux-menu-top,
  #pubgCategoryPage .pubg-topbar,
  #psnStoreScreen .psn-head,
  #completeSupplierCatalog .sc-head,
  .gb-package-top,
  #omnexCheckout .ox-dialog-head
) {
  direction: rtl !important;
}

html body :is(
  #robuxPurchaseScreen .robux-menu-top,
  #pubgCategoryPage .pubg-topbar,
  #psnStoreScreen .psn-head,
  #completeSupplierCatalog .sc-head,
  .gb-package-top,
  #omnexCheckout .ox-dialog-head,
  #robloxGamePage .rgp-top
) > button.l1017-package-back {
  order: -1 !important;
}

html body #robuxModal.robux-full-page.robux-fixed-packs .robux-store-box .robux-reference-hero {
  display: none !important;
}
html body #robuxModal.robux-full-page.robux-fixed-packs .robux-store-box > .package-close.l1017-package-back {
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  float: none !important;
  margin: 0 0 14px auto !important;
}
html body #robuxModal.robux-full-page.robux-fixed-packs .robux-store-box .robux-reference-section {
  min-height: 0 !important;
  padding: 0 !important;
}

html body #storePurchaseBox .digital-game-preview > #closeGamePreview {
  display: flex !important;
  margin: 0 0 14px auto !important;
}

/* Full-screen checkout with a readable form width on larger displays. */
html body #robuxPurchaseScreen.robux-direct-menu,
html body #rgpMm2Checkout.gb-package-dialog,
html body #sabCheckout.gb-package-dialog,
html body #pubgAccountCheckoutOverlay.gb-package-dialog,
html body #gbCodePurchaseConfirm,
html body #omnexCheckout[open] {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #151829 !important;
  box-shadow: none !important;
  color: #f9f7ff;
}

html body #robuxPurchaseScreen.robux-direct-menu > .robux-purchase-sheet,
html body #rgpMm2Checkout.gb-package-dialog .mm2-checkout-box,
html body #sabCheckout.gb-package-dialog .sab-dialog,
html body #pubgAccountCheckoutOverlay.gb-package-dialog .pubg-account-checkout,
html body #gbCodePurchaseConfirm .gb-code-shell {
  box-sizing: border-box !important;
  width: min(100%, 620px) !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: checkout-sheet-in 220ms ease-out both !important;
}

html body #omnexCheckout[open] > * {
  max-width: 620px;
  margin-inline: auto;
}

html body :is(.gb-package-dialog, #gbCodePurchaseConfirm) .gb-package-top,
html body #robuxPurchaseScreen .robux-menu-top {
  margin-bottom: 10px !important;
}

html body #rgpMm2Checkout.gb-package-dialog .mm2-checkout-box > img {
  height: 76px !important;
  max-height: 76px !important;
}

@keyframes checkout-sheet-in {
  from { opacity: .6; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html body :is(
    #robuxPurchaseScreen.robux-direct-menu > .robux-purchase-sheet,
    #rgpMm2Checkout.gb-package-dialog .mm2-checkout-box,
    #sabCheckout.gb-package-dialog .sab-dialog,
    #pubgAccountCheckoutOverlay.gb-package-dialog .pubg-account-checkout,
    #gbCodePurchaseConfirm .gb-code-shell,
    #omnexCheckout[open]
  ) { animation: none !important; }
}
