/**
 * Sélecteur de variation stylisé - La Déraison
 * Pilule + liste déroulante en cartes, accent rouge marque (#d71b03).
 */

/* --- Tableau de variations WooCommerce : fond transparent + titre au-dessus --- */
.variations_form .variations,
.variations_form .variations tbody,
.variations_form .variations tr,
.variations_form .variations th,
.variations_form .variations td {
	display: block;
	width: auto;
	max-width: 100%;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0;
	text-align: left;
}

.variations_form .variations tr + tr {
	margin-top: 18px;
}

.variations_form .variations th.label,
.variations_form .variations th.label label {
	margin: 0 0 8px;
	padding: 0;
	font-weight: 700;
	line-height: 1.3;
}

.variations_form .variations td.value {
	margin: 0;
}

.variations_form .variations td.value .reset_variations {
	display: inline-block;
	margin-top: 8px;
}

.ldr-vsel,
.ldr-vsel *,
.ldr-vsel *::before,
.ldr-vsel *::after {
	box-sizing: border-box;
}

.ldr-vsel {
	--ldr-vsel-accent: #d71b03;
	--ldr-vsel-border: #d9d9d9;
	--ldr-vsel-text: #1e1e1e;
	--ldr-vsel-muted: #8a8a8a;
	--ldr-vsel-radius: 14px;

	position: relative;
	display: inline-block;
	font-family: inherit;
	max-width: 100%;
}

/* Le <select> natif reste dans le DOM (source de vérité WooCommerce) mais
   est masqué visuellement et retiré du flux. */
.ldr-vsel__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	white-space: nowrap !important;
}

/* --- Pilule déclencheur --- */
/* On neutralise le style "bouton" du thème/Elementor (fond rouge, etc.). */
.ldr-vsel .ldr-vsel__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: auto;
	min-width: 150px;
	max-width: 100%;
	min-height: 0;
	margin: 0;
	padding: 11px 18px;
	-webkit-appearance: none;
	appearance: none;
	background: #fff !important;
	background-image: none !important;
	border: 1.5px solid var(--ldr-vsel-border) !important;
	border-radius: 999px !important;
	color: var(--ldr-vsel-text) !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.05s ease;
}

.ldr-vsel .ldr-vsel__trigger:hover {
	background: #fff !important;
	border-color: #bdbdbd !important;
}

.ldr-vsel__trigger:focus-visible {
	outline: none;
	border-color: var(--ldr-vsel-accent);
	box-shadow: 0 0 0 3px rgba(215, 27, 3, 0.15);
}

.ldr-vsel.is-open .ldr-vsel__trigger {
	border-color: var(--ldr-vsel-accent) !important;
	box-shadow: 0 0 0 3px rgba(215, 27, 3, 0.12);
}

.ldr-vsel.is-placeholder .ldr-vsel__trigger {
	color: var(--ldr-vsel-muted) !important;
	font-weight: 500;
}

.ldr-vsel__value {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ldr-vsel__arrow {
	flex: 0 0 auto;
	color: var(--ldr-vsel-muted);
	transition: transform 0.2s ease;
}

.ldr-vsel.is-open .ldr-vsel__arrow {
	transform: rotate(180deg);
	color: var(--ldr-vsel-accent);
}

/* --- Panneau déroulant --- */
.ldr-vsel__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 50;
	width: 220px;
	max-width: calc(100vw - 32px);
	min-width: 100%;
	max-height: 320px;
	overflow-y: auto;
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 10px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: var(--ldr-vsel-radius);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
	-webkit-overflow-scrolling: touch;
}

.ldr-vsel.is-open .ldr-vsel__panel {
	display: flex;
	animation: ldr-vsel-pop 0.16s ease;
}

