/* Tibor - ficha y calculadora Foam / carton pluma. */
.tibor-foam-calc {
	--tfc-brand: #0b3989;
	--tfc-brand-hover: #012b4e;
	--tfc-brand-soft: rgba(11, 57, 137, .08);
	--tfc-brand-line: rgba(11, 57, 137, .24);
	--tfc-border: #dce5ef;
	--tfc-muted: #667a8a;
	--tfc-soft: #f5f8fb;
	--tfc-text: #1f2d3a;
	--tfc-danger: #b42318;
	box-sizing: border-box;
	max-width: 560px;
	color: var(--tfc-text);
	font-family: 'Inter', Arial, sans-serif;
}

.tibor-foam-calc *,
.tibor-foam-calc *::before,
.tibor-foam-calc *::after {
	box-sizing: border-box;
}

.tfc-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.tfc-head-ic {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--tfc-brand-soft);
	color: var(--tfc-brand);
	flex: none;
}

.tfc-head svg,
.tfc-segment svg,
.tfc-add svg,
.tfc-drop svg,
.tfc-sticky svg {
	width: 20px;
	height: 20px;
}

.tfc-head h2 {
	margin: 0;
	color: var(--tfc-brand);
	font-family: 'Sora', 'Inter', Arial, sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
}

.tfc-head p {
	margin: 3px 0 0;
	color: var(--tfc-muted);
	font-size: 14px;
	line-height: 1.4;
}

.tfc-field {
	margin-bottom: 18px;
}

