/* Confeiruña · Presupuestos. Botón con los colores que tenía el de YITH (azul #0066b4; al pasar, #044a80); lo demás lo pone Divi. */
.itb-presu-anadir-caja { display: inline-block; vertical-align: middle; }
li.product .itb-presu-anadir-caja { display: block; }
/* ponytail: !important porque en los listados Divi pinta los botones con reglas más fuertes que esta hoja (medido el 25-11-2026). */
.itb-presu-anadir.button { background: #0066b4 !important; border-color: #0066b4 !important; color: #fff !important; }
.itb-presu-anadir.button:hover,
.itb-presu-anadir.button:focus-visible { background: #044a80 !important; border-color: #044a80 !important; color: #fff !important; }
.itb-presu-anadir.button:focus-visible { outline: 2px solid #044a80; outline-offset: 2px; }
.itb-presu-aviso { clear: both; display: block; width: 100%; margin: 10px 0 0; padding: 0; }
.itb-presu-aviso:empty { margin: 0; }
.itb-presu-aviso[hidden], .itb-presu [hidden], .itb-presu-anadir[hidden] { display: none !important; }

.itb-presu .return-to-shop { margin: 0 0 20px; }
.itb-presu-tabla { margin: 0 0 40px; }
.itb-presu-tabla td { vertical-align: middle; }
.itb-presu-tabla .product-remove { width: 40px; text-align: center; }
.itb-presu-tabla .product-thumbnail { width: 120px; }
.itb-presu-tabla .product-thumbnail img { display: block; width: 100px; max-width: none; height: auto; }
.itb-presu-tabla .product-quantity { width: 110px; }
.itb-presu-tabla .product-quantity .quantity { float: none; margin: 0; }
.itb-presu-tabla .product-quantity input.qty { width: 90px; text-align: center; }
.itb-presu-detalle { font-size: .9em; margin-top: 4px; }
.itb-presu-quitar { border: 0; background: none; color: #b81c23; font-size: 1.6em; line-height: 1; cursor: pointer; padding: 4px 8px; }
.itb-presu-quitar:hover, .itb-presu-quitar:focus-visible { color: #fff; background: #b81c23; border-radius: 50%; }

.itb-presu-envio h3 { margin: 0 0 20px; }
.itb-presu-envio .itb-presu-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.woocommerce .itb-presu-envio .itb-presu-campos .form-row { float: none; width: auto; margin: 0 0 16px; padding: 0; }
.itb-presu-envio .itb-presu-ancho { grid-column: 1 / -1; }
.itb-presu-envio label { display: block; }
.itb-presu-envio .input-text { width: 100%; box-sizing: border-box; }
.itb-presu-envio .itb-presu-privacidad label { display: flex; gap: 8px; align-items: baseline; }
.itb-presu-envio .itb-presu-nota { font-size: .9em; }
.itb-presu-web { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 767px) {
	.itb-presu-envio .itb-presu-campos { grid-template-columns: minmax(0, 1fr); }
	/* Cada línea, una rejilla: quitar | foto | nombre, con la cantidad debajo del nombre. Con cuatro columnas el nombre tenía 132 px y
	   28 palabras del catálogo no cabían; así tiene 204 px y la más ancha mide 198 (Josefin Sans 14 px, medido el 25-11-2026). */
	.itb-presu-tabla, .itb-presu-tabla tbody { display: block; }
	.itb-presu-tabla thead { display: none; } /* como YITH en móvil: quitar y cantidad ya llevan su nombre para lectores de pantalla */
	.itb-presu-tabla tr { display: grid; grid-template-columns: 28px 42px minmax(0, 1fr); grid-template-areas: "quitar foto nombre" "quitar foto cantidad"; column-gap: 6px; padding: 10px 6px; border-top: 1px solid rgba(0, 0, 0, .1); }
	.itb-presu-tabla tr:first-child { border-top: 0; }
	.woocommerce table.shop_table.itb-presu-tabla td { display: block; width: auto; padding: 0; border: 0; }
	.itb-presu-tabla .product-remove { grid-area: quitar; align-self: center; }
	.itb-presu-tabla .itb-presu-quitar { padding: 4px; }
	.itb-presu-tabla .product-thumbnail { grid-area: foto; align-self: center; }
	.itb-presu-tabla .product-thumbnail img { width: 42px; }
	.itb-presu-tabla .product-name { grid-area: nombre; font-size: 14px; overflow-wrap: anywhere; }
	.itb-presu-tabla .product-quantity { grid-area: cantidad; margin-top: 8px; }
	.itb-presu-tabla .product-quantity input.qty { width: 80px; }
}
