:root{
	/* Temel renkler. Nihai değerler WooCommerce > Teklif Görünümü
	   sayfasından üretilen satır içi CSS ile ezilir. */
	--mfx-primary:#6CBE45;
	--mfx-primary-dark:#4E9E31;
	--mfx-alt:#16243B;
	--mfx-green:#6CBE45;
	--mfx-green-dark:#4E9E31;
	--mfx-navy:#16243B;
	--mfx-slate:#48565F;
	--mfx-line:#E2E6E9;
	--mfx-muted:#8A959B;
	--mfx-soft:#F4F6F7;
	--mfx-box-bg:#FAFBFB;
	--mfx-box-border:#DFE4E7;
}

/* ---------- Ürün sayfası teklif kutusu ---------- */

.mfx-quote-box{
	margin-top:22px;
	border:1px solid var(--mfx-box-border);
	border-radius:10px;
	padding:18px 20px 16px;
	background:var(--mfx-box-bg);
}

.mfx-quote-box-head{
	display:flex;
	align-items:center;
	gap:8px;
	margin-bottom:14px;
}
.mfx-quote-box-title{
	font-size:13px;
	font-weight:600;
	letter-spacing:.04em;
	text-transform:uppercase;
	color:var(--mfx-primary);
}
.mfx-quote-box-head:after{
	content:"";
	flex:1;
	height:1px;
	background:var(--mfx-box-border);
}

.mfx-quote-box-actions{
	display:flex;
	flex-wrap:wrap;
	gap:10px;
}

/* Birincil: toplu alım */
.mfx-bulk-button{
	flex:1 1 240px;
	background:var(--mfx-primary);
	color:#fff;
	border:1px solid var(--mfx-primary);
	border-radius:6px;
	padding:13px 22px;
	font-size:15px;
	font-weight:500;
	line-height:1.2;
	cursor:pointer;
	transition:background .2s ease,border-color .2s ease;
}
.mfx-bulk-button:hover,
.mfx-bulk-button:focus{
	background:var(--mfx-primary-dark);
	border-color:var(--mfx-primary-dark);
	color:#fff;
}

/* İkincil: teklif listesi */
.mfx-list-add{
	flex:1 1 200px;
	background:transparent;
	border:1px solid var(--mfx-primary);
	color:var(--mfx-primary);
	border-radius:6px;
	padding:13px 22px;
	font-size:15px;
	font-weight:500;
	line-height:1.2;
	cursor:pointer;
	transition:all .2s ease;
}
.mfx-list-add:hover,
.mfx-list-add:focus{
	background:var(--mfx-primary);
	color:#fff;
}
.mfx-list-add.is-flash,
.mfx-list-add.is-in-list{
	background:var(--mfx-primary);
	border-color:var(--mfx-primary);
	color:#fff;
}

/* Kalıcı "listeye eklendi" bildirimi */
.mfx-list-added{
	display:flex;
	align-items:center;
	gap:8px;
	margin-top:12px;
	font-size:14px;
	color:var(--mfx-primary-dark);
	font-weight:500;
}
.mfx-list-added-mark{
	width:18px;
	height:18px;
	flex:0 0 18px;
	border-radius:50%;
	background:var(--mfx-primary);
	position:relative;
}
.mfx-list-added-mark:after{
	content:"";
	position:absolute;
	left:6px;
	top:3px;
	width:4px;
	height:9px;
	border:solid #fff;
	border-width:0 2px 2px 0;
	transform:rotate(45deg);
}
.mfx-list-added-link{
	font-weight:400;
	font-size:13px;
	color:var(--mfx-primary-dark);
	text-decoration:underline;
}
.mfx-list-added-link:hover{ color:var(--mfx-primary); }

.mfx-bulk-note{
	margin:12px 0 0;
	font-size:13px;
	color:var(--mfx-muted);
	line-height:1.5;
}

