/* L1017n — favorites beside the buy button, as in the supplied reference. */
.l1017-fav-shell{
 position:relative!important;
 display:flex!important;
 flex-direction:column!important;
 min-width:0!important;
 width:100%!important;
 height:100%!important;
 box-sizing:border-box!important;
}
.l1017-fav-shell > :is(.robux-package,.psn-product,.ox-product,.rgp-package){
 width:100%!important;
 min-width:0!important;
 flex:1 1 auto!important;
 height:100%!important;
 box-sizing:border-box!important;
}
/* Reserve space for the star rather than covering the call-to-action. */
.l1017-fav-shell:has(.robux-package) .robux-pack-copy>.stock-label,
.l1017-fav-shell:has(.psn-product) .psn-buy,
.l1017-fav-shell:has(.ox-product) .ox-buy,
.l1017-fav-shell:has(.rgp-package) .gb-card-open{
 width:calc(100% - 49px)!important;
 max-width:calc(100% - 49px)!important;
 margin-left:49px!important;
 margin-right:0!important;
 align-self:flex-start!important;
 box-sizing:border-box!important;
}
.l1017-fav-shell >.l1017-fav-toggle{
 position:absolute!important;
 left:9px!important;
 bottom:9px!important;
 z-index:20!important;
}
.l1017-fav-row{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) 41px!important;
 gap:8px!important;
 width:100%!important;
 min-width:0!important;
 align-items:stretch!important;
 direction:rtl!important;
}
.l1017-fav-row > :is(.pubg-buy,.sab-buy,.sc-buy){
 grid-column:1!important;
 grid-row:1!important;
 min-width:0!important;
 width:100%!important;
 max-width:none!important;
 margin:0!important;
}
.l1017-fav-row >.l1017-fav-toggle{
 grid-column:2!important;
 grid-row:1!important;
}
/* Keep the price above the two adjacent actions on narrow cards. */
#pubgCategoryPage .pubg-pack-bottom,
#robloxGamePage .sab-card-footer{
 display:flex!important;
 flex-direction:column!important;
 align-items:stretch!important;
 gap:8px!important;
}
#pubgCategoryPage .pubg-pack-bottom >.pubg-price,
#robloxGamePage .sab-card-footer >strong{
 flex:0 0 auto!important;
 width:100%!important;
}
#completeSupplierCatalog .sc-info .l1017-fav-row{
 margin-top:0!important;
}
.l1017-fav-toggle{
 appearance:none!important;
 -webkit-appearance:none!important;
 display:grid!important;
 place-items:center!important;
 flex:none!important;
 padding:0!important;
 margin:0!important;
 min-width:41px!important;
 width:41px!important;
 height:41px!important;
 min-height:41px!important;
 border:1px solid #626572a3!important;
 border-radius:13px!important;
 background:linear-gradient(160deg,#303341,#202632)!important;
 color:#e5e8f2!important;
 box-shadow:inset 0 1px #ffffff19,0 3px 9px #0003!important;
 cursor:pointer!important;
 touch-action:manipulation;
 user-select:none;
 -webkit-tap-highlight-color:transparent;
 transition:transform .16s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
.l1017-fav-toggle svg{
 display:block!important;
 width:22px!important;
 height:22px!important;
 stroke:currentColor!important;
 stroke-width:1.9!important;
 fill:transparent!important;
 transition:fill .2s ease,filter .2s ease,transform .2s ease;
}
.l1017-fav-toggle.is-favorite{
 border-color:#ffcc5c!important;
 background:linear-gradient(140deg,#55321e,#2a2533)!important;
 color:#ffd569!important;
 box-shadow:inset 0 1px #ffdc7b42,0 4px 14px #ffa92932!important;
}
.l1017-fav-toggle.is-favorite svg{
 fill:#ffb22e!important;
 stroke:#ffe39e!important;
 filter:drop-shadow(0 0 4px #ffb94475);
}
.l1017-fav-toggle:active{transform:scale(.93)!important}
.l1017-fav-toggle:focus-visible{outline:2px solid #ffe190!important;outline-offset:2px!important}
@media(max-width:420px){
 .l1017-fav-toggle{min-width:37px!important;width:37px!important;height:37px!important;min-height:37px!important;border-radius:11px!important}
 .l1017-fav-row{grid-template-columns:minmax(0,1fr) 37px!important;gap:6px!important}
 .l1017-fav-shell >.l1017-fav-toggle{bottom:7px!important;left:7px!important}
 .l1017-fav-shell:has(.robux-package) .robux-pack-copy>.stock-label,
 .l1017-fav-shell:has(.psn-product) .psn-buy,
 .l1017-fav-shell:has(.ox-product) .ox-buy,
 .l1017-fav-shell:has(.rgp-package) .gb-card-open{
  width:calc(100% - 45px)!important;
  max-width:calc(100% - 45px)!important;
  margin-left:45px!important;
 }
}
/* Preserve click affordance on favorite even for disabled purchase cards. */
.l1017-fav-shell:has(>.robux-package:disabled)>.l1017-fav-toggle,
.l1017-fav-shell:has(>.psn-product:disabled)>.l1017-fav-toggle,
.l1017-fav-shell:has(>.ox-product:disabled)>.l1017-fav-toggle{opacity:1!important;pointer-events:auto!important}
@media(prefers-reduced-motion:reduce){.l1017-fav-toggle,.l1017-fav-toggle svg{transition:none!important}}

#accountPackageFavorites .account-favorites-icon{color:#ffd589;background:#4a315a}
.account-favorites-dialog{
 width:min(630px,calc(100% - 24px));
 max-height:calc(88dvh - env(safe-area-inset-bottom,0px));
 padding:16px;
 border:1px solid #6e4f93;
 border-radius:20px;
 background:#171226;
 color:#f9f1ff;
 box-shadow:0 18px 65px #0009;
}
.account-favorites-dialog::backdrop{background:#080610c9}
.account-favorites-dialog>header{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 margin-bottom:12px;
}
.account-favorites-dialog h2{margin:0;color:#f9f1ff;font-size:clamp(17px,4.5vw,22px)}
.account-favorites-dialog>header button{
 min-width:40px;
 min-height:40px;
 border:1px solid #724da2;
 border-radius:11px;
 background:#372449;
 color:#fff;
 font-size:22px;
 cursor:pointer;
}
.account-favorites-empty{margin:0;padding:18px 4px;color:#cec0e1}
.account-favorites-grid{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:9px;
}
.account-favorite-actions>button:first-child{
 padding:5px 8px;
 min-height:37px;
 border:1px solid #7957aa;
 border-radius:9px;
 background:#452a62;
 color:#fff;
 font:inherit;
 font-size:clamp(10px,3vw,14px);
 font-weight:750;
 cursor:pointer;
}
.account-favorite-card{
 display:grid;
 grid-template-rows:auto 1fr;
 min-width:0;
 overflow:hidden;
 border:1px solid #5f4682;
 border-radius:14px;
 background:linear-gradient(160deg,#302047,#191429 75%);
}
.account-favorite-card>img{
 display:block;
 width:100%;
 height:clamp(67px,18vw,95px);
 background:#241934;
 object-fit:contain;
 object-position:center;
}
.account-favorite-card>strong{
 margin:0;
 color:#fff5ff;
 font-size:clamp(12px,3.25vw,15px);
 line-height:1.45;
 overflow-wrap:anywhere;
}
.account-favorite-card>strong{padding:8px 8px 4px}
.account-favorite-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:4px 8px 8px}
.account-favorite-category{display:block;margin-bottom:3px;color:#ccbbdf;font-size:11px;line-height:1.4;overflow-wrap:anywhere}

/* Compact Robux cards: title, price and availability, then adjacent actions. */
html body #robuxModal.robux-fixed-packs .package-grid .robux-package {
  --robux-card-action: 38px;
  --robux-card-star-space: 45px;
  --robux-card-padding: 9px;
}
html body #robuxModal.robux-fixed-packs .package-grid .robux-package::after {
  display: none !important;
}
html body #robuxModal.robux-fixed-packs .package-grid .robux-package > .robux-pack-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto 1fr;
  align-items: center !important;
  gap: 6px 4px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 7px var(--robux-card-padding) var(--robux-card-padding) !important;
  direction: rtl;
}
html body #robuxModal.robux-fixed-packs .package-grid .robux-package .robux-pack-copy > strong {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  margin: 0 !important;
}
html body #robuxModal.robux-fixed-packs .package-grid .robux-package .robux-pack-copy > .robux-pack-price {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  text-align: start !important;
  font-size: clamp(12px, 3.7vw, 18px) !important;
  white-space: nowrap !important;
}
html body #robuxModal.robux-fixed-packs .package-grid .robux-package .robux-pack-copy > .ll-stock-state {
  display: inline-flex !important;
  align-self: center !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border: 1px solid #a47de33b !important;
  border-radius: 6px !important;
  background: #9570d31b !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}
html body #robuxModal.robux-fixed-packs .package-grid .robux-package .ll-stock-state::before {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}
html body #robuxModal.robux-fixed-packs .package-grid .robux-package .robux-pack-copy > .stock-label {
  grid-column: 1 / -1 !important;
  align-self: end !important;
  justify-self: start;
  height: var(--robux-card-action) !important;
  min-height: var(--robux-card-action) !important;
  margin: 0 !important;
}
html body #robuxModal.robux-fixed-packs .package-grid .l1017-fav-shell > .robux-package .robux-pack-copy > .stock-label {
  width: calc(100% - var(--robux-card-star-space)) !important;
  max-width: none !important;
}
html body #robuxModal.robux-fixed-packs .package-grid .l1017-fav-shell:has(> .robux-package) > .l1017-fav-toggle {
  left: 10px !important;
  bottom: 15px !important;
  min-width: 38px !important;
  width: 38px !important;
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
}
#robuxModal .l1017-fav-shell:has(> .robux-package) > .l1017-fav-toggle svg {
  width: 18px !important;
  height: 18px !important;
}

