/* Serili Satış - tekil ürün sayfası seri kutusu */
.serili-satis-box {
	margin: 1em 0 1.5em;
	padding: 16px 18px;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fafafa;
	max-width: 420px;
}

.serili-satis-title {
	font-weight: 600;
	font-size: 1.05em;
	margin-bottom: 10px;
}

.serili-satis-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
}

.serili-satis-table th,
.serili-satis-table td {
	padding: 6px 10px;
	text-align: left;
	border-bottom: 1px solid #ececec;
	font-size: 0.95em;
}

.serili-satis-table thead th {
	background: #f0f0f0;
	font-weight: 600;
}

.serili-satis-table td:last-child,
.serili-satis-table th:last-child {
	text-align: right;
}

.serili-satis-table tfoot th {
	border-top: 2px solid #ddd;
	border-bottom: none;
	font-weight: 700;
}

.serili-satis-prices {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.serili-satis-prices li {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
}

.serili-satis-prices .serili-satis-series-price {
	border-top: 1px solid #e3e3e3;
	padding-top: 8px;
	margin-top: 4px;
	font-size: 1.1em;
}

.serili-satis-prices .serili-satis-series-price strong {
	color: #b12704;
}

.serili-satis-note {
	margin: 0;
	font-size: 0.85em;
	color: #777;
}

/* Varyasyon seçilene kadar bekleyen durum */
.serili-satis-pending .serili-satis-unit-price,
.serili-satis-pending .serili-satis-series-price-value {
	color: #999;
	font-weight: 400;
	font-style: italic;
}

.serili-satis-empty-row td {
	color: #999;
	font-style: italic;
	text-align: center !important;
}

/* WhatsApp "Hemen Sipariş Ver" butonu */
.serili-whatsapp-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: #25d366 !important;
	color: #fff !important;
	border: none !important;
	margin-left: 10px;
	margin-top: 8px;
	vertical-align: middle;
	text-decoration: none;
}

.serili-whatsapp-button:hover,
.serili-whatsapp-button:focus {
	background-color: #1ebe5b !important;
	color: #fff !important;
}

.serili-whatsapp-button .serili-wa-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: currentColor;
}

/* Dar ekranlarda sepete ekle butonunun altına tam genişlik geçsin */
@media (max-width: 575px) {
	.serili-whatsapp-button {
		display: flex !important;
		width: 100%;
		margin-left: 0;
	}
}

/* Para birimi seçici (switcher) — site/tema rengini alır.
   Aktif renk sırası: ayardan girilen renk (--serili-accent) -> Woodmart -> blok tema ->
   Elementor -> nötr fallback. Pasif butonlar header metin rengini (currentColor) alır. */
.serili-para-switcher {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	--serili-accent-resolved: var(--serili-accent, var(--wd-primary-color, var(--wp--preset--color--primary, var(--e-global-color-primary, #0a7cff))));
}

.serili-para-btn {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	color: inherit !important;
	opacity: 0.7;
	font-size: 0.9em;
	line-height: 1.3;
	text-decoration: none;
	font-weight: 600;
}

.serili-para-btn:hover {
	opacity: 1;
}

.serili-para-btn.active {
	background: var(--serili-accent-resolved);
	border-color: var(--serili-accent-resolved);
	color: #fff !important;
	opacity: 1;
}

/* Sağ altta otomatik kayan kutu */
.serili-para-float {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	background: #fff;
	padding: 8px;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 575px) {
	.serili-para-float {
		right: 10px;
		bottom: 10px;
		padding: 6px;
	}
}

/* Sabit (sticky) yuvarlak WhatsApp butonu — konum/boyut inline style ile ayardan gelir */
.serili-whatsapp-float {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #25d366;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.serili-whatsapp-float:hover,
.serili-whatsapp-float:focus {
	background-color: #1ebe5b;
	color: #fff !important;
	transform: scale(1.08);
}

/* İkon, buton çapına göre orantılı ölçeklenir */
.serili-whatsapp-float .serili-wa-icon {
	width: 57%;
	height: 57%;
	flex: 0 0 auto;
	fill: currentColor;
}

/* Ödeme sayfasındaki "Siparişi WhatsApp ile İlet" butonu: place order altında tam genişlik */
.serili-whatsapp-checkout {
	display: flex !important;
	width: 100%;
	margin-left: 0;
	margin-top: 12px;
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 1.05em;
}
