/* Tanat Wholesale — esprit Tanat : palette neutre et chaude, sobre, premium.
   Repris des formulaires devis/onboarding pour un look identique. */

/* Futura PT embarquée dans le plugin (assets/fonts/) : déposer les 3 fichiers
   .otf — voir assets/fonts/README.txt. Si absents, repli sur la pile système. */
@font-face {
	font-family: 'Futura PT';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/FuturaPTBook.otf') format('opentype');
}
@font-face {
	font-family: 'Futura PT';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/FuturaPTMedium.otf') format('opentype');
}
@font-face {
	font-family: 'Futura PT';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/FuturaPTDemi.otf') format('opentype');
}

.tanat-wholesale {
	--td-card: #f8f6f0;  /* fond de la carte du formulaire */
	--td-field: #fffefc; /* fond des champs et cases (blanc quasi pur) */
	--td-ink: #16130f;
	--td-muted: #7a7166;
	--td-line: #e6dfd3;
	--td-soft: #f4efe7;
	--td-danger: #a03b2a;

	--td-font: "Futura PT", Futura, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Rayons volontairement réduits pour coller au style éditorial de la page
	   Coffee Shops International (angles quasi droits). Ajuster ici suffit. */
	--td-radius-card: 8px;  /* carte principale */
	--td-radius: 4px;       /* champs, cartes de choix, dropdown */
	--td-radius-pill: 6px;  /* pilules et boutons */

	/* Marge de scroll : le thème pose un menu en position fixed. Sans elle,
	   un saut d'ancre (#tanat-wholesale) ou un recentrage d'étape colle le
	   haut de la carte à y=0, donc sous le menu. À ajuster ici si la hauteur
	   du menu change. */
	--td-scroll-offset: 72px;

	font-family: var(--td-font);
	color: var(--td-ink);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	scroll-margin-top: var(--td-scroll-offset);
}

.tanat-wholesale *,
.tanat-wholesale *::before,
.tanat-wholesale *::after {
	box-sizing: border-box;
}

.tanat-wholesale .td-card {
	position: relative;
	width: 100%;
	margin: 0;
	scroll-margin-top: var(--td-scroll-offset);
	background: var(--td-card);
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius-card);
	overflow: hidden;
	box-shadow: 0 28px 70px -36px rgba(22, 19, 15, 0.35);
}

/* --- progress --- */

.tanat-wholesale .td-progress {
	height: 3px;
	background: var(--td-line);
}

.tanat-wholesale .td-progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--td-ink);
	transition: width 0.45s ease;
}

/* --- head --- */

.tanat-wholesale .td-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 32px 0;
	min-height: 38px;
}

.tanat-wholesale .td-back {
	background: none;
	border: none;
	padding: 0;
	color: var(--td-muted);
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
}

.tanat-wholesale .td-back:hover {
	color: var(--td-ink);
}

.tanat-wholesale .td-step {
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--td-muted);
}

/* --- body & transitions --- */

.tanat-wholesale .td-body {
	padding: 6px 32px 24px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.tanat-wholesale .td-body.td-in {
	opacity: 1;
	transform: none;
}

/* --- typography --- */

.tanat-wholesale .td-title {
	font-family: var(--td-font);
	font-weight: 500;
	font-size: 27px;
	line-height: 1.25;
	margin: 16px 0 6px;
	color: var(--td-ink);
}

.tanat-wholesale .td-sub {
	margin: 0 0 12px;
	color: var(--td-muted);
	font-size: 15px;
}

.tanat-wholesale .td-note {
	color: var(--td-muted);
	font-size: 13px;
	margin: 10px 0 18px;
}

.tanat-wholesale .td-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--td-muted);
}

/* marque « requis » / « optionnel » dans les labels */
.tanat-wholesale .tw-req {
	color: var(--td-danger);
}

.tanat-wholesale .tw-opt {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: var(--td-muted);
}

/* intertitres de l'écran compte (Contact, Login, Company & delivery, Billing) */
.tanat-wholesale .tw-section {
	font-family: var(--td-font);
	font-weight: 500;
	font-size: 18px;
	margin: 26px 0 4px;
	padding-top: 18px;
	border-top: 1px solid var(--td-line);
}

