/* =========================================================
   WooCommerce WhatsApp Destek Butonu — Stil Dosyası
   Not: Bazı temalar <a> etiketlerine kendi stillerini
   (büyük harf, renk, alt çizgi vb.) uyguladığı için kritik
   özellikler !important ile korunmuştur.
   ========================================================= */

.wwd-whatsapp-widget {
	--wwd-btn-color: #ff6600;
	--wwd-border: #ececec;

	display: flex !important;
	flex-direction: column !important;
	gap: 14px;
	width: 100%;
	max-width: 420px;
	margin: 18px 0;
	padding: 16px 18px;
	border: 1px solid var(--wwd-border);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	font-family: inherit;
	box-sizing: border-box;
	overflow: visible;
}

.wwd-whatsapp-widget,
.wwd-whatsapp-widget * {
	box-sizing: border-box;
}

/* Üst kısım: ikon + başlık + durum */
.wwd-whatsapp-widget a.wwd-info-col {
	display: flex !important;
	align-items: center !important;
	gap: 10px;
	text-decoration: none !important;
	color: #1f2937 !important;
	width: 100%;
}

.wwd-whatsapp-widget a.wwd-info-col:hover,
.wwd-whatsapp-widget a.wwd-info-col:focus {
	text-decoration: none !important;
	color: #1f2937 !important;
}

.wwd-whatsapp-widget .wwd-icon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	line-height: 0;
}

.wwd-whatsapp-widget .wwd-icon svg {
	display: block;
	width: 32px;
	height: 32px;
}

.wwd-whatsapp-widget .wwd-title-row {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	min-width: 0;
}

.wwd-whatsapp-widget .wwd-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.3;
}

.wwd-whatsapp-widget .wwd-status {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	line-height: 1;
	white-space: nowrap;
}

.wwd-whatsapp-widget .wwd-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	display: inline-block;
}

/* Online durumu — yeşil efekt */
.wwd-whatsapp-widget .wwd-status.wwd-online {
	color: #25d366 !important;
}

.wwd-whatsapp-widget .wwd-status.wwd-online .wwd-status-dot {
	background: #25d366;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
	animation: wwd-pulse-green 1.8s infinite;
}

/* Offline durumu — kırmızı efekt */
.wwd-whatsapp-widget .wwd-status.wwd-offline {
	color: #e74c3c !important;
}

.wwd-whatsapp-widget .wwd-status.wwd-offline .wwd-status-dot {
	background: #e74c3c;
	box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6);
	animation: wwd-pulse-red 1.8s infinite;
}

@keyframes wwd-pulse-green {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
	70% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes wwd-pulse-red {
	0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55); }
	70% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
	100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Alt kısım: Soru Sorun butonu — her zaman tam genişlik, ayrı satır */
.wwd-whatsapp-widget a.wwd-ask-btn {
	display: block !important;
	width: 100%;
	background: var(--wwd-btn-color) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	text-transform: none !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.2px;
	padding: 13px 20px;
	border-radius: 8px;
	text-align: center;
	line-height: 1.2;
	transition: filter 0.2s ease, transform 0.15s ease;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.wwd-whatsapp-widget a.wwd-ask-btn:hover,
.wwd-whatsapp-widget a.wwd-ask-btn:focus {
	filter: brightness(0.93);
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

.wwd-whatsapp-widget a.wwd-ask-btn:active {
	transform: translateY(0);
	filter: brightness(0.87);
}

/* =========================================================
   Responsive ayarlar
   ========================================================= */

@media (max-width: 480px) {
	.wwd-whatsapp-widget {
		max-width: 100%;
		padding: 14px 16px;
		gap: 12px;
	}

	.wwd-whatsapp-widget .wwd-title {
		font-size: 14px !important;
	}

	.wwd-whatsapp-widget .wwd-status {
		font-size: 12px !important;
	}

	.wwd-whatsapp-widget a.wwd-ask-btn {
		font-size: 13px !important;
		padding: 12px 16px;
	}
}

@media (max-width: 340px) {
	.wwd-whatsapp-widget .wwd-icon,
	.wwd-whatsapp-widget .wwd-icon svg {
		width: 26px;
		height: 26px;
	}
}