@keyframes ldr-vsel-pop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Options (cartes) --- */
/* Reset du style "bouton" du thème pour des cartes homogènes. */
.ldr-vsel .ldr-vsel__option {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 0;
	flex: 0 0 auto;
	margin: 0;
	padding: 14px 18px;
	-webkit-appearance: none;
	appearance: none;
	background: #fff !important;
	background-image: none !important;
	border: 1.5px solid #ededed !important;
	border-radius: 12px !important;
	color: var(--ldr-vsel-text) !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	text-align: center;
	line-height: 1.2;
	margin-left: 0px !important;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.ldr-vsel .ldr-vsel__option:hover {
	border-color: #c9c9c9 !important;
	background: #fafafa !important;
}

.ldr-vsel .ldr-vsel__option:active {
	transform: scale(0.99);
}

.ldr-vsel__trigger {
	margin-left: 0px !important;
}
.reset_variations {
	display: none!important;
}

.ldr-vsel .ldr-vsel__option.is-selected {
	border-color: var(--ldr-vsel-accent) !important;
	color: var(--ldr-vsel-accent) !important;
	box-shadow: 0 0 0 1px var(--ldr-vsel-accent);
}

.ldr-vsel .ldr-vsel__option.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
	box-shadow: none;
}

.ldr-vsel .ldr-vsel__option.is-disabled:hover {
	border-color: #ededed !important;
	background: #fff !important;
}

/* --- Rangée : sélecteur de variation + "Type d'occasion" côte à côte --- */
.ldr-var-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 18px 28px;
	margin: 0 0 18px;
}

.ldr-var-row > .variations,
.ldr-var-row > .ldr-occasion-field {

	min-width: 0;
	margin: 0;
	width: fit-content !important;
}

/* --- Champ informatif "Type d'occasion" (produit carte-cadeau) --- */
.ldr-occasion-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 18px 0;
}

.ldr-occasion-field .pwgc-label,
.ldr-occasion-field > label {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #1e1e1e;
}

/* Barre de défilement discrète */
.ldr-vsel__panel::-webkit-scrollbar {
	width: 8px;
}

.ldr-vsel__panel::-webkit-scrollbar-thumb {
	background: #d8d8d8;
	border-radius: 8px;
}

/* ===========================================================================
 * Formulaire carte-cadeau PW Gift Cards (#pwgc-purchase-container)
 * Champs Pour / De / Message, harmonisés avec le sélecteur de variation.
 * ========================================================================= */
#pwgc-purchase-container {
	--pwgc-accent: #d71b03;
	--pwgc-border: #d9d9d9;
	--pwgc-text: #1e1e1e;
	--pwgc-muted: #8a8a8a;

	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 18px 0 8px;
	background: transparent;
}

#pwgc-purchase-container .pwgc-field-container {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	background: transparent;
	border: 0;
	padding: 0;
}

#pwgc-purchase-container .pwgc-label,
#pwgc-purchase-container label.pwgc-label {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pwgc-text);
}

#pwgc-purchase-container .pwgc-input-text,
#pwgc-purchase-container input[type="text"],
#pwgc-purchase-container input[type="email"],
#pwgc-purchase-container textarea {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 16px;
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
	border: 1.5px solid var(--pwgc-border);
	border-radius: 14px;
	color: var(--pwgc-text);
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#pwgc-purchase-container textarea {
	min-height: 96px;
	resize: vertical;
}

#pwgc-purchase-container .pwgc-input-text:hover,
#pwgc-purchase-container textarea:hover {
	border-color: #bdbdbd;
}

#pwgc-purchase-container .pwgc-input-text:focus,
#pwgc-purchase-container input[type="text"]:focus,
#pwgc-purchase-container input[type="email"]:focus,
#pwgc-purchase-container textarea:focus {
	outline: none;
	border-color: var(--pwgc-accent);
	box-shadow: 0 0 0 3px rgba(215, 27, 3, 0.15);
}

#pwgc-purchase-container ::placeholder {
	color: var(--pwgc-muted);
	opacity: 1;
}

#pwgc-purchase-container .pwgc-subtitle {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--pwgc-muted);
}

#pwgc-purchase-container #pwgc-quantity-one-per-recipient .pwgc-label {
	font-weight: 600;
}

#pwgc-purchase-container #pwgc-message-characters-remaining {
	font-variant-numeric: tabular-nums;
}

.pwgc-field-container {
	margin-bottom: 14px !important;
  }

  
.ldr-occasion-field .pwgc-label, .ldr-occasion-field > label {
	margin-bottom: 8px;
	font-size: 14.4px;
	margin-top: 3px;
  
  }

  
#pwgc-purchase-container {
	margin-top: 0px;
  }