/* ============================================================
 * Bouton "Je craque"
 * ============================================================ */

.ldr-craque-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.ldr-craque-btn:hover,
.ldr-craque-btn:focus {
	background: #000;
	color: #fff;
	opacity: 0.85;
}

.ldr-craque-btn__icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* Formulaire classique (input quantité + bouton standard) : masqué. */
.ldr-craque-fallback[hidden] {
	display: none !important;
}

/* Input quantité injecté par d'autres plugins à côté du bouton dans les
 * listes produits : masqué, seul le tooltip gère la quantité. */
*:has(> .ldr-craque-btn) > .quantity,
.quantity:has(+ .ldr-craque-btn) {
	display: none !important;
}

/* ============================================================
 * Tooltip tippy : thème "ldr-craque"
 * ============================================================ */

.tippy-box[data-theme~='ldr-craque'] {
	background: #f0f0f0;
	color: #000;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.tippy-box[data-theme~='ldr-craque'] .tippy-content {
	padding: 16px;
}

.tippy-box[data-theme~='ldr-craque'] .tippy-arrow {
	color: #f0f0f0;
}

.ldr-craque-pop {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ldr-craque-pop.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.ldr-craque-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(64px, 1fr));
	gap: 14px;
}

.ldr-craque-row--wide {
	grid-template-columns: repeat(2, 1fr);
}

/* Page produit : pas de case "Autre", la case 6 prend toute la largeur. */
.ldr-craque-row--solo {
	grid-template-columns: 1fr;
}

.ldr-craque-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.ldr-craque-choice,
.ldr-craque-other {
	width: 100%;
	background: #fff;
	border: 2px solid #e01b22;
	border-radius: 10px;
	padding: 12px 10px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	color: #000;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ldr-craque-choice:hover,
.ldr-craque-other:hover {
	background: #fdecec;
}

.ldr-craque-choice:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.ldr-craque-choice em {
	font-style: normal;
	color: #e01b22;
}

.ldr-craque-price {
	font-weight: 700;
	font-size: 14px;
	color: #7c7c7c;
	text-align: center;
}

.ldr-craque-price del {
	color: #b0b0b0;
	margin-right: 4px;
}

.ldr-craque-price strong {
	color: #e01b22;
}