/* --- fields --- */

.tanat-wholesale .td-row {
	display: flex;
	gap: 14px;
}

.tanat-wholesale .td-row .td-field {
	flex: 1;
}

.tanat-wholesale .td-field {
	margin: 14px 0;
}

.tanat-wholesale .td-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--td-muted);
}

.tanat-wholesale input[type="text"],
.tanat-wholesale input[type="email"],
.tanat-wholesale input[type="tel"],
.tanat-wholesale input[type="password"],
.tanat-wholesale input[type="number"],
.tanat-wholesale select,
.tanat-wholesale textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	background: var(--td-field);
	font-size: 15px;
	font-family: inherit;
	color: var(--td-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

/* Compteur (nombre d'établissements) : un champ pleine largeur pour un
   chiffre à un ou deux caractères déséquilibrait l'écran. */
.tanat-wholesale input.tw-num {
	max-width: 130px;
}

.tanat-wholesale textarea {
	resize: vertical;
	min-height: 110px;
	line-height: 1.5;
}

.tanat-wholesale select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7166' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.tanat-wholesale input:focus,
.tanat-wholesale select:focus,
.tanat-wholesale textarea:focus {
	outline: none;
	border-color: var(--td-ink);
	box-shadow: 0 0 0 3px rgba(22, 19, 15, 0.08);
}

.tanat-wholesale input::placeholder,
.tanat-wholesale textarea::placeholder {
	color: var(--td-muted);
	opacity: 0.55;
}

/* honeypot : hors écran, invisible pour les humains */
.tanat-wholesale .td-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* --- options (cartes de choix) --- */

.tanat-wholesale .td-options {
	display: grid;
	gap: 10px;
	margin: 12px 0 4px;
}

.tanat-wholesale .td-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 15px 17px;
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	background: var(--td-field);
	font-size: 15px;
	font-family: inherit;
	color: var(--td-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tanat-wholesale .td-option:hover {
	border-color: var(--td-muted);
}

.tanat-wholesale .td-option.is-selected {
	border-color: var(--td-ink);
	box-shadow: inset 0 0 0 1px var(--td-ink);
	background: var(--td-soft);
}

.tanat-wholesale .td-option--stacked {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	padding: 16px 18px;
}

.tanat-wholesale .td-option-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tanat-wholesale .td-option--stacked .td-option-label {
	font-weight: 500;
}

.tanat-wholesale .td-option-hint {
	color: var(--td-muted);
	font-size: 14px;
	white-space: nowrap;
}

.tanat-wholesale .td-option-hint--block {
	white-space: normal;
	font-size: 13.5px;
	line-height: 1.45;
}

/* étiquette de profil (On-premise, Retail, Together, Distribution) */
.tanat-wholesale .tw-tag {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--td-muted);
}

.tanat-wholesale .td-option.is-selected .tw-tag {
	color: var(--td-ink);
}

/* --- grilles de cartes (profil 2×2, besoins, talk) --- */

.tanat-wholesale .tw-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.tanat-wholesale .tw-grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* cartes ajustées au contenu (pas de grande zone blanche) — ex. écran
   « How would you like to start? » : les deux choix se serrent côte à côte */
.tanat-wholesale .tw-grid-fit {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.tanat-wholesale .tw-grid-fit .td-option {
	width: auto;
	flex: 0 1 auto;
	min-width: 220px;
	max-width: 360px;
}

/* --- pilules : largeur naturelle, jamais full width --- */

.tanat-wholesale .td-pill {
	width: auto;
	justify-content: center;
	padding: 11px 20px;
	border-radius: var(--td-radius-pill);
	font-size: 14px;
	white-space: nowrap;
}

.tanat-wholesale .tw-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tanat-wholesale .tw-pills-wrap .td-pill {
	flex: 0 0 auto;
}

/* --- aperçu wholesale (liste à coches) --- */

.tanat-wholesale .tw-peek {
	list-style: none;
	margin: 18px 0 6px;
	padding: 0;
}

.tanat-wholesale .tw-peek li {
	list-style: none; /* neutralise aussi les puces imposées par le thème */
	position: relative;
	margin: 0;
	padding: 13px 0 13px 34px;
	border-bottom: 1px solid var(--td-line);
	font-size: 15px;
	line-height: 1.5;
}

.tanat-wholesale .tw-peek li::marker {
	content: "";
}

.tanat-wholesale .tw-peek li:last-child {
	border-bottom: none;
}

.tanat-wholesale .tw-peek li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 13px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--td-soft);
	border: 1px solid var(--td-line);
	color: var(--td-ink);
	font-size: 11px;
	line-height: 20px;
	text-align: center;
}

