/* rgquoteflow - front */
:root {
  --rgqf-primary: #cc1818;
}

.rgqf-pending { color: #777; font-style: italic; }

.rgqf-quotes-table a { color: var(--rgqf-primary); }
.rgqf-quotes-table .btn-primary,
#rgqf-flow-modal .btn-primary {
  background: var(--rgqf-primary);
  border-color: var(--rgqf-primary);
}

#rgqf-quotes-link .material-icons { color: var(--rgqf-primary); }

/* Modal de cruce de flujos */
#rgqf-flow-modal .modal-header { border-top: 3px solid var(--rgqf-primary); }

/* Ocultación defensiva de precios en flujo presupuesto
   (la ocultación principal es show_price=0 + overrides tpl del tema hijo) */
body.rgqf-quote-cart .rgqf-hide-price { display: none !important; }

/* Ficha de producto en flujo presupuesto: defensa adicional al show_price=0
   (oculta restos de precio que la plantilla pinte por su cuenta) */
body.rgqf-quote-product .product-prices,
body.rgqf-quote-product .product-price,
body.rgqf-quote-product .current-price,
body.rgqf-quote-product .product-discounts,
body.rgqf-quote-product .tax-shipping-delivery-label {
  display: none !important;
}

/* =====================================================================
 * v1.7.0 — Ocultación total de precios en flujo presupuesto
 * (selectores Leo portados de trentanovecheckout; todo bajo
 *  body.rgqf-quote-cart para no afectar al flujo de compra)
 * ===================================================================== */

/* Genérico: filas marcadas por JS y ceros detectados */
body.rgqf-quote-cart .rgqf-hide-price { display: none !important; }
body.rgqf-quote-cart .rgqf-zero { visibility: hidden !important; }

/* Página de carrito: precio por línea y bloque de totales */
body.rgqf-quote-cart .cart-item .product-price,
body.rgqf-quote-cart .cart-item .current-price,
body.rgqf-quote-cart .product-line-info .price,
body.rgqf-quote-cart .product-line-grid-right .price,
body.rgqf-quote-cart td.product-price,
body.rgqf-quote-cart #cart-subtotal-products .value,
body.rgqf-quote-cart #cart-subtotal-shipping,
body.rgqf-quote-cart .cart-summary-line.cart-total,
body.rgqf-quote-cart .cart-summary-totals,
body.rgqf-quote-cart .cart-detailed-totals .cart-total {
  display: none !important;
}

/* Resumen lateral del checkout */
body.rgqf-quote-cart #js-checkout-summary .cart-summary-line.cart-total,
body.rgqf-quote-cart #js-checkout-summary #cart-subtotal-shipping,
body.rgqf-quote-cart #js-checkout-summary #cart-subtotal-products .value,
body.rgqf-quote-cart #js-checkout-summary .product-price,
body.rgqf-quote-cart #js-checkout-summary .price {
  display: none !important;
}

/* Popup post-añadir (classic + Leo) */
body.rgqf-quote-cart #blockcart-modal .product-price,
body.rgqf-quote-cart #blockcart-modal .subtotals,
body.rgqf-quote-cart #blockcart-modal .product-total,
body.rgqf-quote-cart #blockcart-modal .cart-content .value {
  display: none !important;
}

/* Desplegable del carrito Leo (trentanovecheckout) */
body.rgqf-quote-cart .leo-dropdown-cart .product-price,
body.rgqf-quote-cart .leo-dropdown-cart .leo-dropdown-cart-subtotals,
body.rgqf-quote-cart .leo-dropdown-cart .leo-dropdown-additional {
  display: none !important;
}

/* v1.7.1 — Icono de solicitud en el header (trentanovecheckout) */
.rgqf-req-icon { display: inline-block; line-height: 0; }
.rgqf-req-icon svg { width: 1.55em; height: 1.55em; vertical-align: middle; }

/* v1.7.1 — Método de solicitud inyectado en modo free-order */
.rgqf-payment-option { padding: .5rem 0 1rem; }
.rgqf-payment-option .rgqf-payment-cta { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.rgqf-payment-option .rgqf-radio {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid var(--rgqf-primary); position: relative; flex: 0 0 auto;
}
.rgqf-payment-option .rgqf-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--rgqf-primary);
}
.rgqf-payment-option .rgqf-comment label { font-weight: 600; }

