/* TOPDON + YITH Premium: integración visual; mantiene el AJAX y las validaciones originales de YITH. */
.topdon-quote-header-icon {position:relative;flex:0 0 44px;color:var(--ink);text-decoration:none}
.topdon-quote-header-icon:hover,.topdon-quote-header-icon:focus-visible{color:var(--red)}
.topdon-quote-header-icon svg{display:block}
/* En página individual: cuota junto al botón Comprar, nunca bajo el bloque de información. */
.topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote{
  flex:1 1 155px;min-width:0;align-self:stretch;display:flex!important;align-items:stretch;
  margin:0!important;padding:0!important;float:none!important;max-width:100%;vertical-align:unset!important;
}
.topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote .yith-ywraq-add-button{
  display:flex;align-items:stretch;justify-content:stretch;width:100%;min-width:0;
}
.topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote .yith-ywraq-add-button[style*="display: none"],
.topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote .yith-ywraq-add-button[style*="display:none"]{display:none!important}
.topdon-wc-single .woocommerce div.product form.cart .single_add_to_cart_button{
  flex:1 1 155px;min-width:0;min-height:48px;margin:0!important;
  display:inline-flex;justify-content:center;align-items:center;text-align:center;
}
.topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote a.add-request-quote-button,
.topdon-wc-single .woocommerce div.product .summary > .yith-ywraq-add-to-quote a.add-request-quote-button{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:100%;min-height:48px;white-space:normal;text-align:center;
  padding:11px 15px!important;line-height:1.25!important;
  border-radius:10px!important;border:1px solid #696b7a!important;
  background:#303340!important;color:#f5f6fa!important;
  box-shadow:none!important;font-family:var(--sans)!important;font-size:14px!important;font-weight:650!important;
  text-decoration:none!important;opacity:1!important;transition:background .2s,border-color .2s;
}
.topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote a.add-request-quote-button:hover,
.topdon-wc-single .woocommerce div.product .summary > .yith-ywraq-add-to-quote a.add-request-quote-button:hover{
  background:#424657!important;border-color:#a7a9b6!important;color:#fff!important;
}
.topdon-wc-single .woocommerce div.product form.cart > .yith-ywraq-add-to-quote + .clear{display:none!important}
/* Los mensajes de YITH aparecen bajo las acciones, no empujan a comprar a otra fila. */
.topdon-wc-single .woocommerce div.product form.cart .yith_ywraq_add_item_response_message,
.topdon-wc-single .woocommerce div.product form.cart .yith_ywraq_add_item_product_message,
.topdon-wc-single .woocommerce div.product form.cart .yith_ywraq_add_item_browse_message{
  font-size:12px;line-height:1.45;
}
/* Alternativa de YITH para productos sin precio/sin stock; no ocultar mensajes. */
.topdon-wc-single .woocommerce div.product .summary > .yith-ywraq-add-to-quote{max-width:320px;margin:12px 0 22px}
/* Móvil: cantidad en la fila superior y dos acciones comerciales equivalentes debajo. */
@media(max-width:640px){
 .topdon-wc-single .woocommerce div.product form.cart .quantity{flex:0 0 100%;width:max-content}
 .topdon-wc-single .woocommerce div.product form.cart .single_add_to_cart_button,
 .topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote{flex:1 1 calc(50% - 6px);min-width:0}
 .topdon-wc-single .woocommerce div.product form.cart .yith-ywraq-add-to-quote a.add-request-quote-button{font-size:12px!important;padding-inline:8px!important}
}
/* Cotizador YITH también puede usar formulario/lista propia. Conservar sus campos nativos. */
.woocommerce .ywraq-wrapper,.woocommerce .yith-ywraq-list-wrapper {color:var(--ink)}

