/* Lista de cotización (vler-cotizacion.php / .js). */

/* ---------- Cabecera ---------- */
.vler-cot-cab { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: 14px; border-radius: 50%; color: #001A37; text-decoration: none; }
.vler-cot-cab:hover, .vler-cot-cab:focus-visible { background: #f3f6f9; color: #001A37; }
.vler-cot-cab__n { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #E50000; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.vler-cot-cab__n[hidden] { display: none; }
.ct-header [data-device="mobile"] .vler-cot-cab { margin-right: 6px; }

/* ---------- Selector de piezas ---------- */
.vler-cant { display: inline-flex; align-items: stretch; border: 1.5px solid #d3dbe5; border-radius: 4px; background: #fff; overflow: hidden; }
.vler-cant__btn { width: 40px; border: 0; background: transparent; color: #001A37; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.vler-cant__btn:hover { background: #f3f6f9; }
.vler-cant__n { width: 64px; border: 0 !important; border-inline: 1.5px solid #e3e9f0 !important; border-radius: 0 !important; text-align: center; font-size: 16px; font-weight: 700; color: #001A37; padding: 0 !important; min-height: 0 !important; height: auto !important; -moz-appearance: textfield; appearance: textfield; box-shadow: none !important; }
.vler-cant__n::-webkit-outer-spin-button, .vler-cant__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Ficha ---------- */
.vler-cot-ficha { display: flex; flex-wrap: wrap; gap: 12px; }
.vler-cot-ficha .vler-cant { min-height: 48px; }
.vler-cot-ficha .vler-cot-add { border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 689.98px) { .vler-cot-ficha { width: 100%; flex-wrap: nowrap; } .vler-cot-ficha .vler-cant__n { width: 48px; } .vler-cot-ficha .vler-cot-add { flex: 1; width: auto !important; padding-inline: 12px; } }

/* ---------- Tarjeta del catálogo ---------- */
[data-products] .product .ct-woo-card-actions { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.vler-cot-add--tarjeta { border: 1.5px solid #001A37; background: #fff; color: #001A37; border-radius: 4px; padding: 6px 10px; font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer; font-family: inherit; white-space: nowrap; }
.vler-cot-add--tarjeta:hover { background: #001A37; color: #fff; }
.vler-cot-add--tarjeta.is-en { border-color: #1f9d55; color: #1f7a45; background: #eefaf2; }

/* ---------- Aviso ---------- */
.vler-cot-aviso { position: fixed; left: 50%; bottom: 24px; z-index: 10000; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; width: max-content; max-width: calc(100vw - 110px); padding: 14px 20px; border-radius: 6px; background: #001A37; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 28px rgba(0, 26, 55, .3); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.vler-cot-aviso.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.vler-cot-aviso__ver { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.vler-cot-aviso__ver:hover { color: #fff; }
@media (max-width: 689.98px) {
	.vler-cot-aviso { left: 16px; right: 88px; bottom: 22px; width: auto; max-width: none; transform: translateY(20px); font-size: 13px; padding: 12px 14px; }
	.vler-cot-aviso.is-on { transform: none; }
}

/* ---------- Página "Mi cotización" ---------- */
.vler-cot { max-width: 920px; margin: 0 auto; }
.vler-cot-pagina .vler-cot { max-width: none; }
.vler-cot__cargando, .vler-cot__vacia { text-align: center; color: #5b6b7f; }
.vler-cot__vacia { padding: 40px 20px; background: #f3f6f9; border-radius: 8px; }
.vler-cot__vacia p { margin: 0 0 10px; }
.vler-cot__vacia .vler-cta { margin-top: 10px; }
.vler-cot__items { list-style: none; margin: 0 !important; padding: 0 !important; border-top: 1px solid #e3e9f0; }
.vler-cot__item { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 16px; margin: 0 !important; padding: 14px 0; border-bottom: 1px solid #e3e9f0; }
.vler-cot__img { display: block; width: 64px; height: 64px; border-radius: 4px; background: #f3f6f9; overflow: hidden; }
.vler-cot__img img { width: 100%; height: 100%; object-fit: contain; }
.vler-cot__nombre { display: block; font-weight: 700; color: #001A37; text-decoration: none; line-height: 1.3; }
.vler-cot__nombre:hover { color: #E50000; }
.vler-cot__pres { display: block; font-size: 13px; color: #5b6b7f; margin-top: 2px; }
.vler-cot__item .vler-cant { height: 40px; }
.vler-cot__quita { border: 0; background: none; color: #5b6b7f; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px; font-family: inherit; }
.vler-cot__quita:hover { color: #E50000; }
.vler-cot__resumen { margin: 14px 0 0; font-size: 14px; color: #5b6b7f; }
.vler-cot__form { margin-top: 40px; padding: 28px; background: #f3f6f9; border-radius: 8px; }
.vler-cot__form[hidden] { display: none; }
.vler-cot__titulo { margin: 0 0 18px !important; font-size: 24px !important; }
.vler-cot__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.vler-cot__campo { margin: 0 0 16px !important; }
.vler-cot__campo label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #001A37; }
.vler-cot__campo label span { color: #E50000; }
.vler-cot__campo input, .vler-cot__campo textarea { width: 100%; background: #fff; }
.vler-cot__trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vler-cot__aviso { margin: 0 0 14px !important; padding: 10px 14px; border-radius: 4px; background: #fdecec; color: #a40000; font-size: 14px; }
.vler-cot__aviso[hidden] { display: none; }
.vler-cot__envios { display: flex; flex-wrap: wrap; gap: 12px; }
.vler-cot__enviar { border: 0; cursor: pointer; font-family: inherit; }
.vler-cot__enviar[disabled] { opacity: .7; cursor: wait; }
.vler-cot__nota { margin: 14px 0 0 !important; font-size: 13px; color: #5b6b7f; }
.vler-cot__listo { padding: 40px 28px; text-align: center; background: #eefaf2; border-radius: 8px; }
.vler-cot__listo h2 { margin: 0 0 10px !important; font-size: 26px !important; color: #001A37; }
@media (max-width: 689.98px) {
	.vler-cot__item { grid-template-columns: 56px 1fr; gap: 10px 12px; }
	.vler-cot__img { width: 56px; height: 56px; grid-row: span 2; }
	.vler-cot__item .vler-cant { justify-self: start; }
	.vler-cot__item { position: relative; }
	.vler-cot__quita { position: absolute; right: 0; bottom: 18px; }
	.vler-cot__campos { grid-template-columns: 1fr; }
	.vler-cot__form { padding: 20px 16px; }
	.vler-cot__envios .vler-cta { width: 100%; }
}

/* Cabecera de la página (contenido de la página 981: título + texto + [vler_cotizacion]) */
.entry-content > .vler-cot-pagina { max-width: 920px !important; width: calc(100% - 32px); margin: 0 auto !important; padding: 64px 0 96px !important; }
.vler-cot-pagina > h1 { margin: 0 0 12px !important; font-size: 44px !important; line-height: 1.1 !important; color: #001A37; }
.vler-cot-intro { margin: 0 0 32px !important; font-size: 17px; color: #5b6b7f; max-width: 680px; }
@media (max-width: 689.98px) {
	.entry-content > .vler-cot-pagina { padding: 32px 0 64px !important; }
	.vler-cot-pagina > h1 { font-size: 32px !important; }
	.vler-cot-intro { font-size: 15px; margin-bottom: 24px !important; }
}
