/*
 * Inkospor: sjednocení produktového upsellu s detailem produktu.
 * Nadpis v nastavení doplňku přejmenovat na „Hodí se k tomu“.
 * CSS ponechává skutečný nadpis viditelný; text se mění u zdroje v doplňku.
 * Vložit na konec vlastního CSS, ideálně upravy-editor.css.
 * Selektory ověřeny na živé stránce 12. 11. 2026.
 * Návrh nebyl nasazen ani vizuálně otestován po aplikaci.
 * Rozsah: produktový upsell pod tlačítkem Do košíku.
 * Původní responzivní rozložení a chování doplňku zůstávají zachovány.
 */

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button {
  --upsell-prdu-image_size: 64px;
  --upsell-prdu-image_margin_right: 12px;
  background: #f2f3f6;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 16px;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-products-header {
  position: static;
  inset: auto;
  display: block;
  width: auto;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-products {
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product {
  padding: 12px;
  background: #fff;
  border: 1px solid #dadada;
  border-radius: 0;
  box-shadow: none;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-information,
#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-details {
  min-width: 0;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-image {
  flex: 0 0 64px;
  width: 64px;
  margin: 0 12px 0 0;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-name,
#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-name a {
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-name a:hover {
  text-decoration: underline;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-price {
  display: inline-block;
  margin-top: 4px;
  color: #1f1f1f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* Skutečně neaktivní odkazy nepřevádíme na vzhled aktivního tlačítka. */
#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-add-to-cart a:not([aria-disabled="true"]):not(.disabled) {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  background: #1a1937;
  border: 1px solid #1a1937;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.3s ease-out, background-color 0.3s ease-out,
    border-color 0.3s ease-out, color 0.3s ease-out;
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-add-to-cart a:not([aria-disabled="true"]):not(.disabled):hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* Jemné zvětšení: 3 %. Časování převzaté z hlavního tlačítka. */
@media (hover: hover) and (pointer: fine) {
  #product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-add-to-cart a:not([aria-disabled="true"]):not(.disabled):hover {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  #product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button .up-product-add-to-cart a:not([aria-disabled="true"]):not(.disabled) {
    transition: none;
    transform: none;
  }
}

#product-detail-form .up-type-product_upsell.position-bellow_add_to_cart_button a:focus-visible {
  outline: 2px solid #09367e;
  outline-offset: 3px;
}
