/* TB Market v0.13.362 — small storefront fixes on top of the existing design (no new look). */

/* search / category filters: the hidden switch checkbox was absolutely positioned against the page and stretched to
   1351px, which gave the whole page a horizontal scroll on PC */
.filter-toggle{position:relative!important}
.filter-toggle input[type="checkbox"]{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;min-width:0!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important}

/* product page: «Добавлено в сравнение · Открыть» toast (same toast as «Ссылка скопирована») */
.product-page-shell .oz-share-toast.oz-compare-toast{grid-template-columns:24px minmax(0,1fr) auto!important}
.oz-compare-toast .oz-compare-toast-link{color:#7cc0ff;font-weight:800;text-decoration:none;white-space:nowrap;padding:4px 6px;border-radius:8px}
.oz-compare-toast .oz-compare-toast-link:hover{background:rgba(255,255,255,.1)}

/* header profile menu: languages as three links instead of an item that reloaded the same language
   (the row is a div, so it gets the same grid as the anchor items) */
.market-actions .market-profile-popover .market-profile-item.market-profile-langs{position:static;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:11px;min-width:0;min-height:52px;margin:0;padding:8px 16px;border-radius:0;background:transparent;color:var(--navy);font:400 13px/1.35 Inter,sans-serif;white-space:normal;text-align:left;cursor:default}
.market-profile-langs .market-profile-copy small{display:block;margin-top:2px;font-size:12px;color:#8B99A9}
.market-profile-langs small a{color:inherit;text-decoration:none;margin-right:8px}
.market-profile-langs small a:hover{color:#005bff;text-decoration:underline}
.market-profile-langs small a.is-current{color:#005bff;font-weight:700}

/* favourites: the same rows in every card (brand/store, title, stock, button) so nothing jumps between cards */
.market-favorites-grid .customer-favorite-product .product-body{display:flex;flex-direction:column;min-height:0}
.market-favorites-grid .customer-favorite-product .product-body h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.market-favorites-grid .customer-favorite-product .product-stock-line{margin-top:auto}
.market-favorites-grid .customer-favorite-product .product-card-footer{margin-top:10px}

/* disabled «Оформить» links (empty cart) must not look or act clickable */
a.disabled.market-mini-cart-checkout,a.disabled.market-cart-checkout-main,a.disabled.native-cart-checkout-button{pointer-events:none;opacity:.55}

/* v0.13.388: card photos before the product is opened — ‹ › on the photo on hover (computer), finger swipe (touch),
   one dot per photo (dots: existing styles). Neutral white / dark, our colours unchanged. */
.tb-cg-arrow{display:none}
.product-card-gallery.is-swipeable .product-card-gallery-link{touch-action:pan-y pinch-zoom}
@media (hover:hover) and (pointer:fine){
  .product-card-gallery.has-multiple .tb-cg-arrow{position:absolute;top:50%;z-index:5;display:grid;place-items:center;width:30px;height:30px;margin:-15px 0 0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#001A34;box-shadow:0 2px 8px rgba(0,26,52,.2);cursor:pointer;opacity:0;transition:opacity .15s ease,background-color .15s ease}
  .product-card-gallery.has-multiple .tb-cg-arrow.is-prev{left:8px;right:auto}
  .product-card-gallery.has-multiple .tb-cg-arrow.is-next{right:8px;left:auto}
  .product-card-gallery.has-multiple:hover .tb-cg-arrow,.product-card-gallery.has-multiple .tb-cg-arrow:focus-visible{opacity:1}
  .product-card-gallery.has-multiple .tb-cg-arrow:hover{background:#fff}
  .product-card-gallery.has-multiple .tb-cg-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
  .product-card-gallery.has-multiple .product-card-gallery-link{cursor:pointer}
}