/* =====================================================================
 * v1.9.0 — Doble icono carrito / solicitud en el header
 * ===================================================================== */
.rgqf-alt-cart { position: relative; display: inline-flex; align-items: center; margin: 0 .65rem; vertical-align: middle; }
.rgqf-alt-cart > a { position: relative; display: inline-flex; color: inherit; opacity: .55; }
.rgqf-alt-cart > a:hover { opacity: .85; }
.rgqf-alt-cart .rgqf-alt-icon svg,
.rgqf-req-icon svg { width: 1.55em; height: 1.55em; vertical-align: middle; display: inline-block; }
.rgqf-req-icon { display: inline-block; line-height: 0; }
.rgqf-alt-badge {
  position: absolute; top: -.55em; right: -.7em;
  min-width: 1.5em; height: 1.5em; padding: 0 .3em;
  background: #9a9a9a; color: #fff; border-radius: 999px;
  font-size: .62em; line-height: 1.5em; text-align: center; font-weight: 600;
}
.rgqf-alt-dropdown {
  display: none; position: absolute; top: 100%; right: 0; z-index: 1040;
  min-width: 230px; background: #fff; border: 1px solid #e5e5e5;
  border-top: 3px solid var(--rgqf-primary); border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 1rem;
}
.rgqf-alt-dropdown p { margin: 0; font-size: .85rem; color: #555; }
.rgqf-alt-cart:hover .rgqf-alt-dropdown,
.rgqf-alt-cart:focus-within .rgqf-alt-dropdown { display: block; }

/* En flujo presupuesto, el desplegable real no muestra la fila de total
   (defensa CSS además del pase JS por etiquetas) */
body.rgqf-quote-cart .blockcart .cart-total,
body.rgqf-quote-cart .blockcart .leo-dropdown-cart-subtotals {
  display: none !important;
}

/* v1.9.2 — Maquetación del icono alternativo: en línea con el resto de
   iconos del header (nada de saltos de línea ni solapes de badges) */
#rgqf-alt-cart.rgqf-alt-cart {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  float: none;
  width: auto;
  margin: 0 .45rem;
  padding: 0;
  position: relative;
  vertical-align: middle;
  line-height: 1;
}
.rgqf-alt-cart .rgqf-alt-icon svg { width: 1.45em; height: 1.45em; }
/* badge calcado al del tema en tamaño/posición, gris por estar inactivo */
.rgqf-alt-badge {
  position: absolute; top: -.45em; right: -.55em;
  min-width: 1.45em; height: 1.45em; padding: 0 .25em;
  background: #b5b5b5; color: #fff; border-radius: 999px;
  font-size: .6em; line-height: 1.45em; text-align: center; font-weight: 600;
}

/* Precios por línea del desplegable del widget en flujo presupuesto */
body.rgqf-quote-cart .blockcart .price,
body.rgqf-quote-cart .blockcart .product-price {
  display: none !important;
}

/* v1.9.3 — El desplegable Leo se pinta FUERA de .blockcart: ampliar la
   ocultación de precios en flujo presupuesto a todos los contenedores */
body.rgqf-quote-cart .leo-dropdown-cart .price,
body.rgqf-quote-cart .leo-dropdown-cart .product-price,
body.rgqf-quote-cart #leo_block_cart .price,
body.rgqf-quote-cart #leo_block_cart .product-price,
body.rgqf-quote-cart [class*="dropdown-cart"] .price,
body.rgqf-quote-cart [class*="dropdown-cart"] .product-price,
body.rgqf-quote-cart .cart-dropdown .price,
body.rgqf-quote-cart .cart-dropdown .product-price {
  display: none !important;
}
body.rgqf-quote-cart .rgqf-hide-price { display: none !important; }

/* v1.9.4 — Botones del desplegable en una sola fila */
body.rgqf-quote-cart .rgqf-dd-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px;
  align-items: stretch;
}
body.rgqf-quote-cart .rgqf-dd-actions > a,
body.rgqf-quote-cart .rgqf-dd-actions > button {
  flex: 1 1 50%;
  width: auto !important;
  margin: 0 !important;
  font-size: .78em;
  padding: .65em .4em;
  white-space: nowrap;
  text-align: center;
}