.tfc-field > label,
.tfc-accessory-position > label,
.tfc-accessory-count-row > label {
	display: block;
	margin-bottom: 8px;
	color: var(--tfc-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tfc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tfc-input {
	display: flex;
	align-items: center;
	min-height: 46px;
	border: 1.5px solid var(--tfc-border);
	border-radius: 9px;
	background: #fff;
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}

.tfc-input:focus-within {
	border-color: var(--tfc-brand);
	box-shadow: 0 0 0 3px var(--tfc-brand-soft);
}

.tfc-input input {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	border: 0;
	outline: 0;
	background: #fff;
	color: var(--tfc-brand);
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	padding: 0 12px;
}

.tfc-input span {
	align-self: stretch;
	display: inline-flex;
	align-items: center;
	border-left: 1px solid var(--tfc-border);
	color: var(--tfc-muted);
	font-size: 13px;
	font-weight: 800;
	padding: 0 12px;
}

.tfc-helper {
	margin: -9px 0 18px;
	color: var(--tfc-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

.tfc-formats {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.tfc-formats button,
.tfc-segment button,
.tfc-card,
.tfc-qty-row,
.tfc-qty-toggle,
.tfc-browse,
.tfc-add {
	font-family: inherit;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s, transform .06s, opacity .15s;
}

.tfc-formats button {
	min-height: 36px;
	border: 1px solid var(--tfc-border);
	border-radius: 8px;
	background: #fff;
	color: #42566a;
	font-size: 12px;
	font-weight: 800;
	padding: 8px 11px;
}

.tfc-formats button:hover,
.tfc-formats button[aria-pressed="true"] {
	border-color: var(--tfc-brand);
	background: var(--tfc-brand-soft);
	color: var(--tfc-brand);
}

.tfc-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
	gap: 10px;
}

.tfc-accessory-scroll {
	max-width: 100%;
	overflow-x: auto;
	padding: 1px 1px 8px;
	scrollbar-color: #9bb7d7 #edf3f9;
	scrollbar-width: thin;
}

.tfc-accessory-scroll::-webkit-scrollbar {
	height: 7px;
}

.tfc-accessory-scroll::-webkit-scrollbar-track {
	border-radius: 8px;
	background: #edf3f9;
}

.tfc-accessory-scroll::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background: #9bb7d7;
}

.tfc-card-grid.tfc-accessory {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: minmax(150px, 1fr);
}

.tfc-accessory .tfc-card {
	width: 150px;
}

.tfc-accessory .tfc-card.is-unavailable {
	cursor: not-allowed;
	opacity: .42;
}

.tfc-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	min-height: 132px;
	border: 1.5px solid var(--tfc-border);
	border-radius: 10px;
	background: #fff;
	color: #33475b;
	padding: 13px;
	text-align: left;
}

.tfc-card:hover {
	border-color: var(--tfc-brand);
}

.tfc-card[aria-pressed="true"] {
	border-color: var(--tfc-brand);
	background: var(--tfc-brand-soft);
	box-shadow: inset 0 0 0 1px var(--tfc-brand);
	color: var(--tfc-brand);
}

.tfc-card:focus-visible,
.tfc-formats button:focus-visible,
.tfc-segment button:focus-visible,
.tfc-qty-row:focus-visible,
.tfc-qty-toggle:focus-visible,
.tfc-add:focus-visible,
.tfc-drop:focus-visible {
	outline: 3px solid rgba(11, 57, 137, .28);
	outline-offset: 2px;
}

.tfc-card:active,
.tfc-formats button:active,
.tfc-segment button:active,
.tfc-qty-row:active,
.tfc-browse:active,
.tfc-add:active:not(:disabled) {
	transform: translateY(1px);
}

.tfc-card > span:not(.tfc-diagram) {
	font-size: 14px;
	font-weight: 850;
	line-height: 1.25;
}

.tfc-card small {
	display: block;
	color: var(--tfc-muted);
	font-size: 11px;
	font-weight: 650;
	line-height: 1.35;
}

.tfc-diagram {
	position: relative;
	display: block;
	width: 82px;
	height: 58px;
	flex: none;
}

.tfc-option-image {
	display: block;
	width: 100%;
	max-width: 112px;
	height: 78px;
	flex: none;
	border-radius: 4px;
	background: #fff;
	object-fit: contain;
}

.tfc-accessory .tfc-option-image {
	max-width: none;
	height: 88px;
}

.tfc-board i {
	position: absolute;
	left: 8px;
	top: 7px;
	width: 58px;
	height: 40px;
	border: 2px solid #8db4e3;
	border-radius: 3px;
	background: #f8fbff;
	box-shadow: inset 0 0 0 4px #fff;
}

.tfc-board i:nth-child(2),
.tfc-board i:nth-child(3) {
	display: none;
}

.tfc-board--5 i:nth-child(2),
.tfc-board--10 i:nth-child(2),
.tfc-board--10 i:nth-child(3),
.tfc-board--19 i:nth-child(2),
.tfc-board--19 i:nth-child(3) {
	display: block;
}

.tfc-board--5 i:first-child,
.tfc-board--10 i:first-child,
.tfc-board--19 i:first-child {
	transform: translate(8px, 6px);
}

.tfc-board--5 i:nth-child(2),
.tfc-board--10 i:nth-child(2),
.tfc-board--19 i:nth-child(2) {
	transform: translate(4px, 3px);
}

.tfc-card[aria-pressed="true"] .tfc-board i {
	border-color: var(--tfc-brand);
}

.tfc-faces i {
	position: absolute;
	top: 7px;
	width: 47px;
	height: 40px;
	border: 2px solid #9abbe0;
	border-radius: 3px;
	background: #fff;
}

.tfc-faces i:first-child {
	left: 5px;
}

.tfc-faces i:last-child {
	right: 4px;
	transform: translateY(7px);
}

.tfc-faces--front i:last-child {
	display: none;
}

.tfc-faces--double_same i::after,
.tfc-faces--double_diff i::after {
	content: '';
	position: absolute;
	left: 8px;
	right: 8px;
	top: 11px;
	height: 2px;
	background: var(--tfc-brand);
	box-shadow: 0 7px 0 #b5c9e1;
}

.tfc-faces--double_diff i:last-child::after {
	left: 5px;
	right: 15px;
	box-shadow: 8px 7px 0 #b5c9e1;
}

.tfc-card[aria-pressed="true"] .tfc-faces i {
	border-color: var(--tfc-brand);
}

.tfc-finish,
.tfc-shape,
.tfc-accessory-ic {
	width: 74px;
	height: 54px;
	border: 2px solid #a9c3df;
	border-radius: 4px;
	background: #fff;
}

.tfc-finish--none::after {
	content: '';
	position: absolute;
	left: 13px;
	right: 13px;
	top: 25px;
	height: 2px;
	background: #95b3d4;
}

.tfc-finish--gloss::before {
	content: '';
	position: absolute;
	inset: 6px 8px;
	background: linear-gradient(125deg, transparent 35%, rgba(90, 150, 220, .34) 36%, rgba(90, 150, 220, .34) 48%, transparent 49%);
}

.tfc-finish--gloss::after {
	content: '';
	position: absolute;
	right: 9px;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7eb5ec;
	box-shadow: -8px 10px 0 -2px #b7d2ec;
}

.tfc-shape--rect {
	width: 64px;
}

.tfc-shape--custom {
	width: 62px;
	border-radius: 50% 50% 45% 45% / 42% 50% 38% 55%;
	transform: rotate(-5deg);
}

.tfc-accessory-ic--none::after {
	content: '';
	position: absolute;
	left: 13px;
	right: 13px;
	top: 25px;
	height: 2px;
	background: #95b3d4;
}

.tfc-accessory-ic--hanger::before {
	content: '';
	position: absolute;
	left: 26px;
	top: 8px;
	width: 20px;
	height: 22px;
	border: 3px solid var(--tfc-brand);
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
}

.tfc-accessory-ic--hanger::after {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 10px;
	height: 3px;
	background: #99b8dc;
}

.tfc-accessory-ic--holes::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 7px;
	width: 7px;
	height: 7px;
	border: 2px solid var(--tfc-brand);
	border-radius: 50%;
	box-shadow: 46px 0 0 -2px #fff, 46px 0 0 0 var(--tfc-brand), 0 31px 0 -2px #fff, 0 31px 0 0 var(--tfc-brand), 46px 31px 0 -2px #fff, 46px 31px 0 0 var(--tfc-brand);
}

.tfc-accessory-ic--adhesive::before {
	content: '';
	position: absolute;
	left: 17px;
	top: 12px;
	width: 34px;
	height: 25px;
	border: 2px solid #6f7d8a;
	background: #eef2f5;
	box-shadow: 5px 5px 0 #c8d0d8;
	transform: rotate(-10deg);
}

.tfc-accessory-ic--adhesive::after {
	content: '';
	position: absolute;
	left: 29px;
	top: 20px;
	width: 8px;
	height: 8px;
	border: 2px solid #687581;
	border-radius: 50%;
	background: #fff;
	box-shadow: 12px 7px 0 -2px #fff, 12px 7px 0 0 #687581;
}

.tfc-accessory-ic--double_tape::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 13px;
	width: 43px;
	height: 28px;
	border: 3px solid #383d43;
	background: #5b6168;
	box-shadow: -4px 4px 0 #34393e, -8px 8px 0 #4a5056;
	transform: rotate(-5deg);
}