/* Fichas de archivo Woo: mismo botón secundario nativo YITH. */
.topdon-wc-page .topdon-product-card-actions .yith-ywraq-add-to-quote{margin:0!important;width:100%;display:block!important}
.topdon-wc-page .topdon-product-card-actions .yith-ywraq-add-to-quote a.add-request-quote-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;padding:9px 12px!important;background:#303340!important;color:#f5f6fa!important;border:1px solid #696b7a!important;border-radius:10px!important;box-shadow:none!important;text-align:center;text-decoration:none!important;font-size:13px!important}
.topdon-wc-page .topdon-product-card-actions .yith-ywraq-add-to-quote a.add-request-quote-button:hover{background:#424657!important;border-color:#a7a9b6!important}
.topdon-wc-page .topdon-product-card-actions > .clear{display:none!important}

/* Portada: no rediseña tarjetas; cotización secundaria en una línea propia. */
.topdon-home-quote{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;border:1px solid #696b7a;border-radius:10px;background:#303340;color:#f5f6fa!important;font-weight:650;font-size:12px;text-decoration:none!important;white-space:normal;text-align:center;line-height:1.25}
.topdon-home-quote:hover{background:#424657;border-color:#a7a9b6}
.card > .topdon-home-quote {align-self:stretch;margin-top:0}
.rc .topdon-home-quote{margin-top:5px}
.chap .row .topdon-home-quote {margin:0}
@media(max-width:560px){.topdon-home-quote{width:100%;font-size:12px}.chap .row .topdon-home-quote{width:auto}}

/* 1.4.7: Header quote icon visible beside the shopping cart, including on mobile. */
header.site .actions .topdon-quote-header-icon {
 display:inline-flex!important;align-items:center;justify-content:center;
 width:44px;min-width:44px;height:44px;flex:0 0 44px;
 color:var(--ink,#f4f4f5)!important;position:relative;
}
header.site .actions .topdon-quote-header-icon svg{width:22px;height:22px;flex:none}
header.site .actions .topdon-quote-header-icon:hover{color:var(--red,#10acf9)!important}

/* 1.4.7: WooCommerce & YITH controls share ONE purchase row on desktop.
   It keeps the original Woo form and the original YITH button, with no clone. */
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline{
 display:grid!important;grid-template-columns:max-content minmax(0,1fr) minmax(0,1fr);
 align-items:stretch;column-gap:10px;row-gap:12px;width:100%;min-width:0;
}
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .quantity{
 grid-column:1;grid-row:1;align-self:stretch;margin:0!important;
}
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .single_add_to_cart_button{
 grid-column:2;grid-row:1;width:100%;min-width:0;min-height:48px;
 margin:0!important;padding:10px 12px!important;white-space:normal;
}
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .yith-ywraq-add-to-quote{
 grid-column:3;grid-row:1;width:100%;min-width:0;max-width:none;
 margin:0!important;align-self:stretch;display:flex!important;
}
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .yith-ywraq-add-to-quote .yith-ywraq-add-button{
 display:flex;align-items:stretch;width:100%;min-width:0;
}
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .yith-ywraq-add-to-quote .add-request-quote-button{
 width:100%;height:100%;min-height:48px;display:flex!important;align-items:center;
 justify-content:center;margin:0!important;padding:10px 11px!important;
 border-radius:10px!important;box-sizing:border-box;
}
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .clear{display:none!important}
.topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > :is(.yith_ywraq_add_item_response_message,.yith_ywraq_add_item_product_message,.yith_ywraq_add_item_browse_message,.added_to_cart){grid-column:1/-1}
/* Variable products: when YITH already inserted inside native variation controls. */
.topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline{
 display:grid!important;grid-template-columns:max-content minmax(0,1fr) minmax(0,1fr);
 align-items:stretch;gap:10px;width:100%;
}
.topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline > .quantity{grid-column:1;grid-row:1;margin:0!important}
.topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline > .single_add_to_cart_button{grid-column:2;grid-row:1;width:100%;min-width:0;margin:0!important}
.topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline > .yith-ywraq-add-to-quote{grid-column:3;grid-row:1;width:100%;min-width:0;display:flex!important;margin:0!important}
@media(max-width:680px){
 .topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline,
 .topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 }
 .topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .quantity,
 .topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline > .quantity{
  grid-column:1/-1;grid-row:1;width:max-content;max-width:100%;
 }
 .topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .single_add_to_cart_button,
 .topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline > .single_add_to_cart_button{grid-column:1;grid-row:2}
 .topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline > .yith-ywraq-add-to-quote,
 .topdon-wc-single .woocommerce div.product .variations_button.topdon-quote-inline > .yith-ywraq-add-to-quote{grid-column:2;grid-row:2}
 .topdon-wc-single .woocommerce div.product form.cart.topdon-quote-inline .yith-ywraq-add-to-quote .add-request-quote-button{font-size:12px!important}
}

/* 1.4.8: El mismo botón YITH de WooCommerce se utiliza en Inicio y archivos. */
.topdon-unified-card > .topdon-quote-card{width:100%;min-width:0;margin:0;margin-top:auto;display:block}
.topdon-unified-card .topdon-quote-card .yith-ywraq-add-to-quote{display:block!important;float:none!important;margin:0!important;padding:0!important;width:100%;max-width:none}
.topdon-unified-card .topdon-quote-card .yith-ywraq-add-button{width:100%;float:none!important;margin:0!important}
.topdon-unified-card .topdon-quote-card a.add-request-quote-button,
.topdon-unified-card .topdon-quote-card .topdon-quote-options,
.topdon-unified-card .topdon-quote-card a.add-request-quote-button.button{
 display:flex!important;align-items:center;justify-content:center;width:100%;min-height:40px;
 padding:10px 12px!important;border-radius:10px!important;margin:0!important;
 background:#303340!important;color:#f5f6fa!important;border:1px solid #696b7a!important;
 font:650 12.5px/1.25 var(--sans)!important;text-align:center!important;text-decoration:none!important;
 box-shadow:none!important;white-space:normal!important;box-sizing:border-box!important;
}
.topdon-unified-card .topdon-quote-card a.add-request-quote-button:hover,
.topdon-unified-card .topdon-quote-card .topdon-quote-options:hover{background:#424657!important;border-color:#a7a9b6!important}
.topdon-unified-card .topdon-quote-card > .clear{display:none!important}
.topdon-unified-card .topdon-quote-card .yith_ywraq_add_item_response_message,
.topdon-unified-card .topdon-quote-card .yith_ywraq_add_item_browse_message,
.topdon-unified-card .topdon-quote-card .yith_ywraq_add_item_product_message{font-size:12px;color:#cfcfd4;line-height:1.45;margin:8px 0}
.topdon-unified-card .topdon-quote-card .yith_ywraq_add_item_browse_message a{color:#f4f4f5;text-decoration:underline}
@media(max-width:520px){.topdon-unified-card > .topdon-quote-card{margin-top:0}}

/* 1.4.8: YITH en recomendador y destacados, sin romper las tarjetas originales. */
.rc-actions .topdon-quote-card{width:100%;margin:6px 0 0;flex:1 0 100%}
.chap .row > .topdon-quote-card{display:block;flex:0 1 170px;min-width:150px;margin:0}
.chap .row .topdon-quote-card a.add-request-quote-button{min-height:44px!important}
.rc .topdon-quote-card{width:100%}
@media(max-width:650px){.chap .row > .topdon-quote-card{flex:1 1 100%}}


/* TOPDON 1.4.9 · Misma fila de botones en todas las tarjetas, incluyendo Inicio,
 * Tienda, categorías, relacionados, recomendador y Tres caminos.
 * YITH conserva su botón, su AJAX y sus mensajes originales. */
.topdon-unified-card .topdon-card-price-row{width:100%;margin-top:auto;min-width:0}
.topdon-unified-card .topdon-card-price-row .price{max-width:100%;margin:0!important}
.topdon-unified-card .topdon-card-actions,
.rc .rc-actions > .topdon-card-actions{
  display:grid!important;grid-template-columns:minmax(0,1fr);align-items:stretch;
  gap:8px;width:100%;min-width:0;margin-top:8px;
}
.topdon-unified-card .topdon-card-actions.with-quote,
.rc .rc-actions > .topdon-card-actions.with-quote{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.topdon-unified-card .topdon-card-actions > *,
.rc .topdon-card-actions > *{min-width:0!important;max-width:none!important;margin:0!important;width:100%!important;box-sizing:border-box}
/* Same secondary button as the product page. */
.topdon-unified-card .topdon-card-actions > a.add,
.topdon-unified-card .topdon-card-actions > button.add,
.topdon-unified-card .topdon-card-actions > a.button,
.topdon-unified-card .topdon-card-actions > a.add_to_cart_button,
.rc .topdon-card-actions > button.rc-add,
.chap .topdon-chap-actions > .btn-red{
  display:flex!important;align-items:center;justify-content:center;
  min-height:48px!important;height:100%;padding:10px 10px!important;
  margin:0!important;max-width:none!important;width:100%!important;
  border:1px solid #10acf9!important;border-radius:10px!important;
  background:#10acf9!important;color:#fff!important;
  box-shadow:none!important;font:650 13px/1.25 var(--sans)!important;
  white-space:normal!important;text-align:center;text-decoration:none;
}
.topdon-unified-card .topdon-card-actions > :is(a.add,button.add,a.button,a.add_to_cart_button):hover,
.rc .topdon-card-actions > button.rc-add:hover,
.chap .topdon-chap-actions > .btn-red:hover{background:#10acf9!important;border-color:#10acf9!important}
.topdon-unified-card .topdon-card-actions > .topdon-quote-card,
.rc .topdon-card-actions > .topdon-quote-card,
.chap .topdon-chap-actions > .topdon-quote-card{
  display:flex!important;align-items:stretch;width:100%!important;min-width:0!important;
  height:100%;max-width:none!important;margin:0!important;padding:0!important;flex:none!important;
}
.topdon-unified-card .topdon-card-actions .topdon-quote-card .yith-ywraq-add-to-quote,
.rc .topdon-card-actions .topdon-quote-card .yith-ywraq-add-to-quote,
.chap .topdon-chap-actions .topdon-quote-card .yith-ywraq-add-to-quote,
.topdon-unified-card .topdon-card-actions .topdon-quote-card .yith-ywraq-add-button,
.rc .topdon-card-actions .topdon-quote-card .yith-ywraq-add-button,
.chap .topdon-chap-actions .topdon-quote-card .yith-ywraq-add-button{
  display:flex!important;align-items:stretch;width:100%!important;min-width:0;
  height:100%;max-width:none!important;margin:0!important;padding:0!important;float:none!important;
}
.topdon-unified-card .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options),
.rc .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options),
.chap .topdon-chap-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options){
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:48px!important;height:100%!important;
  border:1px solid #696b7a!important;border-radius:10px!important;
  background:#303340!important;color:#f5f6fa!important;
  padding:10px 10px!important;margin:0!important;box-shadow:none!important;
  white-space:normal!important;text-align:center!important;text-decoration:none!important;
  font:650 13px/1.25 var(--sans)!important;box-sizing:border-box!important;
}
.topdon-unified-card .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options):hover,
.rc .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options):hover,
.chap .topdon-chap-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options):hover{
  background:#424657!important;border-color:#a7a9b6!important;color:#fff!important;
}
.topdon-unified-card .topdon-card-actions .topdon-quote-card .clear,
.rc .topdon-card-actions .topdon-quote-card .clear,
.chap .topdon-chap-actions .topdon-quote-card .clear{display:none!important}
/* Woo archive and related cards use the exact same action pair. */
.topdon-wc-page .woocommerce ul.products li.topdon-unified-card .topdon-card-actions{
  margin-top:8px!important;display:grid!important;width:100%;min-height:48px;
}
.topdon-wc-page .woocommerce ul.products li.topdon-unified-card .topdon-card-actions > a.button,
.topdon-wc-page .woocommerce ul.products li.topdon-unified-card .topdon-card-actions > a.add_to_cart_button{
  max-width:100%!important;width:100%!important;min-height:48px!important;margin:0!important;
}
/* Rec cards retain their "Ver producto" link above the paired actions. */
.rc .rc-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch}
.rc .rc-actions > .topdon-card-actions{margin-top:0}
/* Tres caminos retains its special layout but keeps comprar/cotizar together. */
.chap .row > .topdon-chap-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;flex:1 1 300px;min-width:0;margin:0}
.chap .row > .topdon-chap-actions.with-quote{grid-template-columns:repeat(2,minmax(0,1fr))}
.chap .row .topdon-chap-detail{min-height:48px}
@media(max-width:650px){
 .topdon-unified-card .topdon-card-actions.with-quote,
 .rc .rc-actions > .topdon-card-actions.with-quote,
 .chap .row > .topdon-chap-actions.with-quote{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .topdon-unified-card .topdon-card-actions > :is(a.add,button.add,a.button,a.add_to_cart_button),
 .rc .topdon-card-actions > button.rc-add,
 .chap .topdon-chap-actions > .btn-red,
 .topdon-unified-card .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options),
 .rc .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options),
 .chap .topdon-chap-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options){
   font-size:11px!important;padding:7px 5px!important;min-height:52px!important;
   overflow-wrap:anywhere;line-height:1.2!important;
 }
 .topdon-unified-card .topdon-card-actions,.rc .rc-actions > .topdon-card-actions{gap:5px}
}