/* v1.9.5 — Fila de iconos: el contenedor del widget (#_desktop_cart en
   Bocpak/Elementor, id shoppingCartContainer añadido por Carlos) apila en
   bloque; lo forzamos a fila flex. Los paneles desplegables de Leo van en
   position:absolute y no participan en el flujo de la fila. */
.rgqf-cart-row,
#shoppingCartContainer #_desktop_cart,
#shoppingCartContainer #_mobile_cart {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  position: relative;
}
.rgqf-cart-row > .rgqf-alt-cart { flex: 0 0 auto; }
/* neutralizar cualquier resto visual de clases de Leo en el dummy */
#rgqf-alt-cart { opacity: 1 !important; }
#rgqf-alt-cart::before, #rgqf-alt-cart::after { display: none !important; content: none !important; }

/* v1.9.8 — Respiración de la botonera del desplegable */
body.rgqf-quote-cart .rgqf-dd-actions {
  padding: 0 10px 10px !important;
  box-sizing: border-box;
  width: 100%;
}

/* Listado de solicitudes en móvil: filas apiladas */
@media (max-width: 680px) {
  .rgqf-quotes-table, .rgqf-quotes-table tbody, .rgqf-quotes-table tr, .rgqf-quotes-table td { display: block; width: 100%; }
  .rgqf-quotes-table thead { display: none; }
  .rgqf-quotes-table tr { border: 1px solid #e5e5e5; margin-bottom: 10px; padding: 6px 12px; background: #fff; }
  .rgqf-quotes-table td { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0 !important; border: 0 !important; border-bottom: 1px dashed #eee !important; text-align: right; }
  .rgqf-quotes-table td:last-child { border-bottom: 0 !important; }
  .rgqf-quotes-table td::before { content: attr(data-label); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #777; text-align: left; flex: 0 0 42%; }
  .rgqf-quotes-table td.rgqf-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .rgqf-quotes-table td.rgqf-actions::before { content: none; }
  .rgqf-quotes-table td.rgqf-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* =====================================================================
 * v1.10.0 — Precio orientativo en la ficha de presupuesto
 * El bloque de precios se oculta en flujo presupuesto (arriba); si el
 * producto tiene precio orientativo, el JS añade body.rgqf-has-price-from
 * y se destapa SOLO el precio (descuentos e "impuestos incluidos" siguen
 * ocultos: no aplican a un precio orientativo).
 * ===================================================================== */
body.rgqf-quote-product.rgqf-has-price-from .product-prices,
body.rgqf-quote-product.rgqf-has-price-from .product-prices .product-price,
body.rgqf-quote-product.rgqf-has-price-from .product-prices .current-price {
  display: block !important;
}
body.rgqf-quote-product.rgqf-has-price-from .product-prices .product-discounts,
body.rgqf-quote-product.rgqf-has-price-from .product-prices .tax-shipping-delivery-label,
body.rgqf-quote-product.rgqf-has-price-from .product-prices .regular-price,
body.rgqf-quote-product.rgqf-has-price-from .product-prices .discount,
body.rgqf-quote-product.rgqf-has-price-from .product-prices .product-unit-price {
  display: none !important;
}
body.rgqf-quote-product.rgqf-has-price-from .product-prices .current-price-value {
  font-size: 1.35rem;
}
.rgqf-price-note {
  margin: .35rem 0 0;
  font-size: .8rem;
  line-height: 1.45;
  color: #6a6a6a;
}

/* =====================================================================
 * v1.10.0 — Avisos por flujo (listados: arriba/abajo; ficha presupuesto)
 * ===================================================================== */
.rgqf-flow-notices { margin: 0 0 1.25rem; }
.rgqf-flow-notices[data-pos="bottom"] { margin: 1.5rem 0 0; }
.rgqf-flow-notices[data-pos="product"] { margin: 1.1rem 0 0; }
.rgqf-flow-notices[data-pos="configurator"] { margin: 0; }
.rgqf-flow-notices .rgqf-flow-notice + .rgqf-flow-notice { margin-top: .6rem; }

.rgqf-flow-notice {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1.1rem;
  background: #faf6f6;
  border: 1px solid #f0e2e2;
  border-left: 3px solid var(--rgqf-primary);
  border-radius: 4px;
}
.rgqf-flow-notice p { margin: 0; font-size: .92rem; line-height: 1.5; color: #333; }
.rgqf-flow-notice .rgqf-notice-icon {
  flex: 0 0 auto;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--rgqf-primary);
  position: relative;
}
.rgqf-flow-notice .rgqf-notice-icon::after {
  content: '?';
  position: absolute; inset: 0;
  color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.4rem; text-align: center;
}
.rgqf-flow-notice.rgqf-notice-quote .rgqf-notice-icon::after { content: '\2709'; font-size: .8rem; }
.rgqf-flow-notice .rgqf-notice-link {
  display: inline-block;
  margin-left: .35rem;
  color: var(--rgqf-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.rgqf-flow-notice .rgqf-notice-link:hover { color: #1a171b; }
@media (max-width: 575px) {
  .rgqf-flow-notice { padding: .7rem .85rem; }
  .rgqf-flow-notice p { font-size: .86rem; }
  .rgqf-flow-notice .rgqf-notice-link { display: block; margin: .3rem 0 0; }
}

/* =====================================================================
 * v1.14.0 — Plazo de entrega en la ficha de compra (bajo el nombre)
 * "🚚 Entrega de 7 a 10 días laborables… (más info)" + detalle plegable.
 * El color llega en línea (--rgqf-delivery-color) desde la configuración.
 * ===================================================================== */
.rgqf-delivery-wrap { margin: .35rem 0 1rem; }
.rgqf-delivery-wrap[data-pos="price"] { margin: .6rem 0 .4rem; }
.rgqf-delivery-wrap[data-pos="cart"] { margin: 1rem 0 0; }
.rgqf-delivery {
  --rgqf-delivery-color: #1E8E3E;
  font-size: .95rem;
  line-height: 1.45;
  color: #333;
  text-align: left;
}
.rgqf-delivery-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .45rem;
  margin: 0;
  font-weight: 500;
}
.rgqf-delivery-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--rgqf-delivery-color);
}
.rgqf-delivery-icon svg { width: 100%; height: 100%; }
.rgqf-delivery-text { color: var(--rgqf-delivery-color); }
.rgqf-delivery-more {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: .92em;
  font-weight: 400;
  color: #6a6a6a;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.rgqf-delivery-more:hover,
.rgqf-delivery-more[aria-expanded="true"] { color: #1a171b; }
.rgqf-delivery-detail {
  margin: .45rem 0 0 1.75rem;
  padding: .6rem .9rem;
  background: #f5faf6;
  border-left: 3px solid var(--rgqf-delivery-color);
  border-radius: 4px;
  font-size: .9rem;
  color: #333;
}
.rgqf-delivery-detail[hidden] { display: none; }
.rgqf-delivery-detail p { margin: 0; }
.rgqf-delivery-detail p + p { margin-top: .3rem; }
.rgqf-delivery-detail a {
  color: var(--rgqf-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.rgqf-delivery-detail a:hover { color: #1a171b; }
@media (max-width: 575px) {
  .rgqf-delivery { font-size: .9rem; }
  .rgqf-delivery-detail { margin-left: 0; font-size: .86rem; }
}

/* =====================================================================
 * v1.11.0 — Formulario de solicitud (paso final del checkout)
 * ===================================================================== */
.rgqf-payment-infos .rgqf-form-title { margin: 1rem 0 .6rem; font-size: 1rem; font-weight: 600; }
.rgqf-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.rgqf-payment-infos .rgqf-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.rgqf-payment-infos .rgqf-req { color: var(--rgqf-primary); }
.rgqf-payment-infos .form-control.is-invalid,
.rgqf-payment-infos .rgqf-field-invalid .form-control { border-color: var(--rgqf-primary) !important; box-shadow: 0 0 0 2px rgba(204, 24, 24, .12); }
.rgqf-form-error { margin: .5rem 0 0; padding: .6rem .8rem; background: #fdf1f1; border-left: 3px solid var(--rgqf-primary); color: #8a1111; font-size: .88rem; }
.rgqf-form-error[hidden] { display: none; }
/* Adjunto */
.rgqf-artwork-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rgqf-artwork-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.rgqf-artwork-btn { margin: 0; cursor: pointer; }
.rgqf-artwork-status { font-size: .86rem; color: #555; }
.rgqf-artwork-status.is-ok { color: #2e7d32; font-weight: 600; }
.rgqf-artwork-status.is-error { color: var(--rgqf-primary); font-weight: 600; }
.rgqf-artwork-status.is-busy { color: #777; font-style: italic; }
.rgqf-artwork-remove { border: 0; background: #eee; color: #444; width: 24px; height: 24px; border-radius: 50%; line-height: 1; cursor: pointer; }
.rgqf-artwork-remove[hidden] { display: none; }
.rgqf-artwork-hint { display: block; margin-top: .3rem; color: #777; font-size: .78rem; }
/* Resumen en la confirmación */
.rgqf-return-summary { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .8rem 0 1rem; font-size: .92rem; }
.rgqf-return-summary dt { font-weight: 600; color: #555; }
.rgqf-return-summary dd { margin: 0; }

/* =====================================================================
 * v1.12.0 — SOLICITUD EXPRÉS (sin registro)
 * Modal propio con prefijo .rgqf-xp-*: no depende del Bootstrap del tema.
 * ===================================================================== */
:root {
  --rgqf-xp-ink: #1a171b;
  --rgqf-xp-line: #dcdcdc;
  --rgqf-xp-soft: #f4f4f4;
  --rgqf-xp-muted: #6b6b6b;
}

.rgqf-xp-dialog, .rgqf-xp-dialog *, .rgqf-xp-dialog *::before, .rgqf-xp-dialog *::after,
.rgqf-xp-cta, .rgqf-xp-cta *, .rgqf-xp-cartbox, .rgqf-xp-cartbox * { box-sizing: border-box; }

/* --- botón en la ficha --- */
.rgqf-xp-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 4px; }
.rgqf-xp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 2px solid var(--rgqf-xp-ink); border-radius: 0;
  background: #fff; color: var(--rgqf-xp-ink); cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease;
}
.rgqf-xp-btn svg { width: 16px; height: 16px; color: var(--rgqf-primary); flex: 0 0 auto; }
.rgqf-xp-btn:hover, .rgqf-xp-btn:focus-visible { background: var(--rgqf-xp-ink); color: #fff; }
.rgqf-xp-btn:focus-visible { outline: 2px solid var(--rgqf-primary); outline-offset: 2px; }
.rgqf-xp-btn-block { width: 100%; }
.rgqf-xp-cta-hint { font-size: .8rem; color: var(--rgqf-xp-muted); }

/* --- bloque del carrito / checkout --- */
.rgqf-xp-cartbox { margin: 14px 0; padding: 14px 16px; background: var(--rgqf-xp-soft); border-left: 3px solid var(--rgqf-primary); }
.rgqf-xp-cartbox p { margin: 0 0 10px; font-size: .88rem; color: var(--rgqf-xp-ink); }

/* --- overlay y diálogo --- */
html.rgqf-xp-open, html.rgqf-xp-open body { overflow: hidden; }
.rgqf-xp-overlay {
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; background: rgba(26, 23, 27, .55); overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.rgqf-xp-dialog {
  position: relative; width: 100%; max-width: 680px; background: #fff; color: var(--rgqf-xp-ink);
  border-top: 4px solid var(--rgqf-primary); box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  font-size: .92rem; line-height: 1.45; text-align: left;
}
.rgqf-xp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 6px; }
.rgqf-xp-head h2, .rgqf-xp-success h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; color: var(--rgqf-xp-ink); text-transform: none; letter-spacing: 0; }
.rgqf-xp-head p { margin: 0; color: var(--rgqf-xp-muted); font-size: .88rem; }
/* v1.13.0 — aviso superior del popup (fondo y color inline desde la configuración) */
.rgqf-xp-notice { display: flex; align-items: center; gap: 10px; margin: 10px 26px 4px; padding: 10px 14px; border-radius: 4px; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.rgqf-xp-notice-icon { flex: 0 0 auto; display: inline-flex; width: 22px; height: 22px; }
.rgqf-xp-notice-icon svg { width: 22px; height: 22px; }
.rgqf-xp-notice-text { flex: 1 1 auto; }
.rgqf-xp-close {
  flex: 0 0 auto; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: var(--rgqf-xp-ink); cursor: pointer;
}
.rgqf-xp-dialog > .rgqf-xp-close { position: absolute; top: 14px; right: 18px; }
.rgqf-xp-close:hover { color: var(--rgqf-primary); }
.rgqf-xp-form { padding: 10px 26px 26px; }

/* producto / líneas */
.rgqf-xp-item { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; padding: 12px; background: var(--rgqf-xp-soft); }
.rgqf-xp-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; flex: 0 0 auto; }
.rgqf-xp-item > div { display: flex; flex-direction: column; min-width: 0; }
.rgqf-xp-item-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rgqf-xp-muted); }
.rgqf-xp-item strong { font-size: .95rem; }
.rgqf-xp-item small { color: var(--rgqf-xp-muted); }
.rgqf-xp-item-cart { flex-direction: column; align-items: stretch; gap: 6px; }
.rgqf-xp-lines { list-style: none; margin: 0; padding: 0; max-height: 190px; overflow-y: auto; }
.rgqf-xp-lines li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #e6e6e6; }
.rgqf-xp-lines li:first-child { border-top: 0; }
.rgqf-xp-lines img { width: 40px; height: 40px; object-fit: contain; background: #fff; }
.rgqf-xp-lines span { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.rgqf-xp-lines b { white-space: nowrap; }
.rgqf-xp-muted { color: var(--rgqf-xp-muted); }

/* campos */
.rgqf-xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.rgqf-xp-wide { grid-column: 1 / -1; }
.rgqf-xp-field { display: flex; flex-direction: column; min-width: 0; }
.rgqf-xp-form > .rgqf-xp-field { margin-top: 14px; }
.rgqf-xp-field > label { margin: 0 0 5px; font-size: .8rem; font-weight: 600; color: var(--rgqf-xp-ink); }
.rgqf-xp-field > label small { font-weight: 400; color: var(--rgqf-xp-muted); }
.rgqf-xp-req { color: var(--rgqf-primary); }
.rgqf-xp-form input[type="text"], .rgqf-xp-form input[type="email"], .rgqf-xp-form input[type="tel"],
.rgqf-xp-form input[type="number"], .rgqf-xp-form select, .rgqf-xp-form textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--rgqf-xp-line); border-radius: 0;
  background: #fff; color: var(--rgqf-xp-ink); font: inherit; font-size: .92rem; box-shadow: none;
}
.rgqf-xp-form textarea { min-height: 84px; resize: vertical; }
.rgqf-xp-form input[readonly] { background: var(--rgqf-xp-soft); color: var(--rgqf-xp-muted); }
.rgqf-xp-form input:focus, .rgqf-xp-form select:focus, .rgqf-xp-form textarea:focus {
  outline: none; border-color: var(--rgqf-xp-ink); box-shadow: 0 0 0 2px rgba(26, 23, 27, .12);
}
.rgqf-xp-field.is-invalid input, .rgqf-xp-field.is-invalid select, .rgqf-xp-field.is-invalid textarea,
.rgqf-xp-field.is-invalid .rgqf-xp-drop { border-color: var(--rgqf-primary); box-shadow: 0 0 0 2px rgba(204, 24, 24, .12); }
.rgqf-xp-err { min-height: 0; font-size: .78rem; color: var(--rgqf-primary); }
.rgqf-xp-err:not(:empty) { margin-top: 4px; }
.rgqf-xp-note { margin: 10px 0 0; font-size: .8rem; color: var(--rgqf-xp-muted); }

/* dirección plegable */
.rgqf-xp-address { margin-top: 16px; border: 1px solid var(--rgqf-xp-line); }
.rgqf-xp-address > summary { padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: .85rem; list-style: none; }
.rgqf-xp-address > summary::-webkit-details-marker { display: none; }
.rgqf-xp-address > summary::before { content: '+'; display: inline-block; width: 18px; color: var(--rgqf-primary); font-weight: 700; }
.rgqf-xp-address[open] > summary::before { content: '–'; }
.rgqf-xp-address > .rgqf-xp-grid { padding: 4px 14px 14px; }

/* archivo */
.rgqf-xp-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 112px; padding: 16px; border: 1px dashed #a8a8a8; background: #fff; text-align: center; cursor: pointer;
  font-weight: 400; transition: border-color .15s ease, background-color .15s ease;
}
.rgqf-xp-drop svg { width: 26px; height: 26px; color: var(--rgqf-xp-ink); }
.rgqf-xp-drop-text { font-size: .88rem; }
.rgqf-xp-drop small { color: var(--rgqf-xp-muted); font-size: .76rem; }
.rgqf-xp-drop:hover, .rgqf-xp-drop.is-over { border-color: var(--rgqf-primary); background: #fdf6f6; }
.rgqf-xp-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rgqf-xp-drop[hidden], .rgqf-xp-file[hidden] { display: none; }
.rgqf-xp-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--rgqf-xp-soft); }
.rgqf-xp-file span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.rgqf-xp-file svg { width: 18px; height: 18px; color: #1e8a3c; flex: 0 0 auto; }
.rgqf-xp-file small { color: var(--rgqf-xp-muted); }
.rgqf-xp-file-remove { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--rgqf-xp-ink); }

/* privacidad, honeypot, acciones */
.rgqf-xp-check > label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: .85rem; cursor: pointer; }
.rgqf-xp-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--rgqf-primary); flex: 0 0 auto; }
.rgqf-xp-check a { color: var(--rgqf-xp-ink); text-decoration: underline; }
.rgqf-xp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rgqf-xp-global { margin: 16px 0 0; padding: 10px 12px; background: #fdf1f1; border-left: 3px solid var(--rgqf-primary); color: #8a1111; font-size: .85rem; }
.rgqf-xp-global[hidden] { display: none; }
.rgqf-xp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }
.rgqf-xp-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 30px;
  border: 0; border-radius: 0; background: var(--rgqf-primary); color: #fff !important; cursor: pointer; text-decoration: none !important;
  font: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.rgqf-xp-submit:hover { background: #a91313; }
.rgqf-xp-submit:disabled { opacity: .7; cursor: progress; }
.rgqf-xp-nocharge { font-size: .8rem; color: var(--rgqf-xp-muted); }

/* éxito */
.rgqf-xp-success { padding: 44px 30px 36px; text-align: center; }
.rgqf-xp-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: #e9f6ed; }
.rgqf-xp-success-icon svg { width: 34px; height: 34px; color: #1e8a3c; }
.rgqf-xp-ref { display: inline-block; margin: 4px 0 12px; padding: 4px 12px; background: var(--rgqf-xp-soft); font-weight: 700; letter-spacing: .04em; }
.rgqf-xp-success p { max-width: 460px; margin-left: auto; margin-right: auto; }
.rgqf-xp-success .rgqf-xp-submit { margin-top: 10px; }

@media (max-width: 575px) {
  .rgqf-xp-overlay { display: block; padding: 0; }
  .rgqf-xp-dialog { max-width: none; min-height: 100%; border-top-width: 3px; box-shadow: none; }
  .rgqf-xp-head { padding: 16px 16px 4px; }
  .rgqf-xp-notice { margin: 8px 16px 2px; font-size: .85rem; }
  .rgqf-xp-form { padding: 8px 16px 24px; }
  .rgqf-xp-grid { grid-template-columns: 1fr; }
  .rgqf-xp-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .rgqf-xp-submit { width: 100%; }
  .rgqf-xp-cta { flex-direction: column; align-items: stretch; }
  .rgqf-xp-cta-hint { text-align: center; }
  .rgqf-xp-success { padding: 56px 18px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .rgqf-xp-btn, .rgqf-xp-drop { transition: none; }
}

/* --- v1.12.1 · colores del logotipo: nº de colores + selector por color --- */
.rgqf-xp-chead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 10px; }
.rgqf-xp-cstep { display: inline-flex; align-items: center; gap: 0; }
.rgqf-xp-cstep > span { margin-right: 10px; font-size: .82rem; color: var(--rgqf-xp-muted); }
.rgqf-xp-cstep button {
  width: 36px; height: 38px; border: 1px solid var(--rgqf-xp-line); background: var(--rgqf-xp-soft);
  color: var(--rgqf-xp-ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.rgqf-xp-cstep button:hover { background: #e9e9e9; }
.rgqf-xp-form .rgqf-xp-cstep input[type="number"] {
  width: 52px; min-height: 38px; height: 38px; padding: 0 4px; text-align: center; border-left: 0; border-right: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.rgqf-xp-cstep input::-webkit-outer-spin-button, .rgqf-xp-cstep input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rgqf-xp-cfull { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 400; cursor: pointer; margin: 0; }
.rgqf-xp-cfull input { width: 16px; height: 16px; accent-color: var(--rgqf-primary); }
.rgqf-xp-crows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.rgqf-xp-crow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rgqf-xp-cnum { flex: 0 0 auto; width: 18px; font-size: .78rem; font-weight: 700; color: var(--rgqf-xp-muted); text-align: right; }
.rgqf-xp-swatch {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: flex-end; justify-content: flex-end;
  width: 54px; height: 42px; margin: 0; border: 1px solid var(--rgqf-xp-line); cursor: pointer;
  background:
    linear-gradient(45deg, #e6e6e6 25%, transparent 25%, transparent 75%, #e6e6e6 75%) 0 0 / 12px 12px,
    linear-gradient(45deg, #e6e6e6 25%, #fff 25%, #fff 75%, #e6e6e6 75%) 6px 6px / 12px 12px;
}
.rgqf-xp-swatch.is-set { background: var(--sw); }
.rgqf-xp-swatch::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px #fff; pointer-events: none; }
.rgqf-xp-swatch svg {
  position: relative; width: 16px; height: 16px; margin: 0 2px 2px 0; padding: 1px;
  background: rgba(255, 255, 255, .92); color: var(--rgqf-xp-ink); border-radius: 2px;
}
.rgqf-xp-swatch:hover, .rgqf-xp-swatch:focus-within { border-color: var(--rgqf-xp-ink); }
.rgqf-xp-swatch input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.rgqf-xp-form .rgqf-xp-ctext { flex: 1 1 auto; min-width: 0; }
.rgqf-xp-chint { display: block; margin-top: 8px; font-size: .76rem; color: var(--rgqf-xp-muted); }
.rgqf-xp-colors.is-full .rgqf-xp-crows, .rgqf-xp-colors.is-full .rgqf-xp-chint { display: none; }
.rgqf-xp-colors.is-full .rgqf-xp-cstep { opacity: .45; pointer-events: none; }
.rgqf-xp-field.is-invalid .rgqf-xp-ctext:placeholder-shown { border-color: var(--rgqf-primary); box-shadow: 0 0 0 2px rgba(204, 24, 24, .12); }
@media (max-width: 575px) {
  .rgqf-xp-crows { grid-template-columns: 1fr; }
}
/* en error, solo se marcan las filas de color vacías */
.rgqf-xp-colors.is-invalid .rgqf-xp-cstep input,
.rgqf-xp-colors.is-invalid input[type="checkbox"],
.rgqf-xp-colors.is-invalid .rgqf-xp-ctext:not(:placeholder-shown) { border-color: var(--rgqf-xp-line); box-shadow: none; }
.rgqf-xp-colors.is-invalid .rgqf-xp-cstep input { border-left: 0; border-right: 0; }

/* --- v1.12.2 · producto + cantidad en dos columnas --- */
.rgqf-xp-dialog label, .rgqf-xp-dialog .rgqf-xp-field > label { text-align: left; } /* el tema centra algunas etiquetas */
.rgqf-xp-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: stretch; margin: 6px 0 18px; }
.rgqf-xp-top .rgqf-xp-item { margin: 0; }
.rgqf-xp-top .rgqf-xp-item strong { overflow-wrap: anywhere; }
.rgqf-xp-top > .rgqf-xp-field { justify-content: center; padding: 10px 14px; background: var(--rgqf-xp-soft); }
.rgqf-xp-top > .rgqf-xp-field input { font-size: 1.05rem; font-weight: 600; }
.rgqf-xp-qty-min { margin-top: 4px; font-size: .76rem; color: var(--rgqf-xp-muted); }
@media (max-width: 575px) {
  /* también en móvil en dos columnas, con la cantidad más estrecha */
  .rgqf-xp-top { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
  .rgqf-xp-top .rgqf-xp-item { gap: 10px; padding: 10px; }
  .rgqf-xp-top .rgqf-xp-item img { width: 48px; height: 48px; }
  .rgqf-xp-top .rgqf-xp-item strong { font-size: .86rem; }
  .rgqf-xp-top > .rgqf-xp-field { padding: 8px 10px; }
}