.tfc-accessory-ic--double_tape::after {
	content: '';
	position: absolute;
	left: 28px;
	top: 10px;
	width: 31px;
	height: 34px;
	border: 3px solid #3e444a;
	background: #c58a2c;
	transform: rotate(-5deg);
}

.tfc-accessory-ic--adjustable::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 7px;
	width: 47px;
	height: 41px;
	background: #6f7b86;
	clip-path: polygon(0 55%, 82% 0, 82% 100%);
}

.tfc-accessory-ic--adjustable::after {
	content: '';
	position: absolute;
	left: 20px;
	top: 13px;
	width: 33px;
	height: 29px;
	background: #fff;
	clip-path: polygon(0 55%, 78% 0, 78% 100%);
}

.tfc-accessory-ic--spacers::before {
	content: '';
	position: absolute;
	left: 13px;
	top: 17px;
	width: 46px;
	height: 24px;
	border: 2px solid #7b858e;
	background: #eef1f3;
	transform: rotate(18deg);
}

.tfc-accessory-ic--spacers::after {
	content: '';
	position: absolute;
	left: 22px;
	top: 5px;
	width: 10px;
	height: 10px;
	border: 2px solid #626d77;
	border-radius: 50%;
	background: #aeb6bd;
	box-shadow: 24px 32px 0 -2px #aeb6bd, 24px 32px 0 0 #626d77;
}

.tfc-card[aria-pressed="true"] .tfc-finish,
.tfc-card[aria-pressed="true"] .tfc-shape,
.tfc-card[aria-pressed="true"] .tfc-accessory-ic {
	border-color: var(--tfc-brand);
}

.tfc-cut-note {
	margin: 10px 0 0;
	border: 1px solid var(--tfc-brand-line);
	border-radius: 9px;
	background: var(--tfc-brand-soft);
	color: #3e5874;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.45;
	padding: 11px 12px;
}

.tfc-accessory-details {
	margin-top: 14px;
	border-top: 1px solid var(--tfc-border);
	padding-top: 14px;
}

.tfc-accessory-position {
	margin-bottom: 16px;
}

.tfc-position-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(118px, 1fr));
	gap: 8px;
	overflow-x: auto;
	padding: 1px 1px 7px;
}

.tfc-position-card {
	display: flex;
	min-width: 118px;
	min-height: 126px;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	border: 1.5px solid var(--tfc-border);
	border-radius: 8px;
	background: #fff;
	color: #36506a;
	cursor: pointer;
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	padding: 11px;
	text-align: left;
}

.tfc-position-card:hover,
.tfc-position-card[aria-pressed="true"] {
	border-color: var(--tfc-brand);
	color: var(--tfc-brand);
}

.tfc-position-card[aria-pressed="true"] {
	background: var(--tfc-brand-soft);
	box-shadow: inset 0 0 0 1px var(--tfc-brand);
}

.tfc-position-card:focus-visible {
	outline: 3px solid rgba(11, 57, 137, .28);
	outline-offset: 2px;
}

.tfc-position-card[hidden] {
	display: none;
}

.tfc-position-ic {
	position: relative;
	display: block;
	width: 66px;
	height: 58px;
	border: 2px solid #a7bdd3;
	background: #fff;
}

.tfc-position-ic::after {
	content: '';
	position: absolute;
	background: var(--tfc-brand);
}

.tfc-position-ic--corners::after {
	inset: -2px auto auto -2px;
	width: 8px;
	height: 8px;
	box-shadow: 58px 0 0 var(--tfc-brand), 0 50px 0 var(--tfc-brand), 58px 50px 0 var(--tfc-brand);
}

.tfc-position-ic--all_sides {
	box-shadow: inset 0 0 0 6px #b9c9d9;
}

.tfc-position-ic--top_bottom::after {
	left: -2px;
	right: -2px;
	top: -2px;
	height: 7px;
	box-shadow: 0 51px 0 var(--tfc-brand);
}

.tfc-position-ic--left_right::after {
	left: -2px;
	top: -2px;
	bottom: -2px;
	width: 7px;
	box-shadow: 59px 0 0 var(--tfc-brand);
}

.tfc-position-ic--top::after {
	left: -2px;
	right: -2px;
	top: -2px;
	height: 7px;
}

.tfc-position-ic--bottom::after {
	left: -2px;
	right: -2px;
	bottom: -2px;
	height: 7px;
}

.tfc-accessory-count-row .tfc-input {
	max-width: 240px;
}