/* --- boutons --- */

.tanat-wholesale .td-actions {
	margin: 22px 0 6px;
}

.tanat-wholesale .td-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 30px;
	border: none;
	border-radius: var(--td-radius-pill);
	background: var(--td-ink);
	color: #fffdf9;
	font-size: 15px;
	font-weight: 500;
	font-family: inherit;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.tanat-wholesale .td-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -12px rgba(22, 19, 15, 0.55);
	color: #fffdf9;
}

.tanat-wholesale .td-btn:disabled {
	opacity: 0.55;
	cursor: default;
	transform: none;
	box-shadow: none;
}

/* bouton WhatsApp (lien) : vert WhatsApp assombri façon Tanat */
.tanat-wholesale .tw-wa {
	margin: 18px 0 6px;
}

.tanat-wholesale a.tw-wa-btn {
	background: #1da851;
}

.tanat-wholesale a.tw-wa-btn:hover {
	box-shadow: 0 10px 24px -12px rgba(29, 168, 81, 0.65);
}

/* --- téléphone : indicatif pays + numéro ---
   !important assumés : certains thèmes forcent select { width:100% } et
   écrasent le sélecteur d'indicatif, qui doit rester compact. */

.tanat-wholesale .tw-phone {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
}

.tanat-wholesale .tw-phone .tw-phone-cc {
	width: auto !important;
	min-width: 0 !important;
	max-width: 190px !important;
	flex: 0 0 auto !important;
	padding-right: 30px;
	background-position: right 10px center;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.tanat-wholesale .tw-phone input[type="tel"] {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
}

/* --- autocomplete d'adresse (Google Places New, dropdown custom) --- */

.tanat-wholesale .tw-ac {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 40;
	margin-top: 4px;
	background: var(--td-field);
	border: 1px solid var(--td-line);
	border-radius: var(--td-radius);
	box-shadow: 0 18px 40px -20px rgba(22, 19, 15, 0.35);
	overflow: hidden;
}

.tanat-wholesale .tw-ac-item {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: none;
	border-bottom: 1px solid var(--td-line);
	background: var(--td-field);
	font-family: inherit;
	font-size: 14px;
	color: var(--td-ink);
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease;
}

.tanat-wholesale .tw-ac-item:last-child {
	border-bottom: none;
}

.tanat-wholesale .tw-ac-item:hover {
	background: var(--td-soft);
}

/* --- erreurs --- */

.tanat-wholesale .td-error {
	display: none;
	margin: 8px 0 0;
	color: var(--td-danger);
	font-size: 14px;
}

.tanat-wholesale .td-error.is-on {
	display: block;
}

/* --- écran de fin --- */

.tanat-wholesale .tw-done {
	padding: 8px 0 22px;
}

.tanat-wholesale .td-done-icon {
	width: 52px;
	height: 52px;
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--td-ink);
	color: #fffdf9;
	font-size: 24px;
}

/* --- responsive --- */

@media (max-width: 600px) {
	.tanat-wholesale .td-head {
		padding-left: 20px;
		padding-right: 20px;
	}

	.tanat-wholesale .td-body {
		padding: 4px 20px 18px;
	}

	.tanat-wholesale .td-title {
		font-size: 23px;
	}

	.tanat-wholesale .td-row {
		display: block;
	}

	.tanat-wholesale .tw-grid-2 {
		grid-template-columns: 1fr;
	}
}
