/* OkyBee – fiche produit : sélecteur de lots, total, encadré de réassurance. */

/* Prix « Dès 3,10 € le piège » (fiche et boutique) */
.price .okb-from,
.price .okb-from-unit {
	font-size: 0.62em;
	font-weight: 500;
	color: #3d3d3d;
	letter-spacing: normal;
}

.price .okb-from {
	margin-right: 0.15em;
}

/* Sélecteur de lots */
.okb-lots {
	margin: 20px 0 16px;
	color: #000000;
}

.okb-lots-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.okb-lots-list {
	display: grid;
	gap: 8px;
}

.okb-lots .okb-lot {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	box-sizing: border-box;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #dadada;
	border-radius: 10px;
	background: #ffffff;
	color: #000000;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.okb-lots .okb-lot:hover {
	border-color: #a8a8a8;
}

.okb-lots .okb-lot.is-selected {
	border-color: #ffd700;
	background: #fffbe3;
	box-shadow: 0 0 0 1px #ffd700;
}

.okb-lots .okb-lot.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Le vrai bouton radio reste accessible au clavier, mais invisible */
.okb-lots .okb-lot input[type="radio"] {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 18px;
	height: 18px;
	margin: -9px 0 0;
	opacity: 0;
	pointer-events: none;
}

.okb-lot-radio {
	flex: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 2px solid #8c8c8c;
	border-radius: 50%;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.okb-lot.is-selected .okb-lot-radio {
	border-color: #000000;
	box-shadow: inset 0 0 0 3px #ffffff;
	background: #000000;
}

.okb-lots .okb-lot input[type="radio"]:focus-visible + .okb-lot-radio {
	outline: 2px solid #000000;
	outline-offset: 3px;
}

.okb-lot-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 3px;
}

.okb-lot-name {
	font-weight: 600;
}

.okb-lot-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e7f4ea;
	color: #1b5a2b;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	white-space: nowrap;
}

.okb-lot-per {
	flex-basis: 100%;
	font-size: 13.5px;
	color: #444444;
}

.okb-lot-per .woocommerce-Price-amount,
.okb-lot-ref .woocommerce-Price-amount {
	font-weight: inherit;
	color: inherit;
}

.okb-lot-prices {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
	white-space: nowrap;
}

.okb-lot-price {
	font-size: 16px;
	font-weight: 700;
}

.okb-lot-price .woocommerce-Price-amount {
	color: #000000;
	font-weight: 700;
}

.okb-lot-ref {
	font-size: 13px;
	color: #6a6a6a;
}

.okb-lot-ref del {
	color: inherit;
	opacity: 1;
	text-decoration: line-through;
}

.okb-lots-note {
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: #4a4a4a;
}

/* Les boutons d'origine et le prix répété disparaissent quand le sélecteur est là */
.okb-lots ~ table.variations,
.okb-lots ~ .single_variation_wrap .woocommerce-variation-price,
.okb-lots ~ .single_variation_wrap .woocommerce-variation-description:empty {
	display: none !important;
}

/* Total */
.okb-total {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.4;
	color: #000000;
}

.okb-total[hidden],
.okb-total-free[hidden] {
	display: none;
}

.okb-total-amount {
	font-size: 17px;
	font-weight: 700;
}

.okb-total-pieces {
	color: #444444;
}

.okb-total-free {
	padding: 2px 8px;
	border-radius: 999px;
	background: #e7f4ea;
	color: #1b5a2b;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

/* Encadré de réassurance */
.okb-assurance {
	clear: both;
	display: grid;
	gap: 8px;
	margin: 18px 0 4px;
	padding: 14px 16px;
	list-style: none;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fafafa;
}

.okb-assurance li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.35;
	color: #1a1a1a;
}

.okb-assurance-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ffd700;
	color: #000000;
}

.okb-assurance-icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

@media (max-width: 420px) {
	.okb-lots .okb-lot {
		gap: 10px;
		padding: 10px 12px;
		font-size: 14.5px;
	}

	.okb-lots .okb-lot input[type="radio"] {
		left: 12px;
	}

	.okb-lot-per {
		font-size: 13px;
	}

	.okb-lot-price {
		font-size: 15px;
	}

	.okb-assurance {
		padding: 12px 14px;
	}

	.okb-assurance li {
		font-size: 13.5px;
	}
}

/* Panier : mode de livraison offert */
.okb-rate-free {
	color: #1b5a2b;
	font-weight: 600;
}

/* Boutique : masque l'étiquette « Volume » (illisible, les boutons de lots suffisent) */
.cfvsw-shop-variations td.label {
	display: none;
}

/* Encadré produit [okybee_produit] (articles, accueil) */
.okb-box {
	margin: 2em 0;
	padding: 20px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	color: #000;
}

.okb-box-head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 14px;
}

.okb-box-thumb {
	flex: 0 0 110px;
	line-height: 0;
}

.okb-box-thumb img {
	display: block;
	width: 110px;
	height: 110px;
	margin: 0 !important;
	border-radius: 8px;
	object-fit: cover;
}

.okb-box-info {
	flex: 1 1 auto;
	min-width: 0;
}

.okb-box .okb-box-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.okb-box .okb-box-title a {
	color: #000;
	text-decoration: none;
}

.okb-box .okb-box-title a:hover {
	text-decoration: underline;
}

.okb-box .okb-box-price {
	margin: 0 0 6px;
	color: #000;
	font-size: 18px;
	font-weight: 600;
}

.okb-box-desc,
.okb-box-desc p {
	margin: 0;
	color: #3d3d3d;
	font-size: 14px;
	line-height: 1.5;
}

.okb-box .variations_form {
	margin: 0;
}

.okb-box .okb-lots {
	margin-top: 0;
}

@media (max-width: 480px) {
	.okb-box {
		padding: 14px;
	}

	.okb-box-thumb {
		flex-basis: 76px;
	}

	.okb-box-thumb img {
		width: 76px;
		height: 76px;
	}

	.okb-box-desc {
		display: none;
	}
}

/* Dans le contenu d'un article ou d'une page, le thème décale les listes : même rendu que sur la fiche. */
.entry-content ul.okb-assurance {
	margin: 18px 0 4px;
	padding: 14px 16px;
}

.entry-content ul.okb-assurance li {
	margin: 0;
}

/* Encadré « Comment sont gérés les avis ? » au-dessus du formulaire d'avis. */
.okb-avis-info {
	margin: 0 0 20px;
	padding: 10px 14px;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fafafa;
	color: #3a3a3a;
	font-size: 0.9em;
	line-height: 1.5;
}

.okb-avis-info summary {
	cursor: pointer;
	font-weight: 600;
	color: #3a3a3a;
}

.okb-avis-info ul {
	margin: 10px 0 6px 1.2em;
	padding: 0;
}

.okb-avis-info li {
	margin: 0 0 6px;
}

.okb-avis-info p {
	margin: 0;
}

.okb-avis-info a {
	text-decoration: underline;
}