.tfc-accessory-count-row .tfc-input input[readonly] {
	background: #f4f7fb;
	cursor: not-allowed;
}

.tfc-count-note {
	display: block;
	margin-top: 7px;
	color: var(--tfc-muted);
	font-size: 11px;
	font-weight: 650;
}

.tfc-segment {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tfc-plazo {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tfc-segment button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: 46px;
	border: 1.5px solid var(--tfc-border);
	border-radius: 9px;
	background: #fff;
	color: #33475b;
	font-size: 13px;
	font-weight: 800;
	padding: 11px 10px;
}

.tfc-segment button:hover,
.tfc-segment button[aria-pressed="true"] {
	border-color: var(--tfc-brand);
	color: var(--tfc-brand);
}

.tfc-segment button[aria-pressed="true"] {
	background: var(--tfc-brand-soft);
	box-shadow: inset 0 0 0 1px var(--tfc-brand);
}

.tfc-qty-table {
	border: 1px solid var(--tfc-border);
	border-radius: 12px;
	background: #f8fbfe;
	box-shadow: 0 10px 26px rgba(11, 57, 137, .07);
	padding: 10px;
}

.tfc-qty-head,
.tfc-qty-row {
	display: grid;
	grid-template-columns: minmax(124px, 1.1fr) minmax(92px, .85fr) minmax(92px, .85fr);
	align-items: center;
	gap: 10px;
	width: 100%;
}

.tfc-qty-head {
	min-height: 34px;
	color: #7b8ba0;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	padding: 0 12px 6px;
	text-transform: uppercase;
}

.tfc-qty-row {
	min-height: 56px;
	margin-top: 8px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
	padding: 0 12px;
	text-align: left;
}

.tfc-qty-row:hover {
	border-color: var(--tfc-brand-line);
}

.tfc-qty-row.is-selected {
	border-color: var(--tfc-brand);
	background: var(--tfc-brand-soft);
	box-shadow: inset 4px 0 0 var(--tfc-brand), 0 8px 18px rgba(11, 57, 137, .09);
}

.tfc-qty-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tfc-text);
	font-size: 15px;
	font-weight: 900;
	line-height: 1.1;
}

.tfc-qty-label em {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 18px;
	border-radius: 999px;
	background: var(--tfc-brand);
	color: #fff;
	font-size: 9px;
	font-style: normal;
	font-weight: 900;
	letter-spacing: .04em;
	padding: 0 7px;
	text-transform: uppercase;
}

.tfc-qty-unit,
.tfc-qty-total {
	color: var(--tfc-brand);
	font-size: 15px;
	font-weight: 900;
	text-align: right;
	white-space: nowrap;
}

.tfc-qty-total {
	font-size: 16px;
}

.tfc-qty-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 42px;
	margin-top: 8px;
	border: 0;
	border-radius: 9px;
	background: #eaf1f8;
	color: var(--tfc-brand);
	font-size: 13px;
	font-weight: 800;
	padding: 0 14px;
	text-align: left;
}

.tfc-qty-toggle span {
	font-size: 18px;
	line-height: 1;
}

.tibor-foam-calc.is-qty-collapsed .tfc-qty-row:nth-child(n+6) {
	display: none;
}

.tibor-foam-calc.is-qty-collapsed .tfc-qty-toggle span {
	transform: rotate(180deg);
}

.tfc-upload {
	margin-top: 24px;
}

.tfc-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
	align-items: center;
	gap: 7px;
	margin: 2px 0 14px;
}

.tfc-steps > i {
	display: block;
	height: 2px;
	border-radius: 999px;
	background: #c9d9ec;
}

.tfc-step {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.tfc-step span {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid #c9d9ec;
	border-radius: 50%;
	background: #eef4f9;
	color: #6b7b95;
	flex: none;
	font-size: 14px;
	font-weight: 900;
}

.tfc-step b {
	min-width: 0;
	color: #667a8a;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.25;
}

.tfc-step.is-active span {
	border-color: var(--tfc-brand);
	background: #fff;
	color: var(--tfc-brand);
	box-shadow: 0 0 0 3px var(--tfc-brand-soft);
}

.tfc-step.is-active b {
	color: var(--tfc-brand);
}

.tfc-drop {
	display: grid;
	place-items: center;
	min-height: 188px;
	border: 1.5px dashed #cbd8e7;
	border-radius: 12px;
	background: var(--tfc-soft);
	cursor: pointer;
	padding: 26px 20px 28px;
	text-align: center;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.tfc-drop:hover,
.tfc-drop.is-drag {
	border-color: var(--tfc-brand);
	background: var(--tfc-brand-soft);
	box-shadow: 0 12px 28px rgba(11, 57, 137, .08);
}

.tfc-drop-ic {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #fff;
	color: var(--tfc-brand);
	box-shadow: 0 8px 22px rgba(11, 57, 137, .14);
}

.tibor-foam-calc .tfc-drop-ic svg {
	display: block !important;
	width: 28px !important;
	height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
}

.tfc-drop-main {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 100%;
}

.tfc-drop-main b {
	color: var(--tfc-text);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.25;
}

.tfc-drop-main span,
.tfc-drop small {
	color: var(--tfc-muted);
	font-size: 13px;
}

.tfc-drop small {
	display: block;
	margin-top: 14px;
	font-weight: 700;
}

.tfc-browse {
	border: 0;
	border-radius: 999px;
	background: var(--tfc-brand);
	box-shadow: 0 8px 18px rgba(11, 57, 137, .18);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	padding: 12px 22px;
}

.tfc-browse:hover {
	background: var(--tfc-brand-hover);
}

.tfc-files {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 10px 0 0;
	padding: 0;
}

.tfc-file {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--tfc-border);
	border-radius: 9px;
	background: #f8fbfe;
	padding: 10px 12px;
}

.tfc-file-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--tfc-brand);
	font-size: 13px;
	font-weight: 800;
}

