/* Packs armables — FEAT-020. Ficha: «Tu pack incluye» (batería incluida + un desplegable por refill).
   Carrito y pago: etiqueta «Precio pack» en la batería y las líneas del pack marcadas. */

.vs-pack {
	--vs-pack-rojo: #E0111B;
	--vs-pack-rojo-h: #B30D16;
	--vs-pack-ok: #1E7E34;
	--vs-pack-ok-suave: #F2FAF4;
	--vs-pack-borde: #CFCFCF;
	--vs-pack-sep: #E7E7E7;
	--vs-pack-gris: #F4F4F4;
	--vs-pack-tx: #111111;
	--vs-pack-tx2: #666666;
	margin: 6px 0 18px;
	width: 100%;
	max-width: 580px;
	color: var(--vs-pack-tx);
}
.vs-pack p { margin: 0; }
.vs-pack__caja { border: 1px solid var(--vs-pack-sep); border-radius: 12px; background: #FFFFFF; overflow: hidden; }
.vs-pack__cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--vs-pack-gris); }
.vs-pack__titulo { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.vs-pack__estado { font-size: 12.5px; font-weight: 700; color: var(--vs-pack-tx2); }
.vs-pack__estado.es-completo { color: var(--vs-pack-ok); }

.vs-pack__fila { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--vs-pack-sep); }
.vs-pack__fila + .vs-pack__fila::before { content: "+"; position: absolute; top: -12px; left: 34px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--vs-pack-sep); display: grid; place-items: center; font-weight: 800; font-size: 14px; line-height: 1; color: var(--vs-pack-tx2); }
.vs-pack__fila--bateria { background: var(--vs-pack-ok-suave); }
.vs-pack__img { width: 64px; height: 76px; display: grid; place-items: center; }
.vs-pack__img img { max-width: 64px; max-height: 76px; width: auto; height: auto; object-fit: contain; }
.vs-pack__foto { animation: vs-pack-entra .25s ease; }
@keyframes vs-pack-entra { from { opacity: 0; transform: translateY(6px); } }
.vs-pack__silueta { width: 30px; height: 70px; border: 2px dashed var(--vs-pack-borde); border-radius: 15px 15px 5px 5px; }
.vs-pack__info { min-width: 0; }
.vs-pack__etq { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px !important; color: var(--vs-pack-tx); }
.vs-pack__etq span { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--vs-pack-tx2); }
.vs-pack__etq .vs-pack__incluida { background: var(--vs-pack-ok); color: #FFFFFF; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.vs-pack__nombre { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.vs-pack__sub { font-size: 12.5px; color: var(--vs-pack-tx2); line-height: 1.35; }
.vs-pack select { width: 100%; max-width: 300px; height: 44px; border: 1px solid var(--vs-pack-borde); border-radius: 4px; background-color: #FFFFFF; padding: 0 10px; text-transform: uppercase; font-size: 13px; color: var(--vs-pack-tx); margin: 0; }
.vs-pack select:focus-visible { outline: 2px solid var(--vs-pack-rojo); outline-offset: 1px; }
.vs-pack__ultimas { font-size: 11.5px; font-weight: 800; color: var(--vs-pack-rojo); margin-top: 4px !important; }
.vs-pack__precio { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.vs-pack__precio del { display: block; color: var(--vs-pack-tx2); font-size: 12px; }
.vs-pack__precio ins { text-decoration: none; color: var(--vs-pack-rojo); font-weight: 700; }
.vs-pack__total { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--vs-pack-sep); background: var(--vs-pack-gris); font-variant-numeric: tabular-nums; font-weight: 800; }
.vs-pack__total del { color: var(--vs-pack-tx2); font-weight: 400; font-size: 14px; margin-right: 4px; }
.vs-pack__total b { font-size: 20px; }

.vs-pack__cta { margin-top: 14px; display: grid; gap: 8px; }
.vs-pack .vs-pack__boton.single_add_to_cart_button { display: block; width: 100% !important; max-width: none !important; height: auto; min-height: 52px; padding: 14px 16px; line-height: 1.3; white-space: normal; font-size: 15px; border-radius: 6px; background: var(--vs-pack-rojo); color: #FFFFFF; text-transform: uppercase; font-weight: 700; }
.vs-pack .vs-pack__boton:hover:not(:disabled) { background: var(--vs-pack-rojo-h); }
.vs-pack .vs-pack__boton:disabled { background: #E9A4A7; opacity: 1; cursor: not-allowed; }
.vs-pack__nota { font-size: 13px; color: var(--vs-pack-tx2); text-align: center; }
.vs-pack__aviso { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; }
.vs-pack__aviso.es-ok { background: #E6F4EA; color: var(--vs-pack-ok); }
.vs-pack__aviso.es-error { background: #FFE5E5; color: var(--vs-pack-rojo); }
.vs-pack__aviso a { color: inherit; text-decoration: underline; }

/* En móvil los contenedores de la plantilla de Porto son más anchos que la pantalla. */
@media (max-width: 767px) {
	.vs-pack { max-width: calc(100vw - 40px); }
}
@media (max-width: 480px) {
	.vs-pack__fila { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
	.vs-pack__img { width: 52px; }
	.vs-pack__img img { max-width: 52px; }
	.vs-pack__fila + .vs-pack__fila::before { left: 26px; }
	.vs-pack__precio { grid-column: 2; text-align: left; }
	.vs-pack__precio del { display: inline; margin-right: 6px; }
	.vs-pack select { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .vs-pack__foto { animation: none; } }

/* Carrito y pago */
.vs-pack-etiqueta { display: inline-block; background: #FFE5E5; color: #E0111B; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.woocommerce-cart-form .vs-pack-linea td.product-price del { display: block; color: #666666; font-size: .9em; }
.woocommerce-cart-form .vs-pack-linea td.product-price ins { text-decoration: none; }
.woocommerce-cart-form .vs-pack-linea td:first-child { box-shadow: inset 3px 0 0 #E0111B; }
/* Un pack, un tachito: cabecera con precio y botón de quitar; el nombre del pack ya no se repite en cada pieza */
.woocommerce-cart-form .vs-pack-cab td { padding: 12px 14px; background: #F4F4F6; box-shadow: inset 3px 0 0 #E0111B; }
.vs-pack-cab__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.vs-pack-cab__nombre { flex: 1 1 180px; font-size: 15px; font-weight: 800; color: #111111; }
.vs-pack-cab__precio { font-size: 15px; color: #111111; white-space: nowrap; }
.vs-pack-cab__precio del { margin-right: 4px; font-size: .85em; font-weight: 400; color: #666666; }
.vs-pack-cab__quitar { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #666666; text-decoration: none; }
.vs-pack-cab__quitar:hover, .vs-pack-cab__quitar:focus-visible { color: #E0111B; }
.vs-pack-cab__quitar svg { width: 18px; height: 18px; }
.woocommerce-cart-form .vs-pack-linea dl.variation { display: none; }
.woocommerce-cart-form .vs-pack-linea .product-thumbnail a { pointer-events: none; }

/* Checkout: el pack como un solo bloque, con lo que incluye (el plugin pinta su cabecera con estilos en línea) */
.vs-pack-co-bloque > div:first-child { border-bottom: 0 !important; margin-bottom: 0 !important; }
.vs-pack-co { margin: 0 0 15px; border: 1px solid #EDEDED; border-radius: 8px; }
.vs-pack-co__titulo { margin: 0; padding: 9px 14px; border-bottom: 1px solid #EDEDED; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #444444; }
.vs-pack-co__fila { display: flex; align-items: center; gap: 12px; padding: 8px 14px; font-size: 13px; line-height: 1.3; }
.vs-pack-co__fila + .vs-pack-co__fila { border-top: 1px solid #F3F3F3; }
.vs-pack-co__fila img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.vs-pack-co__etq { display: block; color: #666666; }
.vs-pack-co__nombre { display: block; font-weight: 700; color: #222222; }
.vs-pack-co__badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: #222222; color: #FFFFFF; font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .6px; vertical-align: middle; }
.vs-pack-co__sabores { display: block; margin-top: 2px; color: #666666; text-align: left; }
