/* X Banner comparte el sistema visual de Photocall y añade controles propios. */
.tibor-xbanner-calc [hidden] {
	display: none !important;
}

.tibor-xbanner-calc .tpc-mode .tpc-card {
	flex-basis: 155px;
}

.tibor-xbanner-calc .tpc-mode .tpc-card:first-child {
	flex-basis: 100%;
}

.tpc-xbanner-sizes {
	align-items: stretch;
}

.tpc-xbanner-size-card {
	flex-basis: 160px;
	min-height: 168px;
}

.tpc-xbanner-preview {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 82px;
	border-radius: 9px;
	background: linear-gradient(180deg, #f8fbfe 0%, #edf3f8 100%);
	overflow: hidden;
}

.tpc-xbanner-preview i {
	position: relative;
	z-index: 2;
	display: block;
	height: 62px;
	border: 2px solid var(--tibor-brand);
	border-radius: 2px;
	background: linear-gradient(145deg, #dcecf7 0%, #f1d1bf 50%, #bcd9d7 100%);
	box-shadow: 0 5px 12px rgba(11, 57, 137, .10);
}

.tpc-xbanner-preview b {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 7px;
	width: 56px;
	height: 68px;
	transform: translateX(-50%);
	background:
		linear-gradient(63deg, transparent 48%, #667a8a 49%, #667a8a 51%, transparent 52%),
		linear-gradient(-63deg, transparent 48%, #667a8a 49%, #667a8a 51%, transparent 52%);
}

.tpc-xbanner-preview-60x160 i { width: 24px; }
.tpc-xbanner-preview-70x180 i { width: 25px; }
.tpc-xbanner-preview-80x200 i { width: 26px; }
.tpc-xbanner-preview-90x200 i { width: 29px; }
.tpc-xbanner-preview-120x200 i { width: 38px; }

.tpc-xbanner-size-card[aria-pressed="true"] .tpc-xbanner-preview {
	background: linear-gradient(180deg, rgba(11, 57, 137, .08), rgba(11, 57, 137, .03));
}

.txb-download-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.txb-download {
	display: flex;
	align-items: center;
	flex: 1 1 220px;
	gap: 11px;
	min-height: 70px;
	padding: 12px 14px;
	border: 1.5px solid var(--tpc-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tpc-text);
	text-decoration: none !important;
	transition: border-color .15s, background .15s, transform .06s;
}

.txb-download:hover {
	border-color: var(--tibor-brand);
	background: var(--tpc-brand-soft);
	color: var(--tibor-brand);
}

.txb-download:active {
	transform: translateY(1px);
}

.txb-download > svg {
	flex: none;
	width: 23px;
	height: 23px;
	color: var(--tibor-brand);
}

.txb-download span {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.txb-download b {
	font-size: 13px;
	font-weight: 850;
	line-height: 1.25;
}

.txb-download small {
	color: var(--tpc-muted);
	font-size: 12px;
	line-height: 1.3;
}

.txb-download.is-disabled {
	opacity: .55;
	cursor: not-allowed;
}

.tibor-xbanner-calc button:focus-visible,
.tibor-xbanner-calc a:focus-visible,
.tibor-xbanner-calc [tabindex="0"]:focus-visible {
	outline: 3px solid rgba(11, 57, 137, .28);
	outline-offset: 3px;
}

.tibor-xbanner-calc.is-calculating .tpc-qty-unit,
.tibor-xbanner-calc.is-calculating .tpc-qty-total,
.tibor-xbanner-calc.is-calculating .tpc-total {
	color: transparent;
	border-radius: 6px;
	background: linear-gradient(90deg, #e8eef4 25%, #f7f9fb 50%, #e8eef4 75%);
	background-size: 200% 100%;
	animation: txb-loading 1.1s linear infinite;
}

.tibor-xbanner-calc.is-calculating .tpc-total {
	min-width: 118px;
}

.tibor-xbanner-product .summary {
	position: sticky;
	top: 18px;
	align-self: start;
}

body.tibor-xbanner-product .txb-sticky {
	position: fixed !important;
	inset: auto 0 0 0;
	z-index: 999;
	isolation: isolate;
	background: #fff;
}

body.tibor-xbanner-product .t26-chrome.t26-footer {
	padding-bottom: 96px;
}

body.tibor-xbanner-product .txb-sticky .tvc-add {
	min-width: 220px;
	border-radius: 999px;
	background: var(--tibor-brand, #0b3989);
	color: #fff;
}

body.tibor-xbanner-product .txb-sticky .tvc-add:hover:not(:disabled) {
	background: #012b4e;
}

@keyframes txb-loading {
	to { background-position: -200% 0; }
}

@media (max-width: 980px) {
	body.tibor-xbanner-product.tibor-mobile-menu-open .txb-sticky {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

@media (max-width: 880px) {
	body.tibor-xbanner-product .summary {
		position: static;
		top: auto;
	}
}

@media (max-width: 780px) {
	body.tibor-xbanner-product .woocommerce-tabs ul.tabs {
		flex-wrap: nowrap;
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	body.tibor-xbanner-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
		display: none;
	}

	body.tibor-xbanner-product .woocommerce-tabs ul.tabs li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.tpc-xbanner-size-card,
	.tibor-xbanner-calc .tpc-mode .tpc-card {
		flex-basis: 100%;
	}

	.tpc-xbanner-size-card {
		min-height: 142px;
	}

	.txb-download {
		flex-basis: 100%;
	}

	body.tibor-xbanner-product .t26-chrome.t26-footer {
		padding-bottom: calc(80px + env(safe-area-inset-bottom));
	}

	body.tibor-xbanner-product .txb-sticky {
		padding-bottom: env(safe-area-inset-bottom);
	}

	body.tibor-xbanner-product .txb-sticky .tvc-sticky-inner {
		width: 100%;
		min-height: 64px;
		padding: 8px 16px;
		gap: 12px;
	}

	body.tibor-xbanner-product .txb-sticky .tvc-add {
		flex: 1 1 220px;
		width: auto;
		min-width: 0;
		max-width: 250px;
		margin-left: auto;
		padding: 12px 16px;
		white-space: nowrap;
	}
}

@media (max-width: 520px) {
	body.tibor-xbanner-product .tvd-card > summary,
	body.tibor-xbanner-product .tvf-card > summary {
		gap: 10px;
		padding: 14px;
	}

	body.tibor-xbanner-product .tvd-card-ic,
	body.tibor-xbanner-product .tvf-card-ic {
		width: 38px;
		height: 38px;
	}

	body.tibor-xbanner-product .tvd-card-b,
	body.tibor-xbanner-product .tvf-card-b {
		padding: 0 14px 16px;
	}

	body.tibor-xbanner-product .tvd-side,
	body.tibor-xbanner-product .tvf-side {
		position: static;
		padding: 16px;
	}

	body.tibor-xbanner-product .txb-sticky .tvc-sticky-inner {
		padding-right: 10px;
		padding-left: 10px;
	}

	body.tibor-xbanner-product .txb-sticky .tvc-sticky-p {
		flex: 0 1 42%;
	}

	body.tibor-xbanner-product .txb-sticky .tvc-sticky-n {
		display: none;
	}

	body.tibor-xbanner-product .txb-sticky .tvc-add {
		flex-basis: auto;
		max-width: none;
		min-height: 46px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tibor-xbanner-calc *,
	.tibor-xbanner-calc.is-calculating .tpc-qty-unit,
	.tibor-xbanner-calc.is-calculating .tpc-qty-total,
	.tibor-xbanner-calc.is-calculating .tpc-total {
		animation: none !important;
		transition: none !important;
	}
}


/* ── Fecha de entrega dentro del chip de plazo (19 ago 2026) ──────────────────
   El nombre arriba y el rango debajo, para que se vea qué se está eligiendo.
   Va al FINAL del archivo y sin !important: gana por orden. Borrar este bloque
   entero lo deja exactamente como estaba. */
.tpc-deadline button > span {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
}
.tpc-deadline button small {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	font-weight: 500;
	opacity: .72;
	white-space: nowrap;
}