.tfc-file button {
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--tfc-danger);
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 6px;
}

.tfc-file button:hover {
	background: #fbeae7;
}

.tfc-provisional,
.tfc-min-warning {
	margin: 0 0 18px;
	border: 1px solid #efd59a;
	border-radius: 8px;
	background: #fff9e9;
	color: #6d4b08;
	font-size: 13px;
	line-height: 1.45;
	padding: 10px 12px;
}

.tfc-min-warning {
	margin-top: -8px;
	margin-bottom: 18px;
}

.tfc-breakdown {
	display: grid;
	gap: 0;
	margin-top: 18px;
	border: 1px solid var(--tfc-border);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.tfc-breakdown > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
	border-bottom: 1px solid var(--tfc-border);
	color: var(--tfc-muted);
	font-size: 12px;
	padding: 8px 12px;
}

.tfc-breakdown > div:last-child {
	border-bottom: 0;
}

.tfc-breakdown strong {
	color: var(--tfc-brand);
	font-size: 13px;
}

.tfc-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0 14px;
	border: 1px solid var(--tfc-border);
	border-radius: 12px;
	background: var(--tfc-soft);
	padding: 16px;
}

.tfc-price > span {
	display: grid;
	gap: 3px;
	color: var(--tfc-muted);
	font-size: 13px;
	font-weight: 750;
}

.tfc-net {
	color: #758399;
	font-size: 11px;
	font-weight: 650;
}

.tfc-total {
	color: var(--tfc-brand);
	font-size: 29px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

.tfc-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--tfc-brand);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	padding: 15px 26px;
}

.tfc-add:hover:not(:disabled) {
	background: var(--tfc-brand-hover);
}

.tfc-add:disabled {
	background: var(--tfc-brand);
	cursor: not-allowed;
	opacity: .58;
}

.tfc-msg {
	min-height: 20px;
	margin: 10px 0 0;
	color: var(--tfc-danger);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.4;
}

.tfc-msg.is-ok,
.tfc-msg.is-info {
	color: var(--tfc-brand);
}

.tfc-msg.is-warning {
	color: #7a4b00;
}

.tibor-foam-calc.is-calculating .tfc-total,
.tibor-foam-calc.is-calculating .tfc-qty-unit,
.tibor-foam-calc.is-calculating .tfc-qty-total {
	opacity: .45;
}

body.tibor-foam-product {
	padding-bottom: 0;
}

body.tibor-foam-product .t26-chrome.t26-footer {
	padding-bottom: 96px;
}

body.tibor-foam-product .tfc-sticky {
	position: fixed !important;
	inset: auto 0 0 0;
	z-index: 999;
	isolation: isolate;
	background: #fff;
}

