/* Talita · scheda prodotto. Toni della pagina "Diventa rivenditore": nero, cuoio, crema, grazie per i titoli. */
:root {
	--tf-nero: #1a1a1a;
	--tf-testo: #3d3a37;
	--tf-grigio: #857f79;
	--tf-filo: #e8e2db;
	--tf-crema: #faf7f3;
	--tf-cuoio: #d1a172;
	--tf-cuoio-scuro: #8a5d35;
	--tf-serif: "DM Serif Display", "Times New Roman", Times, serif;
}

/* Flatsome dà margin-left: 1.3em alle liste nel riepilogo e nelle colonne */
.tf-promo li,
.tf-garanzie li,
.tf-completa li,
.tf-scelte li {
	margin-left: 0 !important;
}

/* ------------------------------------------------ bottoni d'acquisto neri */
body.tf-bottoni-neri .single_add_to_cart_button.button,
body.tf-bottoni-neri .single_add_to_cart_button {
	background-color: var(--tf-nero) !important;
	border-color: var(--tf-nero) !important;
	color: #fff !important;
}

/* quantità − 1 + accanto al bottone, alta uguale (Flatsome: .quantity.buttons_added con .minus/.plus o .ux-quantity__button) */
.tf-scheda-nuova form.cart .quantity {
	display: inline-flex !important;
	flex: none;
	align-items: stretch;
	height: 52px;
	margin: 0 !important;
	border: 1px solid #cfc8c0;
	background: #fff;
	vertical-align: top;
}

.tf-scheda-nuova form.cart .quantity.hidden {
	display: none !important;
}

.tf-scheda-nuova form.cart .quantity .minus,
.tf-scheda-nuova form.cart .quantity .plus,
.tf-scheda-nuova form.cart .quantity .ux-quantity__button {
	width: 40px;
	height: 50px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--tf-nero);
	font-size: 18px;
	font-weight: 400;
	line-height: 50px;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.tf-scheda-nuova form.cart .quantity .minus:hover,
.tf-scheda-nuova form.cart .quantity .plus:hover,
.tf-scheda-nuova form.cart .quantity .ux-quantity__button:hover {
	background: var(--tf-crema);
}

.tf-scheda-nuova form.cart .quantity input.qty {
	width: 40px;
	height: 50px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tf-nero);
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
}

.tf-scheda-nuova form.cart .quantity input.qty::-webkit-inner-spin-button,
.tf-scheda-nuova form.cart .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.tf-scheda-nuova form.cart .single_add_to_cart_button {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	min-height: 52px;
	margin: 0 !important;
	letter-spacing: 0.12em;
}

.tf-scheda-nuova form.cart .woocommerce-variation-add-to-cart,
.tf-scheda-nuova form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.6em;
}