/* Other package lists use the same compact layout as the Robux cards. */
html body :is(
  #psnStoreScreen .psn-products .psn-product,
  #robloxGamePage .ox-catalog .ox-product,
  #robloxGamePage .rgp-mm2-subcategory .rgp-package,
  #pubgCategoryPage.pubg-premium .pubg-pack-detailed,
  #robloxGamePage .sab-item-card,
  #completeSupplierCatalog .sc-product
)::after {
  display: none !important;
}
html body :is(
  #psnStoreScreen .psn-product-art .psn-sold-out,
  #robloxGamePage .ox-product .ox-sold-out,
  #pubgCategoryPage .pubg-pack-cover .pubg-stock-badge
) {
  display: none !important;
}

html body :is(
  #psnStoreScreen .psn-products .psn-product,
  #robloxGamePage .ox-catalog .ox-product,
  #robloxGamePage .rgp-mm2-subcategory .rgp-package
) {
  padding-block-end: 5px !important;
}
html body :is(
  #psnStoreScreen .psn-products .psn-product .psn-product-detail,
  #robloxGamePage .ox-catalog .ox-product .ox-product-info,
  #robloxGamePage .rgp-mm2-subcategory .rgp-package .mm2-pack-info,
  #completeSupplierCatalog .sc-product .sc-info
) {
  box-sizing: border-box;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0;
  width: 100% !important;
  gap: 6px !important;
  padding: 7px 9px 9px !important;
}
html body :is(
  #psnStoreScreen .psn-products .psn-product .psn-product-detail,
  #robloxGamePage .ox-catalog .ox-product .ox-product-info,
  #robloxGamePage .rgp-mm2-subcategory .rgp-package .mm2-pack-info
) > strong,
html body #completeSupplierCatalog .sc-product .sc-info > h2 {
  min-height: 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
