/* Shared card data/actions, desktop presentation only. */
@media (min-width:1025px) {
 body:has(#gearp-mobile-card) main > h1 {font-size:32px;line-height:1.25;margin-bottom:18px;overflow-wrap:anywhere}
 #gearp-mobile-card {display:block;width:100%;min-width:0;margin-bottom:32px}
 #gearp-mobile-card [hidden] {display:none!important}
 #gearp-mobile-card .gearp-mobile-card__meta,
 #gearp-mobile-card .gearp-mobile-card__photos {display:none}
 #gearp-mobile-card .gearp-desktop-only {display:flex}
 .gearp-desktop-meta {align-items:center;gap:10px;margin:0 0 20px;flex-wrap:wrap}
 .gearp-desktop-meta > span:not(.gearp-desktop-favorite),.gearp-desktop-meta > button {background:#f4f5f6;border:0;border-radius:5px;padding:8px 12px;font-size:14px;display:inline-flex;align-items:center;gap:8px}
 .gearp-desktop-favorite {margin-left:auto;cursor:pointer}
 .gearp-desktop-favorite .favore_line_product {display:flex;gap:8px;align-items:center}
 .gearp-desktop-summary {align-items:center;gap:28px;border:1px solid #e1e4e7;border-radius:8px;padding:20px 24px;margin-bottom:22px;background:white}
 .gearp-desktop-summary > span {padding-left:28px;border-left:1px solid #e1e4e7;font-size:16px}
 .gearp-desktop-summary-price {min-width:0}
 #gearp-mobile-card .gearp-summary-value {background:none;padding:0;margin:0;width:auto}
 #gearp-mobile-card .in_top_line_green,#gearp-mobile-card .title_price_from,#gearp-mobile-card .price_quantity {display:none}
 #gearp-mobile-card .second_top_line_green,#gearp-mobile-card .left_price_top_line,#gearp-mobile-card .price_from {display:block;width:auto;margin:0;padding:0}
 #gearp-mobile-card .from_price_from {font-size:30px;line-height:1.2;font-weight:600;white-space:nowrap}
 .gearp-mobile-card__tabs {display:flex;gap:24px;overflow-x:auto;border-bottom:1px solid #e1e4e7;margin-bottom:24px;scrollbar-width:none}
 .gearp-mobile-card__tabs > button {flex:0 0 auto;border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;padding:12px 0;color:#646b70;font-size:16px;white-space:nowrap}
 .gearp-mobile-card__tabs > button[aria-selected=true] {color:#b52e2e;border-bottom-color:#b52e2e}
 .gearp-mobile-card__panel {min-width:0;overflow-wrap:anywhere}
 .gearp-mobile-card__panel img {max-width:100%}
 .gearp-mobile-card__panel dl {display:grid;grid-template-columns:minmax(150px,1fr) 2fr;gap:12px}
 #gearp-mobile-card #chars_block {width:100%;margin:0}
 #gearp-mobile-card #offers_suppliers {width:100%;margin:0}
 #gearp-mobile-card #offers_suppliers .title_spec {display:flex;align-items:center;gap:8px;margin:0 0 16px;flex-wrap:wrap}
 #offers_suppliers .title_spec > span:nth-child(2)::before {content:'('}
 #offers_suppliers .title_spec > span:nth-child(2)::after {content:')'}
 #gearp-mobile-card #offers_suppliers .title_spec .ttl {font-size:22px}
 #gearp-mobile-card .sorter {margin:0 0 0 auto;display:flex;gap:20px;width:auto;font-size:14px}
 #gearp-mobile-card .sorter_title {display:none}
 #gearp-mobile-card .sorter_item {margin:0}
 #gearp-mobile-card #offers_suppliers .supps_header,
 #gearp-mobile-card #offers_suppliers .parent_supps_line {display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(130px,1fr) minmax(160px,1.2fr) minmax(130px,1fr) minmax(160px,1fr);gap:8px 18px;padding:18px 0;margin:0;background:white;border:0;border-bottom:1px solid #e3e6e8;border-radius:0;align-items:center}
 #gearp-mobile-card #offers_suppliers .supps_header {font-size:13px;color:#7b8389;padding:10px 0}
 #gearp-mobile-card #offers_suppliers .supps_header::after {content:'Действие';text-align:center}
 #gearp-mobile-card #offers_suppliers .supps_item,
 #gearp-mobile-card #offers_suppliers .buy_supps_line,
 #gearp-mobile-card #offers_suppliers .buy_supps_right {display:contents}
 #gearp-mobile-card #offers_suppliers .supps_block {width:auto;min-width:0;padding:0;margin:0;font-size:14px;overflow-wrap:anywhere}
 #gearp-mobile-card #offers_suppliers .supps_first {grid-column:1;grid-row:1}
 #gearp-mobile-card #offers_suppliers .supps_second {grid-column:2;grid-row:1}
 #gearp-mobile-card #offers_suppliers .supps_thirty {grid-column:3;grid-row:1}
 #gearp-mobile-card #offers_suppliers .supps_four {grid-column:4;grid-row:1;text-align:right}
 #gearp-mobile-card #offers_suppliers .price_in_supps {font-weight:600;font-size:20px}
 #gearp-mobile-card #offers_suppliers .line_supps_item {font-size:16px;font-weight:600}
 #gearp-mobile-card #offers_suppliers [data-mobile-rating="0"] .line_supss_rating {display:none}
 #gearp-mobile-card #offers_suppliers .supp-models {display:none}
 #gearp-mobile-card #offers_suppliers .gearp-offer-action {grid-column:5;grid-row:1;display:flex;justify-content:center;align-items:center;gap:6px;min-height:40px;margin:0;padding:9px 12px;border:1px solid #b52e2e;border-radius:6px;background:#b52e2e;color:white;font-size:14px}
 #gearp-mobile-card #offers_suppliers .gearp-offer-action > span:first-child {display:none}
 #gearp-mobile-card #offers_suppliers .favorite_left_buy {grid-column:1;grid-row:2;margin:0}
 #gearp-mobile-card #offers_suppliers .open_chat {grid-column:5;grid-row:2;justify-self:center;font-size:12px;margin:0;padding:0;border:0;background:transparent}
 .gearp-mobile-card__cta {margin-top:24px}
 .gearp-mobile-card__cta .right_price_top_line {width:100%;margin:0}
 .gearp-mobile-card__cta .right_pr_ln,.gearp-mobile-card__cta .gearp-mobile-guest-price {display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px;width:100%;padding:12px;border:1px solid #b52e2e;border-radius:7px;background:white;color:#b52e2e;font-size:16px}
 .gearp-mobile-card__cta .gearp-mobile-price-icon {display:inline-flex}
 .gearp-mobile-card__cta .gearp-price-arrow,.gearp-mobile-card__cta .gearp-price-guest-text {display:none}
 .gearp-mobile-card__price-help {color:#747b80;font-size:13px;margin:10px 0 0}
 #gearp-mobile-card .gearp-customer-orders {display:block;margin-bottom:20px}
 #gearp-mobile-card .gearp-order-row {border:1px solid #e2e5e8;border-radius:6px;padding:12px;margin:8px 0}
 #gearp-mobile-card .gearp-orders-title,#gearp-mobile-card .gearp-order-row__head,#gearp-mobile-card .gearp-order-row__amount {display:flex;justify-content:space-between;gap:16px}
 #gearp-mobile-card .gearp-order-row__status {display:inline-block;padding:3px 8px;background:#f1f4f6;border-radius:4px;margin-top:6px;font-size:13px}
}
/* The existing delivery AJAX may return an empty string. Preserve a truthful fallback. */
#gearp-mobile-card #offers_suppliers .supp_item_need:empty::before {content:'Срок уточняется'}
@media(min-width:1025px){
 #gearp-mobile-card .gearp-mobile-card__cta .right_pr_ln span {color:#b52e2e}
 #gearp-mobile-card:has(#gearp-panel-offers[hidden]) .gearp-mobile-card__cta {display:none}
}@media(min-width:1025px){
 #gearp-mobile-card:not(.gearp-mobile-card--has-offers) #offers_suppliers .supps_header,
 #gearp-mobile-card:not(.gearp-mobile-card--has-offers) #offers_suppliers .sorter {display:none}
}

/* Final polish: bounded primary action and adjacent, equally clickable contact link. */
@media(min-width:1025px){
 #gearp-mobile-card #offers_suppliers .supps_header,
 #gearp-mobile-card #offers_suppliers .parent_supps_line {grid-template-columns:minmax(160px,1.5fr) minmax(100px,.8fr) minmax(140px,1.2fr) minmax(110px,1fr) 132px 76px;gap:4px 16px}
 #gearp-mobile-card #offers_suppliers .parent_supps_line {padding:12px 0}
 #gearp-mobile-card #offers_suppliers .supps_header::after {grid-column:5 / 7}
 #gearp-mobile-card #offers_suppliers .gearp-offer-action {width:132px;min-height:42px;padding:8px;white-space:normal;text-align:center;box-sizing:border-box}
 #gearp-mobile-card #offers_suppliers .open_chat {grid-column:6;grid-row:1;min-height:42px;display:flex;align-items:center;justify-content:center;gap:4px;padding:4px;box-sizing:border-box}
 #gearp-mobile-card #offers_suppliers .open_chat > span:first-child {display:none}
}
@media(max-width:1024px){
 .gearp-chat-safe-slot {height:0;clear:both}
 body:has(#gearp-mobile-card) .chat_fixed.gearp-chat-positioned {position:fixed!important;top:var(--gearp-chat-top)!important;bottom:auto!important;right:16px!important;left:auto!important;transition:none!important}
 body:has(#gearp-mobile-card) .chat_fixed.gearp-chat-docked {position:absolute!important;top:var(--gearp-chat-top)!important;left:var(--gearp-chat-left)!important;right:auto!important;bottom:auto!important}
}
/* Independent quantities for supplier offers; the displayed price remains per unit. */
#gearp-mobile-card #offers_suppliers .gearp-offer-quantity {display:flex;align-items:center;width:112px;max-width:100%;height:38px;border:1px solid #d8dce0;border-radius:6px;overflow:hidden;box-sizing:border-box;background:#fff}
#gearp-mobile-card #offers_suppliers .gearp-offer-quantity button {flex:0 0 30px;width:30px;height:100%;padding:0;border:0;background:transparent;color:#333;font-size:20px;cursor:pointer}
#gearp-mobile-card #offers_suppliers .gearp-offer-quantity button:disabled {color:#b4b8bc;cursor:default}
#gearp-mobile-card #offers_suppliers .gearp-offer-quantity input {flex:1 1 50px;min-width:0;width:50px;height:100%;padding:0 2px;border:0;border-left:1px solid #eceef0;border-right:1px solid #eceef0;border-radius:0;text-align:center;color:#333;background:#fff;font-size:14px;box-sizing:border-box}
#gearp-mobile-card #offers_suppliers .gearp-offer-quantity input:invalid {box-shadow:inset 0 -2px #b52e2e}
@media(min-width:1025px){
 #gearp-mobile-card #offers_suppliers .supps_header,
 #gearp-mobile-card #offers_suppliers .parent_supps_line {grid-template-columns:minmax(110px,1.5fr) minmax(70px,.8fr) minmax(95px,1fr) 112px minmax(95px,1fr) 112px 76px;column-gap:12px}
 #gearp-mobile-card #offers_suppliers .supps_quantity {grid-column:4;grid-row:1}
 #gearp-mobile-card #offers_suppliers .supps_four {grid-column:5}
 #gearp-mobile-card #offers_suppliers .gearp-offer-action {grid-column:6;width:112px}
 #gearp-mobile-card #offers_suppliers .open_chat {grid-column:7}
 #gearp-mobile-card #offers_suppliers .supps_header::after {grid-column:6 / 8}
}
@media(max-width:1024px){
 #gearp-mobile-card #offers_suppliers .supps_quantity {grid-column:1 / 3;grid-row:3;display:flex;align-items:center;gap:8px;min-width:0;margin-top:5px}
 #gearp-mobile-card #offers_suppliers .supps_quantity::before {content:'Количество';font-size:11px;color:#72777c}
 #gearp-mobile-card #offers_suppliers .gearp-offer-action {grid-row:3;align-self:end}
 #gearp-mobile-card #offers_suppliers .favorite_left_buy,
 #gearp-mobile-card #offers_suppliers .open_chat {grid-row:4}
}

/* Compact presentation for supplier offers without a positive price. */
@media(min-width:1025px){
 #gearp-mobile-card.gearp-mobile-card--unpriced #offers_suppliers .supps_header,
 #gearp-mobile-card.gearp-mobile-card--unpriced #offers_suppliers .parent_supps_line {grid-template-columns:minmax(110px,1.5fr) minmax(70px,.8fr) minmax(95px,1fr) 112px 112px 76px}
 #gearp-mobile-card.gearp-mobile-card--unpriced #offers_suppliers .supps_header .supps_four {display:none}
 #gearp-mobile-card.gearp-mobile-card--unpriced #offers_suppliers .gearp-offer-action {grid-column:5}
 #gearp-mobile-card.gearp-mobile-card--unpriced #offers_suppliers .open_chat {grid-column:6}
 #gearp-mobile-card.gearp-mobile-card--unpriced #offers_suppliers .supps_header::after {grid-column:5 / 7}
}
@media(max-width:1024px){
 #gearp-mobile-card #offers_suppliers .parent_supps_line[data-mobile-price="0"] .gearp-offer-action {grid-row:1 / 3;align-self:start}
}