/* ------------------------------------------------ fantasie e taglie */
.tf-scheda-nascosto {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.tf-con-bottoni table.variations,
.tf-con-bottoni table.variations tbody,
.tf-con-bottoni table.variations tr,
.tf-con-bottoni table.variations th,
.tf-con-bottoni table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.tf-con-bottoni table.variations tr {
	margin: 0 0 1.1em;
}

.tf-con-bottoni table.variations th.label,
.tf-con-bottoni table.variations td.label {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 0.6em;
	padding: 0 0 0.55em;
	line-height: 1.3;
}

.tf-con-bottoni table.variations label {
	margin: 0;
	color: var(--tf-nero);
	font-size: 0.74em;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tf-scelto-nome {
	margin-left: 0.5em;
	color: var(--tf-testo);
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
}

.tf-scelto-nome:not(:empty)::before {
	content: "· ";
}

.tf-guida-link {
	margin-left: auto;
	color: var(--tf-testo) !important;
	font-size: 0.8em;
	font-weight: 400;
	letter-spacing: normal;
	text-decoration: underline;
	text-transform: none;
	text-underline-offset: 3px;
}

.text-center .tf-guida-link {
	margin-left: 0.4em;
}

.tf-con-bottoni .reset_variations {
	display: none !important;
}

.tf-scelte {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.5em;
	margin: 0;
}

.text-center .tf-scelte,
.text-center.tf-con-bottoni table.variations th.label,
.text-center .tf-con-bottoni table.variations th.label {
	justify-content: center;
}

.tf-scelte .tf-scelta {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 3.1em;
	min-height: 3.1em;
	margin: 0;
	padding: 0.35em 0.75em;
	border: 1px solid #cfc8c0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--tf-nero);
	font: inherit;
	font-size: 0.9em;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tf-scelte .tf-scelta:hover {
	border-color: var(--tf-nero);
}

.tf-scelte .tf-scelta.is-scelta {
	border-color: var(--tf-nero);
	background: var(--tf-nero);
	color: #fff;
}

.tf-scelte .tf-scelta.is-esaurita {
	border-style: dashed;
	background: #fff;
	color: #b3ada7;
	cursor: not-allowed;
}

.tf-scelte .tf-scelta.is-esaurita .tf-scelta__nome {
	text-decoration: line-through;
}

.tf-scelte .tf-scelta:focus-visible {
	outline: 2px solid var(--tf-cuoio);
	outline-offset: 2px;
}

.tf-scelta__nota {
	margin-top: 0.2em;
	color: var(--tf-cuoio-scuro);
	font-size: 0.68em;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.tf-scelta.is-scelta .tf-scelta__nota {
	color: #f3dcc3;
}

/* fantasie con la foto: fila che scorre col dito */
.tf-scelte--foto {
	flex-wrap: nowrap;
	justify-content: flex-start;
	margin: 0 -1em;
	padding: 0.15em 1em 0.4em;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.tf-scelte--foto::-webkit-scrollbar {
	display: none;
}

.tf-scelte--foto .tf-scelta {
	flex: 0 0 auto;
	width: 4.4em;
	min-width: 0;
	padding: 0 0 0.35em;
	border-color: transparent;
	background: transparent;
	scroll-snap-align: start;
}

.tf-scelte--foto .tf-scelta img {
	display: block;
	width: 100%;
	height: 5.85em;
	margin: 0 0 0.3em;
	object-fit: cover;
	outline: 1px solid var(--tf-filo);
	outline-offset: -1px;
}

.tf-scelte--foto .tf-scelta .tf-scelta__nome {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.72em;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tf-scelte--foto .tf-scelta.is-scelta {
	border-color: transparent;
	background: transparent;
	color: var(--tf-nero);
}

.tf-scelte--foto .tf-scelta.is-scelta img {
	outline: 2px solid var(--tf-nero);
	outline-offset: 2px;
}

.tf-scelte--foto .tf-scelta.is-scelta .tf-scelta__nome {
	font-weight: 700;
}

.tf-scelte--foto .tf-scelta.is-esaurita img {
	opacity: 0.4;
}

.tf-scelte--taglie .tf-scelta {
	min-width: 3.3em;
	padding: 0.4em 0.5em;
}

/* fantasie senza foto: i nomi, sottolineato quello scelto (niente scatole) */
.tf-scelte:not(.tf-scelte--taglie):not(.tf-scelte--foto) {
	gap: 0.15em 1.1em;
}

.tf-scelte:not(.tf-scelte--taglie):not(.tf-scelte--foto) .tf-scelta {
	min-width: 0;
	min-height: 0;
	padding: 0.35em 0 0.3em;
	border: 0;
	border-bottom: 1px solid transparent;
	background: none;
	color: var(--tf-testo);
	font-size: 0.86em;
}

.tf-scelte:not(.tf-scelte--taglie):not(.tf-scelte--foto) .tf-scelta.is-scelta {
	border-bottom-color: var(--tf-nero);
	background: none;
	color: var(--tf-nero);
	font-weight: 700;
}

.tf-scelte:not(.tf-scelte--taglie):not(.tf-scelte--foto) .tf-scelta.is-esaurita {
	border-style: none;
}

.tf-scelte.is-richiamo {
	animation: tf-richiamo 0.45s ease 3;
}

@keyframes tf-richiamo {
	50% {
		transform: translateX(4px);
	}
}

/* ------------------------------------------------ avvisi, consegna, garanzie */
.tf-scheda-ritardo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5em;
	margin: -0.4em 0 1.2em;
	padding: 0;
	color: var(--tf-testo);
	font-size: 0.84em;
	line-height: 1.35;
	text-align: left;
}

.text-center .tf-scheda-ritardo {
	justify-content: center;
}

.tf-scheda-ritardo .tf-icona {
	width: 18px;
	height: 18px;
}

.tf-icona {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--tf-cuoio);
}

.tf-scheda-consegna {
	display: flex;
	flex: 1 1 100%;
	align-items: center;
	justify-content: flex-start;
	gap: 0.7em;
	width: 100%;
	margin: 0.35em 0 0;
	color: var(--tf-testo);
	line-height: 1.3;
	text-align: left;
}

.tf-scheda-consegna .tf-icona {
	width: 24px;
	height: 24px;
}

.text-center .tf-scheda-consegna {
	justify-content: center;
}

.tf-scheda-consegna small {
	display: block;
	color: var(--tf-grigio);
	font-size: 0.74em;
	letter-spacing: 0.02em;
}

.tf-scheda-consegna strong {
	display: block;
	color: var(--tf-nero);
	font-size: 0.88em;
	font-weight: 700;
}

.tf-garanzie {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.2em;
	margin: 1.1em 0 0;
	padding: 1em 0 0;
	border-top: 1px solid var(--tf-filo);
	list-style: none;
	text-align: left;
}

.text-center .tf-garanzie {
	justify-content: center;
}

.tf-garanzie li {
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin: 0 !important;
	padding: 0;
	border: 0;
}

.tf-garanzie .tf-icona {
	width: 18px;
	height: 18px;
}

.tf-garanzie strong {
	color: var(--tf-testo);
	font-size: 0.8em;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
}

.tf-garanzie small {
	display: none;
}

/* ------------------------------------------------ completa il bikini */
.tf-completa {
	margin: 2em -15px 0.5em;
	padding: 1.8em 15px 1.6em;
	background: var(--tf-crema);
	text-align: left;
}

@media (min-width: 850px) {
	.tf-completa {
		margin-right: 0;
		margin-left: 0;
		padding-right: 1.4em;
		padding-left: 1.4em;
	}
}

.tf-completa__occhiello {
	margin: 0 0 0.35em;
	color: var(--tf-grigio);
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.tf-completa .tf-completa__titolo {
	margin: 0;
	color: var(--tf-nero);
	font-family: var(--tf-serif);
	font-size: 1.6em;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
}

.tf-completa__titolo::after {
	content: none;
}

.tf-completa__sotto {
	margin: 0.7em 0 1.1em;
	color: var(--tf-testo);
	font-size: 0.86em;
}

/* fino a 6 pezzi in una fila che scorre col dito: se ne vedono 3, il quarto si intravede */
.tf-completa__scelte {
	display: flex;
	gap: 0.6em;
	margin: 0 -15px 1em;
	padding: 0 15px 0.3em;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	list-style: none;
}

.tf-completa__scelte::-webkit-scrollbar {
	display: none;
}

.tf-completa__scelte li {
	flex: 0 0 29%;
	margin: 0;
	scroll-snap-align: start;
}

@media (min-width: 850px) {
	.tf-completa__scelte {
		margin: 0 -1.4em 1em;
		padding: 0 1.4em 0.3em;
	}

	.tf-completa__scelte li {
		flex-basis: 30%;
	}
}

.tf-completa .tf-completa__pezzo {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	width: 100%;
	margin: 0;
	padding: 0 0 0.5em;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--tf-testo);
	font: inherit;
	font-size: 0.8em;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.tf-completa__pezzo img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 0.25em;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	outline: 1px solid var(--tf-filo);
	outline-offset: -1px;
	transition: outline-color 0.15s ease;
}

.tf-completa__pezzo.is-scelto img {
	outline: 2px solid var(--tf-nero);
	outline-offset: 2px;
}

.tf-completa__pezzo.is-scelto .tf-completa__nome {
	color: var(--tf-nero);
	font-weight: 700;
}

.tf-completa__prezzo {
	color: var(--tf-nero);
	font-weight: 600;
}

.tf-completa__opzioni {
	padding: 1em 0 0.2em;
	border-top: 1px solid var(--tf-filo);
}

.tf-completa__gruppo {
	margin: 0 0 1em;
}

.tf-completa__etichetta {
	margin: 0 0 0.5em;
	color: var(--tf-nero);
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tf-completa .tf-scelte--foto {
	margin: 0 -1.1em;
	padding: 0.15em 1.1em 0.4em;
}

.tf-completa__totale {
	margin: 0.1em 0 0.7em;
	color: var(--tf-testo);
	font-size: 0.9em;
}

.tf-completa__totale s {
	color: var(--tf-grigio);
}

.tf-completa__totale b {
	color: var(--tf-nero);
	font-size: 1.12em;
}

.tf-completa__promo {
	display: inline;
	margin-left: 0.3em;
	color: var(--tf-grigio);
	font-size: 0.85em;
	font-weight: 600;
}

.tf-completa .tf-completa__bottone,
.tf-foglio .tf-foglio__aggiungi,
.tf-scheda-barra .tf-scheda-barra__bottone {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0.8em 1.2em;
	border: 0;
	border-radius: 0;
	background: var(--tf-nero);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}

.tf-completa__bottone.is-attesa,
.tf-foglio__aggiungi.is-attesa,
.tf-scheda-barra__bottone.is-attesa,
.single_add_to_cart_button.is-attesa {
	opacity: 0.6;
	cursor: progress;
}

.tf-foglio .tf-foglio__aggiungi:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.tf-completa__messaggio,
.tf-foglio__messaggio {
	margin: 0.6em 0 0;
	color: #9b2c2c;
	font-size: 0.85em;
}

/* ------------------------------------------------ guida alle taglie */
.tf-scheda-guida {
	margin: 0.25em 0 0.75em;
	font-size: 0.9em;
}

.tf-scheda-dialogo {
	width: calc(100% - 2rem);
	max-width: 40rem;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.tf-scheda-dialogo::backdrop {
	background: rgba(26, 26, 26, 0.5);
}

.tf-scheda-dialogo__testa {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1em 1.2em;
	border-bottom: 1px solid var(--tf-filo);
}

.tf-scheda-dialogo__testa h2 {
	margin: 0;
	font-family: var(--tf-serif);
	font-size: 1.4em;
	font-weight: 400;
}

.tf-scheda-dialogo__chiudi,
.tf-foglio__chiudi {
	margin: 0;
	padding: 0 0.2em;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--tf-nero);
	font-size: 1.8em;
	line-height: 1;
	cursor: pointer;
}

.tf-scheda-dialogo__corpo {
	max-height: 70vh;
	padding: 1em 1.2em;
	overflow: auto;
}

.tf-scheda-dialogo__corpo table {
	width: 100%;
	border-collapse: collapse;
}

.tf-scheda-dialogo__corpo th,
.tf-scheda-dialogo__corpo td {
	padding: 0.45em 0.5em;
	border: 1px solid var(--tf-filo);
	text-align: center;
}

/* ------------------------------------------------ barra fissa e pannello dal basso */
.tf-scheda-barra {
	display: none;
}

@media (max-width: 849px) {
	.tf-scheda-barra {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		/* sopra il contenuto, sotto i pannelli di Flatsome (~1040) e il banner di CookieYes (100000) */
		z-index: 990;
		display: flex;
		align-items: center;
		gap: 0.8em;
		padding: 0.6em 0.9em calc(0.6em + env(safe-area-inset-bottom));
		border-top: 1px solid var(--tf-filo);
		background: #fff;
		transform: translateY(100%);
		transition: transform 0.2s ease;
	}

	.tf-scheda-barra[hidden] {
		display: none;
	}

	.tf-scheda-barra.is-visibile {
		transform: none;
	}

	.tf-scheda-barra__testo {
		display: flex;
		flex: 1;
		flex-direction: column;
		min-width: 0;
		color: var(--tf-testo);
		font-size: 0.82em;
		line-height: 1.25;
		text-align: left;
	}

	.tf-scheda-barra__nome {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.tf-scheda-barra__prezzo {
		color: var(--tf-nero);
		font-weight: 700;
	}

	.tf-scheda-barra .tf-scheda-barra__bottone {
		flex: none;
		width: auto;
		min-height: 46px;
		padding: 0.7em 1.15em;
		font-size: 0.74em;
	}

	body.tf-barra-visibile {
		padding-bottom: 4.6em;
	}

	body.tf-barra-visibile .cky-btn-revisit-wrapper {
		bottom: 5.5em !important;
	}
}

.tf-foglio {
	position: fixed;
	inset: 0;
	z-index: 1001;
}

.tf-foglio[hidden] {
	display: none;
}

.tf-foglio__velo {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.tf-foglio__pannello {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	max-height: 86vh;
	padding: 1em 1.1em calc(1.1em + env(safe-area-inset-bottom));
	overflow-y: auto;
	background: #fff;
	text-align: center;
	transform: translateY(100%);
	transition: transform 0.25s ease;
}

.tf-foglio.is-aperto .tf-foglio__velo {
	opacity: 1;
}

.tf-foglio.is-aperto .tf-foglio__pannello {
	transform: none;
}

html.tf-foglio-aperto,
html.tf-foglio-aperto body {
	overflow: hidden;
}

.tf-foglio__testa {
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin: 0 0 1em;
	padding-bottom: 0.9em;
	border-bottom: 1px solid var(--tf-filo);
	text-align: left;
}

.tf-foglio__testa > div {
	flex: 1;
	min-width: 0;
}

.tf-foglio__foto {
	width: 54px;
	height: 72px;
	margin: 0;
	object-fit: cover;
}

.tf-foglio__nome {
	margin: 0;
	color: var(--tf-nero);
	font-size: 0.95em;
	line-height: 1.25;
}

.tf-foglio__prezzo {
	margin: 0.1em 0 0;
	color: var(--tf-nero);
	font-weight: 700;
}

.tf-foglio__gruppo {
	margin: 0 0 1.1em;
}

.tf-foglio__etichetta {
	margin: 0 0 0.55em;
	color: var(--tf-nero);
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tf-foglio .tf-scelte--foto {
	margin: 0 -1.1em;
	padding: 0.15em 1.1em 0.4em;
}

.tf-foglio__guida {
	margin: -0.3em 0 1em;
	font-size: 0.9em;
}

.tf-foglio__guida .tf-guida-link {
	margin: 0;
}

/* ------------------------------------------------ avviso senza carrello laterale */
.tf-avviso-carrello {
	position: fixed;
	right: 1em;
	bottom: 1em;
	left: 1em;
	z-index: 1002;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 0.9em 1.1em;
	background: var(--tf-nero);
	color: #fff;
	font-size: 0.9em;
	opacity: 0;
	transform: translateY(1em);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.tf-avviso-carrello.is-visibile {
	opacity: 1;
	transform: none;
}

.tf-avviso-carrello a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.tf-scheda-barra,
	.tf-foglio__pannello,
	.tf-foglio__velo,
	.tf-avviso-carrello {
		transition: none;
	}

	.tf-scelte.is-richiamo {
		animation: none;
	}
}