html body #pubgCategoryPage.pubg-premium .pubg-pack-detailed .pubg-pack-headline {
  padding: 7px 9px 0 !important;
  gap: 5px !important;
}
html body #pubgCategoryPage.pubg-premium .pubg-pack-detailed .pubg-pack-bottom {
  margin-block-start: auto;
  padding: 6px 9px 9px !important;
  gap: 6px !important;
}
html body #robloxGamePage .sab-card-footer {
  gap: 6px !important;
  padding-block-start: 6px !important;
}

html body :is(#psnStoreScreen,#robloxGamePage,#pubgCategoryPage,#completeSupplierCatalog) .ll-pack-meta {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 3px 4px !important;
  width: 100%;
  min-width: 0;
  margin-block-start: auto;
}
html body :is(#psnStoreScreen,#robloxGamePage,#pubgCategoryPage,#completeSupplierCatalog)
  .ll-pack-meta > :is(.psn-price,.ox-product-price,.sc-price,.mm2-price,strong),
html body #pubgCategoryPage.pubg-premium .pubg-pack-detailed .ll-pack-meta .pubg-price strong {
  display: inline-block !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d9baff !important;
  font-size: clamp(11px, 3.4vw, 17px) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  white-space: nowrap !important;
}
html body #pubgCategoryPage.pubg-premium .pubg-pack-detailed .ll-pack-meta .pubg-price {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
html body :is(#psnStoreScreen,#robloxGamePage,#pubgCategoryPage,#completeSupplierCatalog) .ll-pack-meta .ll-stock-state {
  display: inline-flex !important;
  align-self: center !important;
  gap: 3px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border: 1px solid #a47de33b !important;
  border-radius: 6px !important;
  background: #9570d31b !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}
.ll-pack-meta .ll-stock-state::before {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

html body :is(
  #psnStoreScreen .psn-products .psn-product .psn-buy,
  #robloxGamePage .ox-catalog .ox-product .ox-buy,
  #robloxGamePage .rgp-mm2-subcategory .rgp-package .gb-card-open,
  #pubgCategoryPage.pubg-premium .pubg-pack-detailed .pubg-buy,
  #robloxGamePage .sab-item-card .sab-buy,
  #completeSupplierCatalog .sc-product .sc-buy
) {
  box-sizing: border-box;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 38px !important;
  padding: 4px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  border-radius: 9px !important;
  font-size: clamp(10px, 2.7vw, 13px) !important;
  line-height: 1.35 !important;
}
html body :is(#psnStoreScreen,#robloxGamePage) .l1017-fav-shell
  :is(.psn-product .psn-buy,.ox-product .ox-buy,.rgp-package .gb-card-open) {
  width: calc(100% - 45px) !important;
  align-self: flex-start !important;
}
html body :is(#psnStoreScreen,#robloxGamePage) .l1017-fav-shell > .l1017-fav-toggle {
  left: 10px !important;
  bottom: 15px !important;
}
html body :is(#pubgCategoryPage,#robloxGamePage,#completeSupplierCatalog) .l1017-fav-row {
  grid-template-columns: minmax(0,1fr) 38px !important;
  gap: 7px !important;
}
html body :is(#psnStoreScreen,#robloxGamePage,#pubgCategoryPage,#completeSupplierCatalog) .l1017-fav-toggle {
  min-width: 38px !important;
  width: 38px !important;
  min-height: 38px !important;
  height: 38px !important;
  align-self: stretch;
  border-radius: 9px !important;
}
html body :is(#psnStoreScreen,#robloxGamePage,#pubgCategoryPage,#completeSupplierCatalog) .l1017-fav-toggle svg {
  width: 18px !important;
  height: 18px !important;
}
