/* Oferte Livrare — componente publice. Stil neutru, preia fontul temei. */

.ol-ico { display: inline-block; vertical-align: -2px; }

/* ---------- Badge-uri OFERTĂ / CADOU, doar pe fotografia produsului ---------- */
.ol-thumb-wrap {
	position: relative;
	display: block;
	line-height: 0;
}
.ol-thumb-wrap img { display: block; }
.ol-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	pointer-events: none;
}
.ol-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	background: #d63638;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: .05em;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	pointer-events: none;
}
.ol-badge--cadou { background: #0a7a3d; }
.ol-badge-ico { vertical-align: 0; }
/* Pe miniaturile mici (tabel coș, mini-coș, comenzi) badge-urile ar acoperi poza. */
td.product-thumbnail .ol-badges,
.widget_shopping_cart .ol-badges,
.woocommerce-mini-cart .ol-badges,
.mini-cart-item .ol-badges { display: none; }

/* ---------- Cardul comun: panouri, mesaje, upsell ---------- */
.ol-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #e4e6ea;
	border-left: 3px solid #0a7a3d;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	font-size: .95em;
	color: inherit;
	text-align: left;
}
.ol-card--row { align-items: center; }
.ol-card-ico {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	color: #0a7a3d;
	margin-top: 1px;
}
.ol-card-body { flex: 1 1 auto; min-width: 0; }
.ol-card-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.ol-card-title {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 1.05em;
}
.ol-card-sub {
	display: inline-block;
	margin-left: 8px;
	font-weight: 400;
	font-size: .82em;
	opacity: .65;
}

/* Variante de mesaj */
.ol-note--muted { border-left-color: #8c8f94; }
.ol-note--muted .ol-card-ico { color: #646970; }
.ol-note--warn { border-left-color: #b45309; background: #fffaf1; }
.ol-note--warn .ol-card-ico { color: #b45309; }

/* ---------- Panoul „Alege-ți cadoul" ---------- */
.ol-choice-options { margin: 0 0 12px; }
.ol-choice-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 9px 12px;
	border: 1px solid #e4e6ea;
	border-radius: 8px;
	background: #fafbfb;
	cursor: pointer;
}
.ol-choice-list:has(input:checked) {
	border-color: #0a7a3d;
	background: #f2faf5;
}
.ol-choice-list input[type="radio"] { margin: 0; accent-color: #0a7a3d; }
.ol-choice-list-label { font-weight: 600; }
.ol-choice-list select {
	flex: 1 1 220px;
	max-width: 100%;
	margin-left: auto;
}
.ol-choice-submit { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Linia cadou din coș ---------- */
.ol-gift-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
	padding: 2px 8px;
	background: #e7f7ee;
	color: #0a7a3d;
	font-size: .78em;
	font-weight: 600;
	line-height: 1.5;
	border-radius: 999px;
	white-space: nowrap;
	vertical-align: 1px;
}
.ol-gift-ico { vertical-align: 0; }
.ol-gift-free { color: #0a7a3d; font-weight: 700; }
.ol-gift-qty { opacity: .7; }

/* ---------- Bannerul de oferte ---------- */
.ol-offers-banner {
	margin: 1em 0;
	padding: 18px 22px;
	border: 1px solid #e4e6ea;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.ol-offers { list-style: none; margin: 0; padding: 0; }
.ol-offer {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #f0f0f1;
}
.ol-offer:last-child { border-bottom: 0; }
.ol-offer-days {
	flex: 0 0 auto;
	min-width: 7.5em;
	padding: 2px 10px;
	background: #f0f0f1;
	color: #3c434a;
	font-weight: 700;
	text-transform: uppercase;
	font-size: .72em;
	letter-spacing: .04em;
	line-height: 1.7;
	border-radius: 999px;
	text-align: center;
}
.ol-offers-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: .8em 0 0;
	font-size: .85em;
	opacity: .7;
}

/* ---------- Pagina produsului: promoțiile la care participă produsul ---------- */
.ol-product-offers { margin: 14px 0; }
.ol-product-offers-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.ol-product-offer {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
}
.ol-product-offer .ol-ico { flex: 0 0 auto; margin-top: 2px; color: #0a7a3d; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.ol-card--row { flex-wrap: wrap; }
	.ol-card-btn { width: 100%; justify-content: center; }
	.ol-choice-list select { flex-basis: 100%; margin-left: 0; }
	.ol-offer { flex-wrap: wrap; gap: 6px; }
}