/* Respect YITH's state after a quote was already added: never force hidden 
   action visible. Keep its official confirmation and browse-list messages. */
.topdon-unified-card .topdon-card-actions .topdon-quote-card .yith-ywraq-add-button[style*="display:none"],
.topdon-unified-card .topdon-card-actions .topdon-quote-card .yith-ywraq-add-button[style*="display: none"],
.rc .topdon-card-actions .topdon-quote-card .yith-ywraq-add-button[style*="display:none"],
.rc .topdon-card-actions .topdon-quote-card .yith-ywraq-add-button[style*="display: none"],
.chap .topdon-chap-actions .topdon-quote-card .yith-ywraq-add-button[style*="display:none"],
.chap .topdon-chap-actions .topdon-quote-card .yith-ywraq-add-button[style*="display: none"]{display:none!important}
.topdon-unified-card .topdon-card-actions .topdon-quote-card .yith-ywraq-add-to-quote,
.rc .topdon-card-actions .topdon-quote-card .yith-ywraq-add-to-quote,
.chap .topdon-chap-actions .topdon-quote-card .yith-ywraq-add-to-quote{flex-direction:column;justify-content:center}

/* TOPDON 1.5.0: portada administrada por Core; acciones homogéneas */
header.site .actions > .topdon-quote-header-icon {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;
 opacity:1!important;visibility:visible!important;
}
/* El botón YITH y la compra comparten SIEMPRE su fila, nunca se insertan junto al precio. */
.topdon-unified-card > .topdon-card-actions,
.topdon-wc-page .woocommerce ul.products li.topdon-unified-card > .topdon-card-actions,
.finder .rc .rc-actions > .topdon-card-actions {
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 width:100%!important;min-width:0!important;gap:8px!important;
 margin-top:10px!important;align-items:stretch!important;clear:both!important;
}
.topdon-unified-card > .topdon-card-actions.with-quote,
.topdon-wc-page .woocommerce ul.products li.topdon-unified-card > .topdon-card-actions.with-quote,
.finder .rc .rc-actions > .topdon-card-actions.with-quote {
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.topdon-unified-card .topdon-card-actions > :is(button.add,a.add,a.button,a.add_to_cart_button),
.topdon-wc-page .woocommerce ul.products li.topdon-unified-card .topdon-card-actions > a.button,
.finder .rc .topdon-card-actions > :is(button.rc-add,a.rc-add) {
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;max-width:100%!important;min-width:0!important;min-height:48px!important;
 height:auto!important;margin:0!important;float:none!important;padding:9px 6px!important;
 background:#10acf9!important;border:1px solid #10acf9!important;color:#fff!important;
 border-radius:10px!important;font:650 12px/1.25 var(--sans)!important;
 text-align:center!important;white-space:normal!important;overflow-wrap:normal!important;
 word-break:normal!important;hyphens:none!important;box-sizing:border-box!important;
}
.topdon-unified-card .topdon-card-actions > .topdon-quote-card,
.finder .rc .topdon-card-actions > .topdon-quote-card,
.chap .topdon-card-actions > .topdon-quote-card {
 width:100%!important;min-width:0!important;max-width:100%!important;
 align-self:stretch!important;margin:0!important;padding:0!important;height:auto!important;
}
.topdon-unified-card .topdon-card-actions .topdon-quote-card .yith-ywraq-add-to-quote,
.finder .rc .topdon-card-actions .topdon-quote-card .yith-ywraq-add-to-quote,
.chap .topdon-card-actions .topdon-quote-card .yith-ywraq-add-to-quote {
 min-width:0!important;max-width:100%!important;width:100%!important;
 height:auto!important;margin:0!important;float:none!important;
}
.topdon-unified-card .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options),
.finder .rc .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options),
.chap .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options){
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 min-height:48px!important;height:100%!important;margin:0!important;padding:9px 6px!important;
 border-radius:10px!important;border:1px solid #696b7a!important;
 background:#303340!important;color:#f5f6fa!important;box-shadow:none!important;
 font:650 12px/1.25 var(--sans)!important;text-align:center!important;
 white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
}
/* El recomendador ya no tiene Ver producto como botón visible: foto y nombre enlazan a ficha. */
.finder .rc .rc-actions{margin-top:auto!important;display:block!important;min-width:0;width:100%;}
.finder .rc .rc-actions .rc-go{display:none!important;}
.finder .rc .rc-actions > .topdon-card-actions{margin-top:12px!important;}
/* Tres caminos: precio independiente, Comprar y Cotizar. El acceso a ficha va sobre la imagen. */
.chap .row > .topdon-chap-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 gap:8px!important;align-items:stretch!important;flex:1 1 290px;min-width:0;max-width:100%;margin:0!important;}
.chap .row > .topdon-chap-actions.with-quote{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.chap .row > .topdon-chap-actions > .btn-red{width:100%!important;min-width:0!important;
 min-height:48px!important;padding:9px 6px!important;margin:0!important;font-size:12px!important;
 word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;white-space:normal!important;}
.chap .cm .topdon-chapter-view {position:absolute;bottom:20px;left:20px;right:20px;z-index:2;
 padding:11px 14px;background:rgba(10,10,11,.92);color:#fff;border-radius:10px;
 border:1px solid rgba(255,255,255,.18);font-weight:650;font-size:13px;text-align:center;
 opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s;pointer-events:none;}
@media (hover:hover) and (pointer:fine) {
 .chap .cm:hover .topdon-chapter-view,.chap .cm:focus-visible .topdon-chapter-view{opacity:1;transform:none;}
}
@media(max-width:700px){
 .finder .rec{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
 .finder .rc{min-width:0!important;padding:15px!important;}
 .finder .rc .t{aspect-ratio:5/3;}
 .finder .rc .topdon-card-actions.with-quote{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .chap .row > .topdon-chap-actions{flex:1 1 100%;}
 .topdon-unified-card .topdon-card-actions > :is(button.add,a.add,a.button,a.add_to_cart_button),
 .finder .rc .topdon-card-actions > :is(button.rc-add,a.rc-add),
 .topdon-unified-card .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options),
 .finder .rc .topdon-card-actions .topdon-quote-card :is(a.add-request-quote-button,a.topdon-quote-options){
 font-size:11px!important;padding:8px 5px!important;min-height:48px!important;
 overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;}
}

/* Ver producto al pasar sobre la fotografía del recomendador. */
.finder .rc .t{position:relative;}
.finder .rc .topdon-rec-view{position:absolute;left:6px;right:6px;bottom:6px;padding:8px 6px;background:rgba(10,10,11,.93);color:#fff;border-radius:10px;opacity:0;transform:translateY(3px);transition:opacity .2s,transform .2s;font:650 12px var(--sans);text-align:center;}
@media(hover:hover) and (pointer:fine){.finder .rc .t:hover .topdon-rec-view,.finder .rc .t:focus-visible .topdon-rec-view{opacity:1;transform:none;}}
/* Recomendador: botón Comprar encima de Cotizar (4 recomendaciones en escritorio). */
.finder .rc .rc-actions > .topdon-card-actions.with-quote {grid-template-columns:minmax(0,1fr)!important;}
@media(max-width:700px){.finder .rc .rc-actions > .topdon-card-actions.with-quote{grid-template-columns:minmax(0,1fr)!important;}}

/* TOPDON 1.5.5: El acceso a Cotizaciones vive en el encabezado móvil,
   junto al carrito. La barra inferior mantiene sus cuatro accesos originales. */
@media (max-width:900px) {
 header.site .hd {grid-template-columns:minmax(0,1fr) auto;}
 header.site .hd > .actions {display:flex;align-items:center;justify-self:end;min-width:0;gap:4px;}
 header.site .hd > .actions > a.topdon-quote-header-icon {
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;
   opacity:1!important;visibility:visible!important;
   border:1px solid #43434c!important;border-radius:50%!important;
   background:#1b1b1e!important;color:#f4f4f5!important;
   text-decoration:none!important;
 }
 header.site .hd > .actions > a.topdon-quote-header-icon > svg {
   display:block!important;width:24px!important;height:24px!important;
   color:inherit!important;stroke:currentColor!important;
 }
 header.site .hd > .actions > a.topdon-quote-header-icon:hover,
 header.site .hd > .actions > a.topdon-quote-header-icon:focus-visible {
   border-color:var(--red)!important;color:#fff!important;
 }
}
/* The recommendation image is inside a fixed-ratio viewport, not a height-
   inherited flex child. The linked media keeps its exact aspect ratio. */
.finder .rc > a.t {position:relative;display:block;width:100%;min-width:0;
 aspect-ratio:4/3;height:auto;overflow:hidden;background:var(--tile);}
.finder .rc > a.t > img {position:absolute!important;inset:8px!important;
 display:block!important;width:calc(100% - 16px)!important;
 height:calc(100% - 16px)!important;max-width:none!important;
 max-height:none!important;object-fit:contain!important;
 object-position:center center!important;padding:0!important;margin:0!important;
 transform:none!important;mix-blend-mode:normal!important;}
@media(max-width:700px){
 .finder .rc > a.t {aspect-ratio:4/3;}
}
