/* Cross-page marketplace contracts. Permanent visual state is ready before JS runs. */

.header-search,
.header-search .search-autocomplete__input-wrap {
  position: relative;
}
.header-search.has-search-value .header-search-submit,
.header-search:has([data-search-autocomplete-input]:not(:placeholder-shown)) .header-search-submit {
  display: none !important;
}
.header-search .search-autocomplete__clear {
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  display: grid;
  place-items: center;
  background: transparent !important;
  color: #667085 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  z-index: 12;
}
.header-search .search-autocomplete__clear[hidden] { display: none !important; }
.search-autocomplete__dropdown {
  border: 1px solid #e4e7ec !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.10) !important;
  overflow: hidden;
}
.search-autocomplete__section-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #98a2b3 !important;
}

.page-catalog .buyer-catalog__toolbar-search.catalog-main-search { display: none !important; }
.page-catalog [data-chip-key="q"],
.page-catalog [data-chip-remove][data-chip-key="q"] { display: none !important; }

.listing-stock-status[data-unlimited="1"],
.listing-stock-status[data-stock=""],
.listing-stock-status.is-unlimited { display: none !important; }

.seller-profile-results .listing-card__seller,
.seller-profile-results .listing-card__seller-block,
.seller-profile-results .listing-tile__seller-row,
.seller-profile-results .listing-tile__seller,
.seller-profile-results .catalog-card__seller,
.seller-profile-results [class*="seller-meta"],
.seller-profile-results [class*="seller-info"] { display: none !important; }
.profile-pagination { display: none !important; }