body.tibor-foam-product .tfc-sticky .tvc-add {
	min-width: 220px;
	border-radius: 999px;
	background: var(--tfc-brand, #0b3989);
	color: #fff;
}

body.tibor-foam-product .tfc-sticky .tvc-add:hover:not(:disabled) {
	background: var(--tfc-brand-hover, #012b4e);
}

.tibor-foam-product .summary {
	position: sticky;
	top: 18px;
	align-self: start;
}

@media (max-width: 980px) {
	body.tibor-foam-product.tibor-mobile-menu-open .tfc-sticky {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

@media (max-width: 780px) {
	.tibor-foam-calc {
		max-width: 100%;
	}

	.tfc-input input {
		font-size: 16px;
	}

	body.tibor-foam-product .t26-chrome.t26-footer {
		padding-bottom: calc(80px + env(safe-area-inset-bottom));
	}

	body.tibor-foam-product .tfc-sticky {
		padding-bottom: env(safe-area-inset-bottom);
	}

	body.tibor-foam-product .tfc-sticky .tvc-sticky-inner {
		width: 100%;
		min-height: 64px;
		gap: 12px;
		padding: 8px 16px;
	}

	body.tibor-foam-product .tfc-sticky .tvc-add {
		flex: 1 1 220px;
		width: auto;
		min-width: 0;
		max-width: 250px;
		margin-left: auto;
		padding: 12px 16px;
		white-space: nowrap;
	}

	.tfc-grid,
	.tfc-plazo {
		grid-template-columns: 1fr;
	}

	.tfc-card-grid {
		grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	}

	.tfc-qty-head,
	.tfc-qty-row {
		grid-template-columns: minmax(100px, 1fr) minmax(74px, .75fr) minmax(74px, .75fr);
		gap: 7px;
		padding-left: 13px;
		padding-right: 13px;
	}

	.tfc-qty-label {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
		font-size: 14px;
	}

	.tfc-qty-unit,
	.tfc-qty-total {
		font-size: 13px;
	}

	.tfc-steps {
		grid-template-columns: 1fr 16px 1fr 16px 1fr;
		gap: 4px;
	}

	.tfc-step {
		align-items: center;
		flex-direction: column;
		text-align: center;
	}

	.tfc-step span {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.tfc-step b {
		font-size: 10px;
	}

	.tfc-drop {
		min-height: 174px;
		padding: 24px 14px 26px;
	}

	.tfc-drop-main {
		flex-direction: column;
	}

	.tfc-price {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tibor-foam-calc *,
	.tfc-add {
		transition: none !important;
	}
}

/* Mobile FOAM: the product becomes a normal single-column document. */
@media (max-width: 880px) {
	body.tibor-foam-product {
		overflow-x: clip;
	}

	body.tibor-foam-product .tibor-vinilo-top,
	body.tibor-foam-product .tibor-vinilo-top > .tibor-vinilo-galcol,
	body.tibor-foam-product .tibor-vinilo-top > .summary.entry-summary {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.tibor-foam-product .tibor-vinilo-top {
		gap: 24px;
	}

	body.tibor-foam-product .tibor-vinilo-top > .summary.entry-summary,
	body.tibor-foam-product .summary {
		position: static !important;
		top: auto;
		align-self: stretch;
	}

	body.tibor-foam-product .woocommerce-product-gallery,
	body.tibor-foam-product .woocommerce-product-gallery .flex-viewport,
	body.tibor-foam-product .woocommerce-product-gallery__wrapper,
	body.tibor-foam-product .woocommerce-product-gallery__image,
	body.tibor-foam-product .woocommerce-product-gallery__image a,
	body.tibor-foam-product .woocommerce-product-gallery__image img {
		max-width: 100%;
	}

	body.tibor-foam-product div.product div.images.woocommerce-product-gallery,
	body.tibor-foam-product .woocommerce-product-gallery {
		display: block;
		float: none !important;
		width: 100% !important;
	}

	body.tibor-foam-product .woocommerce-product-gallery .flex-viewport {
		width: 100% !important;
		min-width: 100%;
		overflow: hidden;
	}

	body.tibor-foam-product .woocommerce-product-gallery__image img {
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	body.tibor-foam-product .tvd-side,
	body.tibor-foam-product .tvf-side {
		position: static;
	}
}

@media (max-width: 780px) {
	.tibor-foam-calc {
		width: 100%;
		max-width: none;
		min-width: 0;
	}

	.tibor-foam-calc [hidden] {
		display: none !important;
	}

	.tibor-foam-calc .tfc-field,
	.tibor-foam-calc .tfc-card,
	.tibor-foam-calc .tfc-qty-table,
	.tibor-foam-calc .tfc-upload,
	.tibor-foam-calc .tfc-drop,
	.tibor-foam-calc .tfc-breakdown,
	.tibor-foam-calc .tfc-price {
		min-width: 0;
		max-width: 100%;
	}

	.tibor-foam-calc .tfc-head {
		align-items: flex-start;
		margin-bottom: 16px;
	}

	.tibor-foam-calc .tfc-head-ic {
		width: 40px;
		height: 40px;
	}

	.tibor-foam-calc .tfc-head h2 {
		font-size: 20px;
	}

	.tibor-foam-calc .tfc-head p {
		font-size: 13px;
	}

	.tibor-foam-calc .tfc-field {
		margin-bottom: 20px;
	}

	.tibor-foam-calc .tfc-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tibor-foam-calc .tfc-grid .tfc-field {
		margin-bottom: 0;
	}

	.tibor-foam-calc .tfc-input,
	.tibor-foam-calc .tfc-input input {
		min-height: 48px;
	}

	.tibor-foam-calc .tfc-input input {
		font-size: 16px;
		padding-inline: 10px;
	}

	.tibor-foam-calc .tfc-input span {
		padding-inline: 9px;
	}

	.tibor-foam-calc .tfc-formats {
		gap: 8px;
	}

	.tibor-foam-calc .tfc-formats button {
		min-height: 44px;
		flex: 1 1 calc(33.333% - 8px);
		padding: 8px;
		white-space: normal;
	}

	.tibor-foam-calc .tfc-card-grid:not(.tfc-accessory) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.tibor-foam-calc .tfc-card {
		width: 100%;
		min-height: 126px;
		padding: 12px;
		overflow-wrap: anywhere;
	}

	.tibor-foam-calc .tfc-card > span:not(.tfc-diagram) {
		font-size: 13px;
	}

	.tibor-foam-calc .tfc-card small {
		font-size: 11px;
	}

	.tibor-foam-calc .tfc-option-image {
		height: 72px;
		max-width: 100%;
		object-fit: contain;
	}

	.tibor-foam-calc .tfc-accessory-scroll,
	.tibor-foam-calc .tfc-position-grid {
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scroll-behavior: smooth;
		scroll-snap-type: inline mandatory;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
	}

	.tibor-foam-calc .tfc-card-grid.tfc-accessory {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(156px, 68vw);
		gap: 10px;
		width: max-content;
		min-width: 100%;
	}

	.tibor-foam-calc .tfc-accessory .tfc-card {
		width: 100%;
		min-height: 154px;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.tibor-foam-calc .tfc-position-grid {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(132px, 42vw);
		gap: 10px;
		padding-bottom: 10px;
	}

	.tibor-foam-calc .tfc-position-card {
		width: 100%;
		min-width: 0;
		min-height: 128px;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.tibor-foam-calc .tfc-accessory-count-row .tfc-input {
		max-width: none;
	}

	.tibor-foam-calc .tfc-plazo {
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.tibor-foam-calc .tfc-segment button {
		min-height: 48px;
		justify-content: flex-start;
		padding-inline: 16px;
	}

	.tibor-foam-calc .tfc-qty-table {
		padding: 8px;
		border-radius: 10px;
	}

	.tibor-foam-calc .tfc-qty-head,
	.tibor-foam-calc .tfc-qty-row {
		grid-template-columns: minmax(88px, 1.15fr) minmax(70px, .85fr) minmax(70px, .85fr);
		gap: 6px;
		padding-inline: 10px;
	}

	.tibor-foam-calc .tfc-qty-head {
		font-size: 9px;
		line-height: 1.25;
	}

	.tibor-foam-calc .tfc-qty-row {
		min-height: 58px;
	}

	.tibor-foam-calc .tfc-qty-label {
		font-size: 13px;
		line-height: 1.25;
	}

	.tibor-foam-calc .tfc-qty-unit,
	.tibor-foam-calc .tfc-qty-total {
		min-width: 0;
		font-size: 12px;
		line-height: 1.25;
		white-space: normal;
	}

	.tibor-foam-calc .tfc-qty-total {
		font-size: 13px;
	}

	.tibor-foam-calc .tfc-qty-toggle {
		min-height: 44px;
	}

	.tibor-foam-calc .tfc-steps {
		grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr);
		gap: 4px;
	}

	.tibor-foam-calc .tfc-step {
		align-items: center;
		flex-direction: column;
		text-align: center;
	}

	.tibor-foam-calc .tfc-step span {
		width: 32px;
		height: 32px;
	}

	.tibor-foam-calc .tfc-step b {
		font-size: 10px;
		line-height: 1.25;
		overflow-wrap: anywhere;
	}

	.tibor-foam-calc .tfc-drop {
		min-height: 168px;
		padding: 22px 14px 24px;
	}

	.tibor-foam-calc .tfc-drop-main {
		flex-direction: column;
		gap: 8px;
	}

	.tibor-foam-calc .tfc-drop-main b {
		font-size: 15px;
	}

	.tibor-foam-calc .tfc-browse {
		min-width: 150px;
		min-height: 44px;
	}

	.tibor-foam-calc .tfc-drop small {
		font-size: 12px;
		line-height: 1.45;
	}

	.tibor-foam-calc .tfc-price {
		align-items: center;
		flex-direction: row;
		padding: 14px;
	}

	.tibor-foam-calc .tfc-total {
		font-size: 26px;
	}

	.tibor-foam-calc .tfc-add {
		min-height: 52px;
		padding-inline: 18px;
	}

	body.tibor-foam-product .woocommerce-tabs ul.tabs {
		display: flex;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline proximity;
		-webkit-overflow-scrolling: touch;
	}

	body.tibor-foam-product .woocommerce-tabs ul.tabs li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	body.tibor-foam-product .tvd-card > summary,
	body.tibor-foam-product .tvf-card > summary {
		gap: 10px;
		padding: 14px;
	}

	body.tibor-foam-product .tvd-card-ic,
	body.tibor-foam-product .tvf-card-ic {
		width: 38px;
		height: 38px;
	}

	body.tibor-foam-product .tvd-card-t,
	body.tibor-foam-product .tvf-card-t {
		min-width: 0;
		font-size: 15px;
		overflow-wrap: anywhere;
	}

	body.tibor-foam-product .tvd-card-b,
	body.tibor-foam-product .tvf-card-b {
		padding: 0 14px 16px;
		font-size: 14px;
	}

	body.tibor-foam-product ul.products {
		width: 100%;
		max-width: 100%;
	}

	body.tibor-foam-product ul.products li.product {
		min-width: 0;
		width: 100% !important;
		margin-inline: 0 !important;
	}
}

@media (max-width: 480px) {
	body.tibor-foam-product .tibor-vinilo-top {
		gap: 20px;
		margin-bottom: 20px;
	}

	body.tibor-foam-product .flex-direction-nav a {
		width: 40px;
		height: 40px;
	}

	body.tibor-foam-product .flex-direction-nav .flex-prev {
		left: 8px;
	}

	body.tibor-foam-product .flex-direction-nav .flex-next {
		right: 8px;
	}

	.tibor-foam-calc .tfc-card-grid.tfc-accessory {
		grid-auto-columns: minmax(152px, 76vw);
	}

	.tibor-foam-calc .tfc-position-grid {
		grid-auto-columns: minmax(128px, 58vw);
	}

	.tibor-foam-calc .tfc-breakdown > div {
		gap: 8px;
		padding-inline: 10px;
	}

	.tibor-foam-calc .tfc-breakdown strong {
		text-align: right;
	}

	body.tibor-foam-product .tfc-sticky .tvc-sticky-inner {
		min-height: 64px;
		gap: 10px;
		padding: 8px 12px;
	}

	body.tibor-foam-product .tfc-sticky .tvc-sticky-p {
		flex: 0 1 auto;
	}

	body.tibor-foam-product .tfc-sticky .tvc-sticky-n {
		display: none;
	}

	body.tibor-foam-product .tfc-sticky .tvc-sticky-total {
		font-size: 18px;
		white-space: nowrap;
	}

	body.tibor-foam-product .tfc-sticky .tvc-add {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
		min-height: 46px;
		font-size: 14px;
		padding: 11px 14px;
	}

	body.tibor-foam-product .tvd-head,
	body.tibor-foam-product .tvf-head {
		gap: 10px;
	}

	body.tibor-foam-product .tvd-head h2,
	body.tibor-foam-product .tvf-head h2 {
		font-size: 20px;
	}

	body.tibor-foam-product .tvd-ic,
	body.tibor-foam-product .tvf-ic {
		width: 40px;
		height: 40px;
	}

	body.tibor-foam-product #review_form_wrapper,
	body.tibor-foam-product #reviews .commentlist li.review {
		padding: 16px;
	}
}

@media (max-width: 360px) {
	.tibor-foam-calc .tfc-card-grid:not(.tfc-accessory) {
		grid-template-columns: 1fr;
	}

	.tibor-foam-calc .tfc-formats button {
		flex-basis: calc(50% - 8px);
	}

	.tibor-foam-calc .tfc-qty-head,
	.tibor-foam-calc .tfc-qty-row {
		grid-template-columns: minmax(76px, 1.1fr) minmax(62px, .9fr) minmax(62px, .9fr);
		padding-inline: 8px;
	}

	.tibor-foam-calc .tfc-qty-label,
	.tibor-foam-calc .tfc-qty-unit,
	.tibor-foam-calc .tfc-qty-total {
		font-size: 11px;
	}

	.tibor-foam-calc .tfc-step b {
		display: none;
	}

	.tibor-foam-calc .tfc-step.is-active b {
		display: block;
	}
}


/* ── 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. */
.tfc-plazo button > span {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
}
.tfc-plazo button small {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	font-weight: 500;
	opacity: .72;
	white-space: nowrap;
}

/* Selector de piezas del accesorio. Solo aparece si la tarifa cobra por pieza. */
.tfc-piezas {
	margin: 10px 0 0;
	border: 1px solid var(--tfc-brand-line);
	border-radius: 9px;
	background: var(--tfc-brand-soft);
	padding: 11px 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}


.tfc-piezas label {
	color: #3e5874;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.45;
	margin: 0;
}

.tfc-piezas input {
	width: 82px;
	padding: 7px 10px;
	border: 1px solid var(--tfc-brand-line);
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	color: #14293c;
}

.tfc-piezas input:focus {
	outline: 0;
	border-color: var(--tfc-brand);
	box-shadow: 0 0 0 3px rgba(11, 57, 137, .15);
}

.tfc-piezas small {
	flex: 1 1 100%;
	color: #5a7286;
	font-size: 12px;
	line-height: 1.4;
}

/* Desglose fiscal de Gran formato, igual que en Stickers. */
.tibor-foam-calc .tfc-price { display: block; }
.tibor-foam-calc .tfc-tax-breakdown { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--tfc-border); }
.tibor-foam-calc .tfc-tax-breakdown > div,
.tibor-foam-calc .tfc-price-total { display: flex; justify-content: space-between; gap: 12px; }
.tibor-foam-calc .tfc-tax-breakdown > div { padding: 2px 0; }
.tibor-foam-calc .tfc-tax-breakdown dt,
.tibor-foam-calc .tfc-tax-breakdown dd { margin: 0; color: var(--tfc-muted); font-size: 14px; font-weight: 600; }
.tibor-foam-calc .tfc-tax-breakdown dd { color: var(--tfc-brand); white-space: nowrap; }
.tibor-foam-calc .tfc-price-total { align-items: baseline; }
.tibor-foam-calc .tfc-price-total > span { color: var(--tfc-muted); font-size: 13px; font-weight: 750; }
@media (max-width: 520px) { .tibor-foam-calc .tfc-price-total { align-items: flex-start; flex-direction: column; } }

/* Avisos refinados (22-10-2026): mismo acabado que el personalizador y WooCommerce. Fondo
   claro, franja de color a la izquierda, esquinas suaves y sombra ligera. Se conservan el
   color del texto, los tamaños y la posición; solo cambia el acabado. */
.tfc-provisional, .tfc-min-warning { border-radius: 12px; box-shadow: 0 1px 4px rgba(15, 23, 42, .06); }
.tfc-provisional, .tfc-min-warning { border: 1px solid #f3e2b3; border-left: 3px solid #f59e0b; background: #fffdf7; }
