/* Woo İndirim & Kampanyalar — ürün sayfası kutusu ve sepet toplam satırları.
   Tema uyumu için renkler CSS değişkenleriyle ezilebilir:
   .bi-badge { --bi-badge-accent: #c0392b; } */

.bi-badge {
	--bi-badge-accent: #b3261e;
	--bi-badge-accent-soft: #fdf1f0;
	--bi-badge-border: #f3d9d7;
	--bi-badge-text: #5f6368;
	--bi-badge-note: #6b7280;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 6px;
	/* Kutu, bulunduğu alanın tamamını kaplar; yatay dolgu genişliği daraltmaz.
	   max-width/align-self, tema kapsayıcılarının daraltmasını engeller. */
	width: 100%;
	max-width: none;
	align-self: stretch;
	margin: 12px 0;
	padding: 14px 0;
	background: var(--bi-badge-accent-soft);
	border: 1px solid var(--bi-badge-border);
	border-radius: 8px;
	font-size: 14px;
	line-height: 24px;
	text-align: center;
}

.bi-badge *,
.bi-badge *::before,
.bi-badge *::after { box-sizing: border-box; }

.bi-badge__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--bi-badge-text);
	font-size: 13px;
	line-height: 24px;
}

.bi-badge__row--main {
	color: var(--bi-badge-accent);
	font-size: 15px;
	font-weight: 500;
	line-height: 24px;
}

.bi-badge__row strong { font-weight: 700; }

.bi-badge__icon {
	flex: 0 0 auto;
	color: currentColor;
}

.bi-badge__date {
	font-weight: 400;
	opacity: .85;
}

/* --- Ürün listelerinde sepetteki fiyat --------------------------------- */

.bi-loop-price {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	width: 100%;
	margin: 8px 0 4px;
	padding: 8px 10px;
	background: #dcfce7;
	border: 1px solid #86efac;
	border-radius: 8px;
	color: #14532d;
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}

.bi-loop-price__icon {
	flex: 0 0 auto;
	color: #16a34a;
}

/* Tutar, etiketin geri kalanından belirgin biçimde iri. */
.bi-loop-price .woocommerce-Price-amount,
.bi-loop-price bdi,
.bi-loop-price ins {
	color: #15803d;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
}

/* --- Miktar / kademeli indirim tablosu ---------------------------------- */

.bi-tiers {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	align-self: stretch;
	margin: 0 0 10px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #0f172b;
	font-size: 13px;
	line-height: 20px;
}

.bi-tiers *,
.bi-tiers *::before,
.bi-tiers *::after { box-sizing: border-box; }

.bi-tiers__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
}

.bi-tiers__head .bi-badge__icon { flex: 0 0 auto; color: #b3261e; }

.bi-tiers__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: auto;
}

.bi-tiers__table th,
.bi-tiers__table td {
	padding: 6px 8px;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	text-align: center;
	font-size: 13px;
	line-height: 20px;
}

.bi-tiers__table thead th {
	color: #62748e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.bi-tiers__table tbody tr:last-child td { border-bottom: 0; }

.bi-tiers__rate { color: #b3261e; font-weight: 700; }

.bi-tiers__unit { font-weight: 700; white-space: nowrap; }

.bi-tiers__note {
	margin: 8px 0 0;
	color: #62748e;
	font-size: 11.5px;
	line-height: 16px;
	text-align: center;
}

/* --- Sepet indirimleri bloğu (ürüne değil sepete ait) ------------------- */

.bi-cart-note {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	max-width: none;
	align-self: stretch;
	margin: 0 0 10px;
	padding: 10px 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	color: #166534;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
}

.bi-cart-note *,
.bi-cart-note *::before,
.bi-cart-note *::after { box-sizing: border-box; }

.bi-cart-note__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.bi-cart-note .bi-badge__icon {
	flex: 0 0 auto;
	color: #16a34a;
}

.bi-cart-note strong { font-weight: 700; }

/* --- Uyarı notu bloğu (en altta, ayrı) --------------------------------- */

.bi-note {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: none;
	align-self: stretch;
	margin: 0 0 12px;
	padding: 10px 12px;
	background: #eff4ff;
	border: 1px solid #c7d9fd;
	border-radius: 8px;
	color: #1e40af;
	font-size: 12px;
	line-height: 18px;
	text-align: center;
}

.bi-note *,
.bi-note *::before,
.bi-note *::after { box-sizing: border-box; }

.bi-note .bi-badge__icon {
	flex: 0 0 auto;
	color: #2563eb;
}

/* [bi_indirim tam="1"] — kutuyu daraltan tema kapsayıcılarını da genişletir.
   Yalnızca kısa kodda açıkça istendiğinde devreye girer. */
.bi-full { width: 100% !important; max-width: none !important; }

:is(p, div, section, article, aside):has( > .bi-full ),
:is(p, div, section, article, aside):has( > * > .bi-full ) {
	width: 100% !important;
	max-width: none !important;
}

/* --- Sepet / ödeme toplamları ------------------------------------------ */

/* İndirim satırları front.js ile kargonun üstüne taşınır; taşınan satırlar
   .bi-total-row--discount sınıfını alır. */
.bi-total-row--discount td,
.bi-fee-dup { color: #b3261e; white-space: nowrap; }

.bi-total-row--after th,
.bi-total-row--after td { font-weight: 600; }