.refund-trigger-btn,
.refund-text-action,
.refund-trigger-btn:hover,
.refund-text-action:hover,
.refund-trigger-btn:focus-visible,
.refund-text-action:focus-visible,
.refund-trigger-btn:active,
.refund-text-action:active {
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #b42318 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.refund-trigger-btn::before,
.refund-trigger-btn::after,
.refund-text-action::before,
.refund-text-action::after { content: none !important; }

.chat-form.ui-clean-input,
.chat-form.ui-clean-input:hover,
.chat-form.ui-clean-input:focus-within {
  transition: border-color .12s ease, background-color .12s ease !important;
}
.chat-form.ui-clean-input:focus-within,
.chat-form.ui-clean-input:focus-within .chat-form__input {
  background: #fff !important;
  border-color: #7f56d9 !important;
  box-shadow: none !important;
}
.chatline:not(.chatline--mine):not(.chatline--system) .chatline__bubble {
  background: #fff !important;
  border: 1px solid #e4e7ec !important;
  box-shadow: none !important;
  color: #1d2939 !important;
}
.chatline--status-event .chatline__bubble {
  background: #f2f4f7 !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.chat-list-item:has(.chat-list-item__badge):not(.is-active) {
  background: #f9f5ff !important;
  box-shadow: inset 3px 0 0 #7f56d9 !important;
}
.chat-list-item:has(.chat-list-item__badge) .chat-list-item__preview {
  color: #344054 !important;
  font-weight: 650 !important;
}

@media (max-width: 768px) {
  .page-home .mvp-games-marketplace > :nth-child(n + 6) {
    display: none !important;
  }
}

.wallet-page [data-wallet-method-option][data-modal-kind="deposit"][data-method="usdt"] {
  display: none !important;
}

.page-listing-create-step2 .lf-pricing-mode-section > .lf-step2-section-stack > .listing-section-title {
  margin-bottom: 2px;
}
.page-listing-create-step2 .lf-pricing-mode-section .lf-step2-section-body > .lf-field-hint {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #667085;
}
.page-listing-create-step2 .lf-unit-limit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.page-listing-create-step2 .lf-unit-limit-fields .lf-field-label {
  display: block;
  margin: 0;
}
.page-listing-create-step2 .lf-unit-limit-fields .lf-input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #101828;
}
.page-listing-create-step2 .lf-unit-limit-fields .lf-input::placeholder {
  color: #98a2b3;
  font-size: 15px;
  font-weight: 500;
  opacity: 1;
}
.page-listing-create-step2 .lf-step2-footer-inner { align-items: center; }
.page-listing-create-step2 .lf-step2-footer-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.page-listing-create-step2 #footer_publish_listing {
  width: auto !important;
  min-width: 210px;
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}
.page-listing-create-step2 .lf-banner#draft_banner.is-hidden { display: none !important; }
.page-listing-create-step2 .lf-workspace > .lf-alert,
.page-listing-create-step2 .lf-runtime-submit-error {
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 0 !important;
  border-radius: 12px;
  background: #6d4aff !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.page-listing-create-step2 .lf-workspace > .lf-alert *,
.page-listing-create-step2 .lf-runtime-submit-error * { color: inherit !important; }
.page-listing-create-step2 #price_help_text[hidden] { display: none !important; }
.page-listing-create-step2 .lf-field-message.is-error,
.page-listing-create-step2 .lf-field-error:not(.is-empty) {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.page-listings-mine .listings-mine__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.page-listings-mine .listings-mine__header-actions > .btn {
  height: 50px;
  min-height: 50px;
  margin: 0 !important;
  padding: 0 20px;
  border-radius: 12px !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 14px;
  font-weight: 700;
}
.page-listings-mine .listings-mine__new-btn,
.page-listings-mine .listings-mine__new-btn:hover,
.page-listings-mine .listings-mine__new-btn:focus-visible,
.page-listings-mine .listings-mine__new-btn:active {
  border: 0 !important;
  background: #7f56d9 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
.page-listings-mine #adsCenterOpen,
.page-listings-mine #adsCenterOpen:hover,
.page-listings-mine #adsCenterOpen:focus-visible,
.page-listings-mine #adsCenterOpen:active {
  border: 0 !important;
  background: #047857 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
.page-listings-mine .listings-tabs { gap: 6px; }
.page-listings-mine .listings-tabs .ui-chip {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px !important;
  border: 0 !important;
  background: #f2f4f7 !important;
  color: #475467 !important;
  box-shadow: none !important;
  transform: none !important;
}
.page-listings-mine .listings-tabs .ui-chip.is-active {
  border: 0 !important;
  background: #7f56d9 !important;
  color: #fff !important;
}
.page-listings-mine .listings-mine__header-actions > .btn:focus-visible,
.page-listings-mine .listings-tabs .ui-chip:focus-visible {
  outline: 2px solid #7f56d9 !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

@media (max-width: 768px) {
:root {
    --mobile-nav-height: 64px;
    --mobile-nav-safe: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }
  .buyer-catalog__view-toggle,
  .buyer-catalog [class*="view-switch"] { margin-left: auto !important; }
  [data-mobile-bottom-sheet] [data-mobile-sheet-side="left"] {
    position: absolute !important;
    left: 16px !important;
    right: auto !important;
  }
  [data-mobile-bottom-sheet] [data-mobile-sheet-side="right"] {
    position: absolute !important;
    right: 16px !important;
    left: auto !important;
  }

  .listing-seller--mobile-after-price {
    margin-top: 12px !important;
    padding: 12px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #eaecf0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ld-lightbox { padding: 8px !important; }
  .ld-lightbox-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .ld-lightbox-img {
    max-width: calc(100vw - 20px) !important;
    width: auto !important;
    max-height: 84dvh !important;
  }

  .sales-tabs__btn {
    min-height: 42px !important;
    padding-inline: 17px !important;
    font-size: 14px !important;
  }
  .sales-page .sales-view-switch__btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  .sales-page .sales-view-switch__icon {
    width: 24px !important;
    height: 24px !important;
  }
  .sales-filters {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 44px !important;
    gap: 8px !important;
  }
  .sales-filter--search { grid-column: 1 / 3 !important; }
  .sales-filter:has([data-filter-game]) { grid-column: 1 !important; }
  .sales-filter:has([data-filter-status]) { grid-column: 2 !important; }
  .sales-filter:has([data-filter-sort]) {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 44px !important;
    overflow: visible !important;
  }
  .sales-filter:has([data-filter-sort]) .sales-dropdown__trigger {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    font-size: 0 !important;
    display: grid !important;
    place-items: center !important;
  }
  .sales-filter:has([data-filter-sort]) .sales-dropdown__trigger::before {
    content: "⇅";
    font-size: 22px;
    color: #475467;
  }

  .order-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 12px !important;
  }
  .order-page .order-product-header,
  .order-page .order-summary--hero { order: 30 !important; }
  .order-page .order-workspace {
    order: 20 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    min-width: 0 !important;
  }
  .order-page .order-workspace > .order-main {
    order: 20 !important;
    min-width: 0 !important;
  }
  .order-page .order-workspace > .order-side { display: contents !important; }
  .order-page .order-workspace > .order-side > .order-action-card { order: 10 !important; }
  .order-page .order-workspace > .order-side > .order-safety-card { order: 30 !important; }
  .order-action-card { padding: 16px !important; }
  .chat-shell {
    min-height: 0 !important;
    height: min(60dvh, 560px) !important;
    padding-inline: 6px !important;
  }
  .chat-shell .chatbox,
  .chat-panel .chatbox {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: 6px !important;
  }

  .notifications-page__header { align-items: center !important; }
  .notifications-page__header p { display: none !important; }
  .notifications-page__header-actions > a[href="/settings/notifications"] { display: none !important; }
  [data-notifications-page] .notifications-filters { display: none !important; }
  [data-notifications-page] .notifications-filters.is-mobile-open {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
  }
  .notifications-filter-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #475467;
    font-size: 22px;
    cursor: pointer;
  }

  .page-listings-mine .listings-mine__header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .page-listings-mine .listings-mine__header-actions > .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }
  .page-listing-create-step2 .lf-unit-limit-fields { grid-template-columns: 1fr; }
  .page-listing-create-step2 #footer_publish_listing {
    min-width: 0;
    width: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-form.ui-clean-input { transition: none !important; }
}

html body .listing-page .listing-buy-card,
html body .listing-page .listing-buy-card *,
html body .listing-page .listing-buy-card *::before,
html body .listing-page .listing-buy-card *::after {
  box-sizing: border-box;
}
html body .listing-page .listing-buy-card a.listing-cta,
html body .listing-page .listing-buy-card button.listing-cta,
html body .listing-page .listing-buy-card .listing-cta--ghost {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}