@media (max-width:600px){
	.mfx-quote-box{ padding:16px; }
	.mfx-quote-box-actions{ flex-direction:column; }
	.mfx-bulk-button,
	.mfx-list-add{ width:100%; flex:1 1 auto; }
}

/* ---------- Yüzen sayaç ---------- */

.mfx-list-counter{
	position:fixed;
	right:18px;
	bottom:18px;
	z-index:340;
	display:flex;
	align-items:center;
	gap:8px;
	background:var(--mfx-alt);
	color:#fff;
	border-radius:30px;
	padding:12px 20px;
	font-size:14px;
	font-weight:500;
	text-decoration:none;
	box-shadow:0 6px 20px rgba(22,36,59,.28);
}
.mfx-list-counter:hover{ background:#0E1829; color:#fff; }
.mfx-list-counter-icon{
	width:16px;
	height:16px;
	border:2px solid currentColor;
	border-radius:3px;
	display:inline-block;
}
.mfx-list-counter-badge{
	background:var(--mfx-primary);
	color:#fff;
	border-radius:20px;
	min-width:22px;
	height:22px;
	line-height:22px;
	text-align:center;
	font-size:12px;
	padding:0 6px;
}
@media (max-width:782px){
	.mfx-list-counter{
		--mfx-counter-mobile-side:12px;
		--mfx-mobile-obstruction:0px;
		width:48px;
		height:48px;
		min-width:48px;
		min-height:48px;
		padding:0;
		border-radius:50%;
		display:grid;
		place-items:center;
		gap:0;
		font-size:13px;
		box-shadow:0 6px 18px rgba(22,36,59,.24);
		transition:bottom .18s ease,right .18s ease,left .18s ease,transform .18s ease;
	}
	.mfx-list-counter[hidden]{display:none!important;}
	.mfx-list-counter-text{display:none;}
	.mfx-list-counter-icon{width:18px;height:18px;}
	.mfx-list-counter-badge{
		position:absolute;
		top:-6px;
		right:-5px;
		min-width:22px;
		height:22px;
		line-height:22px;
		padding:0 5px;
		box-shadow:0 2px 5px rgba(0,0,0,.18);
	}
}

/* ---------- Sayfa içi teklif formu ---------- */

.mfx-quote-page,
.mfx-quote-list{
	max-width:760px;
	margin:0 auto;
}
.mfx-quote-title{
	font-size:26px;
	font-weight:500;
	color:var(--mfx-slate);
	margin:0 0 8px;
}
.mfx-quote-lead{
	color:var(--mfx-muted);
	margin:0 0 24px;
	font-size:15px;
}
.mfx-quote-subtitle{
	font-size:18px;
	font-weight:500;
	color:var(--mfx-slate);
	margin:26px 0 14px;
}
.mfx-quote-form{
	background:#fff;
	border:1px solid var(--mfx-line);
	border-radius:12px;
	padding:26px;
}
.mfx-quote-form .mfx-form-grid{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:16px;
}
.mfx-quote-form label{
	display:block;
	font-size:14px;
	font-weight:500;
	color:var(--mfx-slate);
}
.mfx-quote-form label span{ color:#E4342B; }
.mfx-quote-form input[type="text"],
.mfx-quote-form input[type="tel"],
.mfx-quote-form input[type="email"],
.mfx-quote-form input[type="number"],
.mfx-quote-form select,
.mfx-quote-form textarea{
	width:100%;
	margin-top:6px;
	border:1px solid var(--mfx-line);
	border-radius:6px;
	padding:11px 13px;
	font-size:15px;
	font-weight:400;
	background:#fff;
}
.mfx-quote-form input:focus,
.mfx-quote-form select:focus,
.mfx-quote-form textarea:focus{
	outline:none;
	border-color:var(--mfx-primary);
	box-shadow:0 0 0 3px rgba(108,190,69,.18);
}
.mfx-quote-topic,
.mfx-quote-form .mfx-message-label{
	display:block;
	margin-top:16px;
}
.mfx-quote-form .mfx-consent{
	display:flex;
	align-items:flex-start;
	gap:10px;
	margin-top:18px;
	font-size:13px;
	font-weight:400;
	color:var(--mfx-muted);
	line-height:1.6;
}
.mfx-quote-form .mfx-consent input{ margin-top:3px; }
.mfx-quote-form .mfx-consent a{ color:var(--mfx-primary-dark); text-decoration:underline; }
.mfx-quote-form .mfx-submit-button{
	margin-top:20px;
	background:var(--mfx-primary);
	border:0;
	color:#fff;
	border-radius:6px;
	padding:14px 28px;
	font-size:15px;
	font-weight:500;
	cursor:pointer;
	width:100%;
}
.mfx-quote-form .mfx-submit-button:hover{ background:var(--mfx-primary-dark); }
.mfx-quote-form .mfx-submit-button:disabled{ opacity:.6; cursor:not-allowed; }
.mfx-quote-form .mfx-form-status{
	margin-top:14px;
	font-size:14px;
	padding:0;
}
.mfx-quote-form .mfx-form-status.is-success{
	color:#2E6B12;
	background:#EAF3DE;
	border-radius:6px;
	padding:12px 14px;
}
.mfx-quote-form .mfx-form-status.is-error{
	color:#A32D2D;
	background:#FCEBEB;
	border-radius:6px;
	padding:12px 14px;
}
.mfx-quote-form .mfx-hp{
	position:absolute;
	left:-9999px;
	width:1px;
	height:1px;
	overflow:hidden;
}
@media (max-width:600px){
	.mfx-quote-form{ padding:20px 16px; }
	.mfx-quote-form .mfx-form-grid{ grid-template-columns:1fr; }
}

/* ---------- Teklif listesi tablosu ---------- */

.mfx-list-table{
	width:100%;
	border-collapse:collapse;
	background:#fff;
	border:1px solid var(--mfx-line);
	border-radius:12px;
	overflow:hidden;
	margin-bottom:8px;
}
.mfx-list-table th{
	background:var(--mfx-soft);
	text-align:left;
	font-size:13px;
	font-weight:500;
	color:var(--mfx-slate);
	padding:12px 14px;
	border-bottom:1px solid var(--mfx-line);
}
.mfx-list-table td{
	padding:14px;
	border-bottom:1px solid var(--mfx-line);
	font-size:14px;
	color:var(--mfx-slate);
	vertical-align:middle;
}
.mfx-list-table tr:last-child td{ border-bottom:0; }
.mfx-list-table a{ color:var(--mfx-slate); font-weight:500; }
.mfx-list-table a:hover{ color:var(--mfx-primary); }
.mfx-list-table input[type="number"]{
	width:78px;
	border:1px solid var(--mfx-line);
	border-radius:6px;
	padding:8px 10px;
	font-size:14px;
}
.mfx-list-remove{
	background:transparent;
	border:0;
	color:#E4342B;
	font-size:13px;
	cursor:pointer;
	padding:4px 6px;
}
.mfx-list-remove:hover{ text-decoration:underline; }
.mfx-list-empty{
	background:var(--mfx-soft);
	border-radius:12px;
	padding:34px 20px;
	text-align:center;
	color:var(--mfx-muted);
	font-size:15px;
}

@media (max-width:600px){
	.mfx-list-table thead{ display:none; }
	.mfx-list-table,
	.mfx-list-table tbody,
	.mfx-list-table tr,
	.mfx-list-table td{ display:block; width:100%; }
	.mfx-list-table tr{ border-bottom:1px solid var(--mfx-line); padding:6px 0; }
	.mfx-list-table td{ border:0; padding:6px 14px; }
	.mfx-list-table td[data-label]:before{
		content:attr(data-label);
		display:block;
		font-size:11px;
		color:var(--mfx-muted);
		margin-bottom:2px;
	}
}

/* ---------- Yönetim paneli kalem başlığı ---------- */

.mfx-items-title{
	margin:18px 0 8px;
	font-size:14px;
}

/* ---------- Pasif "listede" butonu ---------- */

.mfx-list-add:disabled,
.mfx-list-add.is-in-list{
	background:var(--mfx-soft);
	border-color:var(--mfx-box-border);
	color:var(--mfx-muted);
	cursor:default;
	pointer-events:none;
	position:relative;
	padding-left:38px;
}
.mfx-list-add.is-in-list:before{
	content:"";
	position:absolute;
	left:16px;
	top:50%;
	width:14px;
	height:14px;
	margin-top:-7px;
	border-radius:50%;
	background:var(--mfx-primary);
}
.mfx-list-add.is-in-list:after{
	content:"";
	position:absolute;
	left:21px;
	top:50%;
	margin-top:-5px;
	width:3px;
	height:7px;
	border:solid #fff;
	border-width:0 2px 2px 0;
	transform:rotate(45deg);
}
.mfx-list-add.is-flash{
	background:var(--mfx-primary);
	border-color:var(--mfx-primary);
	color:#fff;
	pointer-events:none;
	padding-left:22px;
}
.mfx-list-add.is-flash:before,
.mfx-list-add.is-flash:after{ display:none; }

/* ---------- Hesabım > Teklif listem ---------- */

.woocommerce-MyAccount-content .mfx-quote-list{ max-width:none; }
.woocommerce-MyAccount-content .mfx-quote-form{ padding:22px; }

/* ---------- Sayfadan ayrılma uyarısı ---------- */

.mfx-exit-modal{
	position:fixed;
	inset:0;
	z-index:999998;
	display:none;
	align-items:center;
	justify-content:center;
	padding:20px;
}
.mfx-exit-modal.is-open{ display:flex; }
.mfx-exit-backdrop{
	position:absolute;
	inset:0;
	background:rgba(22,36,59,.55);
}
.mfx-exit-dialog{
	position:relative;
	background:#fff;
	border-radius:14px;
	padding:32px 30px 26px;
	max-width:440px;
	width:100%;
	text-align:center;
	box-shadow:0 20px 60px rgba(15,25,40,.28);
	animation:mfx-exit-in .22s ease-out;
}
@keyframes mfx-exit-in{
	from{ opacity:0; transform:translateY(14px); }
	to{ opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion:reduce){
	.mfx-exit-dialog{ animation:none; }
}
.mfx-exit-close{
	position:absolute;
	right:12px;
	top:8px;
	background:none;
	border:0;
	font-size:26px;
	line-height:1;
	color:var(--mfx-muted);
	cursor:pointer;
	padding:4px 8px;
}
.mfx-exit-close:hover{ color:var(--mfx-slate); }
.mfx-exit-icon{
	display:block;
	width:52px;
	height:52px;
	margin:0 auto 16px;
	border-radius:50%;
	background:rgba(108,190,69,.14);
	position:relative;
}
.mfx-exit-icon:before{
	content:"";
	position:absolute;
	left:50%;
	top:13px;
	width:16px;
	height:14px;
	margin-left:-8px;
	border:2px solid var(--mfx-primary);
	border-radius:3px;
}
.mfx-exit-icon:after{
	content:"";
	position:absolute;
	left:50%;
	top:29px;
	width:22px;
	height:2px;
	margin-left:-11px;
	background:var(--mfx-primary);
	box-shadow:0 5px 0 var(--mfx-primary);
}
.mfx-exit-dialog h3{
	margin:0 0 10px;
	font-size:20px;
	font-weight:500;
	color:var(--mfx-slate);
}
.mfx-exit-text{
	margin:0 0 18px;
	font-size:14px;
	line-height:1.6;
	color:var(--mfx-muted);
}
.mfx-exit-summary{
	background:var(--mfx-soft);
	border-radius:10px;
	padding:14px 16px;
	text-align:left;
	margin-bottom:20px;
}
.mfx-exit-count{
	margin:0 0 8px;
	font-size:13px;
	font-weight:500;
	color:var(--mfx-primary-dark);
}
.mfx-exit-summary ul{
	margin:0;
	padding:0;
	list-style:none;
}
.mfx-exit-summary li{
	font-size:13px;
	color:var(--mfx-slate);
	padding:4px 0;
	display:flex;
	justify-content:space-between;
	gap:12px;
}
.mfx-exit-summary li span{ color:var(--mfx-muted); flex:0 0 auto; }
.mfx-exit-more{ color:var(--mfx-muted) !important; font-style:italic; }
.mfx-exit-actions{
	display:flex;
	flex-direction:column;
	gap:9px;
}
.mfx-exit-cta{
	background:var(--mfx-primary);
	color:#fff !important;
	border-radius:6px;
	padding:13px 20px;
	font-size:15px;
	font-weight:500;
	text-decoration:none;
	display:block;
}
.mfx-exit-cta:hover{ background:var(--mfx-primary-dark); color:#fff !important; }
.mfx-exit-dismiss{
	background:transparent;
	border:0;
	color:var(--mfx-muted);
	font-size:14px;
	cursor:pointer;
	padding:8px;
}
.mfx-exit-dismiss:hover{ color:var(--mfx-slate); text-decoration:underline; }

@media (max-width:600px){
	.mfx-exit-dialog{ padding:26px 20px 20px; }
}

/* ---------- Teklif listesinde ürün görseli ---------- */

.mfx-list-product{
	display:flex;
	align-items:center;
	gap:12px;
}
.mfx-list-thumb{
	flex:0 0 56px;
	width:56px;
	height:56px;
	border:1px solid var(--mfx-line);
	border-radius:6px;
	background:#fff;
	overflow:hidden;
	display:flex;
	align-items:center;
	justify-content:center;
}
.mfx-list-thumb img{
	max-width:100%;
	max-height:100%;
	width:auto;
	height:auto;
	display:block;
	object-fit:contain;
}
.mfx-thumb-empty{
	width:22px;
	height:22px;
	border:2px solid var(--mfx-line);
	border-radius:4px;
	display:block;
}
.mfx-list-name{ min-width:0; }
.mfx-list-name a{
	display:block;
	overflow-wrap:anywhere;
}

@media (max-width:600px){
	.mfx-list-thumb{ flex:0 0 44px; width:44px; height:44px; }
}

/* ---------- Ayrılma penceresindeki küçük görseller ---------- */

.mfx-exit-summary li img{
	width:28px;
	height:28px;
	border-radius:4px;
	border:1px solid var(--mfx-line);
	object-fit:contain;
	background:#fff;
	flex:0 0 28px;
}
.mfx-exit-summary li{ align-items:center; }
.mfx-exit-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* RC6: localStorage / teklif listesi kalıcı kayıt hatası */
.mfx-storage-error{
	position:fixed;
	left:50%;
	bottom:24px;
	transform:translateX(-50%);
	z-index:10050;
	max-width:min(560px,calc(100vw - 32px));
	padding:12px 16px;
	border-radius:8px;
	background:#8b1e1e;
	color:#fff;
	font-size:14px;
	line-height:1.45;
	box-shadow:0 8px 28px rgba(0,0,0,.22);
}
@media (max-width:782px){
	.mfx-storage-error{bottom:calc(92px + env(safe-area-inset-bottom));width:calc(100vw - 28px)}
}
.mfx-storage-error.mfx-storage-info{
	background:#2f5f73;
}

/* ---------- Yuzen sayac: tema catismalari ---------- */

/* Tema yan panelleri (sepet, mobil menu, filtre) acikken sayaci gizle. */
.wd-side-hidden.wd-opened ~ .mfx-list-counter{ display:none !important; }

/* Masaustunde WoodMart'in "yukari cik" butonuyla ust uste binmesin.
   Mobil yerlesim eklentinin kendi obstruction hesabina birakildi. */
@media (min-width:783px){
body[class*="wp-theme-woodmart"] .mfx-list-counter{ bottom:86px !important; }
}
