/* Only repair the intermediate boost breakpoint; phone/desktop sizing stays intact. */
@media (min-width: 769px) and (max-width: 1024px) {
  body.lol-boost .lb-boost-zoom { zoom: 1; min-width: 0; }
  body.lol-boost .rank-types-nav { gap: 10px !important; margin: 24px 16px !important; max-width: calc(100% - 32px); }
  body.lol-boost .rank-types-nav .nav-item { width: 88px !important; height: auto !important; min-height: 96px; flex: 0 0 88px; padding: 12px 8px !important; border-radius: 16px !important; }
  body.lol-boost .rank-types-nav .nav-item img { width: 32px !important; height: 32px !important; margin-bottom: 8px !important; }
  body.lol-boost .rank-types-nav .nav-item span { font-size: .875rem !important; line-height: 1.3 !important; }
  body.lol-boost .form-content { padding: 0 16px !important; gap: 20px !important; grid-template-columns: minmax(0,1fr) !important; }
  body.lol-boost .form-content .boost-form, body.lol-boost .form-content .summary-wrapper { min-width: 0; width: 100%; }
  body.lol-boost .form-content .summary-wrapper { position: static !important; }
  body.lol-boost .form-content .boost-form .card { padding: 16px !important; border-radius: 18px !important; border-width: 1px !important; min-width: 0; }
  body.lol-boost .form-content .boost-form .card .card-header { gap: 12px !important; }
  body.lol-boost .form-content .boost-form .card .card-header img { width: 36px !important; height: 36px; object-fit: contain; flex-shrink: 0; }
  body.lol-boost .form-content .boost-form .card .card-header h3 { font-size: 1.125rem !important; line-height: 1.35 !important; }
  body.lol-boost .form-content .boost-form .card .card-header p { font-size: .8125rem !important; line-height: 1.5 !important; }
  body.lol-boost .form-content .boost-form .rank-cards { gap: 16px !important; }
  body.lol-boost .form-content .boost-form .rank-cards > .card { flex: 1 1 0; min-width: 0; }
  body.lol-boost .form-content .boost-form .ranks.ranks--labeled { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 8px !important; margin: 20px 0 16px !important; }
  body.lol-boost .form-content .boost-form .ranks.ranks--labeled label { width: auto !important; min-width: 0; }
  body.lol-boost .form-content .boost-form .ranks.ranks--labeled .rank-btn { width: 100% !important; height: auto !important; min-height: 76px; padding: 8px 2px !important; gap: 6px !important; border-radius: 12px !important; box-sizing: border-box; }
  body.lol-boost .form-content .boost-form .ranks.ranks--labeled .rank-btn img { width: 36px !important; height: 36px !important; object-fit: contain; }
  body.lol-boost .form-content .boost-form .ranks.ranks--labeled .rank-btn .tooltip { font-size: .75rem !important; line-height: 1.3 !important; white-space: normal !important; overflow-wrap: anywhere; }
  body.lol-boost .form-content .boost-form .divisions { gap: 10px !important; margin: 12px 0 0 !important; }
  body.lol-boost .form-content .boost-form .division-btn { width: 52px !important; min-height: 44px; height: auto !important; padding: 12px 8px !important; border-radius: 10px !important; font-size: 1rem !important; line-height: 1.25 !important; box-sizing: border-box; }
  body.lol-boost .form-content .boost-form .options, body.lol-boost .form-content .boost-form .options-bar { gap: 14px !important; padding: 16px !important; margin-top: 20px !important; flex-wrap: wrap; }
  body.lol-boost .form-content .boost-form .options .option, body.lol-boost .form-content .boost-form .options-bar .option { min-width: 0; flex: 1 1 140px; }
  body.lol-boost .form-content .boost-form .option h6, body.lol-boost .form-content .boost-form .lp-selector h6 { font-size: .875rem !important; line-height: 1.4 !important; margin-bottom: 8px !important; }
  body.lol-boost .form-content .cs-wrapper { min-width: 0; width: 100%; }
  body.lol-boost .form-content .cs-trigger { font-size: 1rem !important; min-height: 44px; padding: 10px 12px !important; border-radius: 10px !important; }
  body.lol-boost .form-content .cs-trigger__arrow { width: 12px !important; height: 12px !important; }
  body.lol-boost .form-content .cs-dropdown { border-width: 1px !important; border-radius: 0 0 10px 10px !important; }
  body.lol-boost .form-content .cs-option { font-size: 1rem !important; line-height: 1.4 !important; padding: 10px 12px !important; min-height: 44px; }
  body.lol-boost .form-content input:not([type=checkbox]):not([type=radio]), body.lol-boost .form-content select { font-size: 1rem !important; min-width: 0; max-width: 100%; }
  body.lol-boost .form-content .lp-selector .input-container { border-radius: 10px !important; }
  body.lol-boost .form-content .lp-selector .input-container button { font-size: 1rem !important; padding: 12px !important; min-width: 44px; }
  body.lol-boost .form-content .boost-form .card.count-card .count { width: 72px !important; height: 72px !important; font-size: 2rem !important; }
  body.lol-boost .form-content .boost-form .range-slider .noUi-tooltip { width: 44px !important; height: 44px !important; font-size: 1.25rem !important; border-radius: 10px !important; }
  body.lol-boost .form-content .order-summary { padding: 16px !important; border-radius: 18px !important; border-width: 1px !important; }
  body.lol-boost .form-content .order-summary h3 { font-size: 1.125rem !important; line-height: 1.4 !important; }
  body.lol-boost .form-content .order-summary .rank-box { padding: 14px !important; margin: 16px 0 !important; border-radius: 14px !important; gap: 12px !important; }
  body.lol-boost .form-content .order-summary .rank-box .from img, body.lol-boost .form-content .order-summary .rank-box .to img { width: 32px !important; height: 32px !important; object-fit: contain; }
  body.lol-boost .form-content .order-summary .rank-box .title, body.lol-boost .form-content .order-summary .rank-box .count { font-size: .875rem !important; line-height: 1.4 !important; }
  body.lol-boost .form-content .order-summary .rank-box small { font-size: .75rem !important; }
  body.lol-boost .form-content .order-summary .toggle-label { font-size: .875rem !important; line-height: 1.4 !important; padding: 12px 8px !important; }
  body.lol-boost .form-content .extra-options { margin: 16px 0 !important; }
  body.lol-boost .form-content .extra-options .option { padding: 10px 8px !important; margin-bottom: 8px !important; gap: 12px !important; }
  body.lol-boost .form-content .extra-options .option .text { font-size: .875rem !important; line-height: 1.5 !important; gap: 8px !important; min-width: 0; flex-wrap: wrap; }
  body.lol-boost .form-content .extra-options .option .text img, body.lol-boost .form-content .extra-options .option .text i { width: 18px !important; height: 18px !important; font-size: 1rem !important; flex-shrink: 0; }
  body.lol-boost .form-content .privacy-settings-header { font-size: .75rem !important; padding: 10px 8px !important; margin: 16px 0 8px !important; }
  body.lol-boost .form-content .completion-box { padding: 12px !important; gap: 8px !important; border-radius: 12px !important; }
  body.lol-boost .form-content .completion-box .text { font-size: .875rem !important; line-height: 1.5 !important; }
  body.lol-boost .form-content .completion-box img { width: 20px !important; }
  body.lol-boost .form-content .discount-box { padding: 14px !important; margin: 16px 0 !important; border-radius: 12px !important; gap: 12px; flex-wrap: wrap; }
  body.lol-boost .form-content .discount-box h5, body.lol-boost .form-content .discount-box p { font-size: .8125rem !important; line-height: 1.5 !important; }
  body.lol-boost .form-content .discount-box .left img { width: 24px !important; }
  body.lol-boost .form-content .discount-box .old { font-size: .875rem !important; }
  body.lol-boost .form-content .discount-box .new { font-size: 1.125rem !important; }
  body.lol-boost .form-content .totals p { font-size: 1rem !important; line-height: 1.5 !important; }
  body.lol-boost .form-content .totals .price { font-size: 1.5rem !important; line-height: 1.3 !important; }
  body.lol-boost .form-content .totals p img { width: 22px !important; }
  body.lol-boost .form-content .buy-now { font-size: 1rem !important; line-height: 1.4 !important; min-height: 48px; padding: 12px 16px !important; margin-top: 16px !important; }
  body.lol-boost .form-content .boost-faqs h4, body.lol-boost .form-content .boost-faqs-mobile h4 { font-size: 1.125rem !important; line-height: 1.4 !important; }
  body.lol-boost .form-content .faqs h5, body.lol-boost .form-content .faqs p { font-size: .875rem !important; line-height: 1.6 !important; }
  body.lol-boost .form-content .accordion-header h5 { font-size: .9375rem !important; line-height: 1.5 !important; }
  body.lol-boost .form-content .accordion-content p { font-size: .875rem !important; line-height: 1.6 !important; }
  body.lol-boost .form-content .cashback_info p, body.lol-boost .form-content .cashback_info small { font-size: .8125rem !important; line-height: 1.5 !important; }
  body.lol-boost .form-content .payment-gateways h5 { font-size: .9375rem !important; line-height: 1.5 !important; }
  body.lol-boost .form-content .payment-gateways p { font-size: .8125rem !important; line-height: 1.5 !important; }
  body.lol-boost .sticky-overview .buy-now { font-size: 1rem !important; line-height: 1.4 !important; min-height: 44px; }
  body.lol-boost .rank-types-nav { overflow-x: auto !important; overflow-y: hidden !important; justify-content: flex-start !important; }
  body.lol-boost .extra-options .option.hidden { display: none !important; }
  body.lol-boost .extra-options .toggle { width: 40px !important; height: 24px !important; flex: 0 0 40px; }
  body.lol-boost .extra-options .toggle .slider { border-radius: 24px !important; }
  body.lol-boost .extra-options .toggle .slider::before { width: 18px !important; height: 18px !important; left: 3px !important; bottom: 3px !important; }
  body.lol-boost .extra-options .toggle input:checked + .slider::before { transform: translateX(16px) !important; }
  body.lol-boost .lbLandingReviews { width: calc(100% - 32px) !important; margin-left: 16px !important; margin-right: 16px !important; }
  body.lol-boost .lbLandingReviews__wrap { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
}

/* Compact shop introductions: header offset stays on the hero, not the listing. */
html body.view-item-page .item-desc-more[hidden] { display: none !important; }
html body.view-item-page .item-description.expanded { max-height: none !important; }
html body.view-item-page .item-checkout-card::before { display: none !important; }
html body.ranked-accounts-page:not(.topups-shop-page) .page-zoom > main > .container {
  margin-top: 20px !important; padding-top: 0 !important;
}
html body.items-shop-page #shopFilterbar.items-filterbar { margin-top: 0 !important; }
html body.ranked-accounts-page section.lb-shop-hero > .lb-shop-hero__inner { gap: 18px !important; }
html body.topups-shop-page .lb-topups__wrap {
  width: 100%; box-sizing: border-box; padding-left: 28px !important; padding-right: 28px !important;
}

/* Each filter owns a stacking level; only the currently open one is raised. */
html body.items-shop-page .ifb-filter-wrap,
html body.items-shop-page .ifb-price-wrap,
html body.items-shop-page .ifb-sort-wrap { z-index: 1 !important; }
html body.items-shop-page .ifb-filter-wrap.is-open,
html body.items-shop-page .ifb-price-wrap:has(.is-open),
html body.items-shop-page .ifb-sort-wrap:has(.is-open) { z-index: 10 !important; }
.lb-item-filter-toggle { display: none !important; }

@media (max-width: 768px) {
  /* Preserve the original product layout with a non-shrinking, proportional icon. */
  html body.view-account-page .container > h3.title,
  html body.view-account-page #account-page-title {
    display: flex !important; align-items: center !important; gap: 12px !important;
    font-size: 16px !important; line-height: 1.45 !important; font-weight: 700 !important;
    padding: 12px !important; border: 0 !important; border-radius: 12px !important;
    background: rgba(255,255,255,.025) !important; box-shadow: none !important;
  }
  html body.view-account-page .container > h3.title .rank-icon {
    flex: 0 0 60px !important; width: 60px !important; min-width: 60px !important;
    height: 60px !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box;
    display: flex !important; align-items: center !important; justify-content: center !important;
  }
  html body.view-account-page .container > h3.title .rank-icon img {
    width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: contain !important;
  }
  html body.view-account-page .container > h3.title .rank-icon i { font-size: 40px !important; line-height: 1 !important; }
  html body.view-account-page .container > h3.title .account-view-title-text {
    flex: 1 1 auto; min-width: 0; font: inherit !important; overflow-wrap: break-word;
  }
  html body.view-account-page .container > .lbv-ribbon {
    display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: center !important;
    gap: 10px 14px !important; padding: 12px 0 !important; margin: 10px 0 18px !important;
  }
  html body.view-account-page .container > .lbv-ribbon .lbv-ribbon__item {
    flex: 0 0 auto !important; min-height: 0 !important; width: auto !important; padding: 0 !important; gap: 6px !important;
    font-size: 11px !important; line-height: 1.4 !important; border-radius: 0 !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  html body.view-account-page .container > .lbv-ribbon .lbv-ribbon__item i {
    width: auto !important; height: auto !important; flex: 0 0 auto !important; font-size: 12px !important;
    background: transparent !important; border-radius: 0 !important;
  }
  html body.view-account-page .container > .lbv-ribbon .lbv-ribbon__item:last-of-type { justify-content: center !important; }
  html body.view-account-page .container > .lbv-ribbon .lbv-ribbon__dot { display: none !important; }
  html body.ranked-accounts-page:not(.topups-shop-page) .page-zoom > main > .container { margin-top: 10px !important; }
  html body.ranked-accounts-page section.lb-shop-hero > .lb-shop-hero__inner { gap: 12px !important; }
  html body.ranked-accounts-page.items-shop-page section.lb-shop-hero > .lb-shop-hero__inner {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    padding: 18px 16px !important; gap: 12px !important;
    min-height: 0 !important; align-items: center !important;
  }
  html body.ranked-accounts-page.items-shop-page .lb-shop-hero__icon { margin: 0 !important; }
  html body.topups-shop-page .lb-topups__wrap { padding-left: 14px !important; padding-right: 14px !important; }
  html body.items-shop-page.lb-item-filters-ready .lb-item-filter-toggle {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    grid-column: 2; grid-row: 1; width: 100%; min-height: 44px;
  }
  html body.items-shop-page.lb-item-filters-ready .ifb-row--top {
    grid-template-columns: minmax(0, 1fr) 108px !important; gap: 10px !important;
  }
  html body.items-shop-page.lb-item-filters-ready .ifb-row--top .ifb-search {
    grid-column: 1 !important; grid-row: 1; min-width: 0; width: 100%; box-sizing: border-box;
  }
  html body.items-shop-page.lb-item-filters-ready .ifb-search input { width: 100%; min-width: 0; }
  html body.items-shop-page.lb-item-filters-ready .ifb-spacer { display: none !important; }
  html body.items-shop-page.lb-item-filters-ready:not(.lb-item-filters-expanded) .ifb-row--top > .ifb-filter-wrap,
  html body.items-shop-page.lb-item-filters-ready:not(.lb-item-filters-expanded) .ifb-row--top > .ifb-price-wrap,
  html body.items-shop-page.lb-item-filters-ready:not(.lb-item-filters-expanded) .ifb-row--top > .ifb-sort-wrap,
  html body.items-shop-page.lb-item-filters-ready:not(.lb-item-filters-expanded) .ifb-row--top > .ifb-clear { display: none !important; }
  html body.items-shop-page.lb-item-filters-expanded .ifb-row--top > .ifb-filter-wrap,
  html body.items-shop-page.lb-item-filters-expanded .ifb-row--top > .ifb-price-wrap,
  html body.items-shop-page.lb-item-filters-expanded .ifb-row--top > .ifb-sort-wrap,
  html body.items-shop-page.lb-item-filters-expanded .ifb-row--top > .ifb-clear { grid-column: 1 / -1; }

  /* Keep intermediate breadcrumb links available on desktop and a short trail on phones. */
  html body .lb-market-breadcrumbs { display: flex !important; width: 100%; max-width: 100%; overflow: hidden; gap: 0 !important; }
  html body .lb-market-breadcrumbs__item { flex: 0 0 auto; }
  html body .lb-market-breadcrumbs:has([aria-current="page"]) > :nth-child(3),
  html body .lb-market-breadcrumbs:has([aria-current="page"]) > :nth-child(4),
  html body .lb-market-breadcrumbs:has([aria-current="page"]) > :nth-child(5),
  html body .lb-market-breadcrumbs:has([aria-current="page"]) > :nth-child(6) { display: none !important; }
  html body .lb-market-breadcrumbs:has([aria-current="page"]) > a:nth-child(7) {
    flex: 0 1 auto; max-width: 42%; display: block; overflow: hidden; text-overflow: ellipsis;
  }
  html body .lb-market-breadcrumbs .lb-market-breadcrumbs__item--current {
    flex: 1 1 0; min-width: 0; max-width: none; display: block; overflow: hidden; text-overflow: ellipsis;
  }
  html body .lb-market-breadcrumbs__separator { padding: 0 6px !important; }

  /* A small visible scrollbar makes the off-screen services discoverable. */
  html body.landing.gamingmarket .lb-visualHero__quickNav {
    overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: thin !important;
    scrollbar-color: #777cf0 rgba(255,255,255,.12); padding-bottom: 12px !important;
  }
  html body.landing.gamingmarket .lb-visualHero__quickNav::-webkit-scrollbar { display: block !important; height: 4px; }
  html body.landing.gamingmarket .lb-visualHero__quickNav::-webkit-scrollbar-track { background: rgba(255,255,255,.12); border-radius: 4px; }
  html body.landing.gamingmarket .lb-visualHero__quickNav::-webkit-scrollbar-thumb { background: #777cf0; border-radius: 4px; }

  html body.view-item-page .lb-seller-footer--profile {
    flex-direction: row !important; align-items: center !important; flex-wrap: nowrap !important;
    padding: 12px !important; gap: 8px !important; min-width: 0;
  }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__left { min-width: 0; gap: 8px; }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__avatar,
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__avatar-placeholder {
    width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important;
  }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__meta { min-width: 0; }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__name-text {
    max-width: 100% !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__right {
    width: auto !important; flex: 0 0 auto; justify-content: flex-end !important; gap: 6px !important;
  }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__stat {
    flex-direction: row !important; gap: 4px !important; height: 30px !important; min-height: 30px !important;
    min-width: 0 !important; padding: 0 8px !important;
  }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__stat strong { font-size: 12px !important; }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__stat small { font-size: 10px !important; }
  html body.view-item-page .lb-seller-footer--profile .lb-seller-footer__trusted { width: 30px !important; padding: 0 !important; }
}
