/* ==========================================================================
   MDM Hukuk – mobil alt iletişim çubuğu (≤1024px)
   Masaüstünde çubuk gizli, "Call Now and Chat Buttons" eklentisi çalışır.
   ========================================================================== */

.mdm-mbar { display: none; }

@media (max-width: 1024px) {
	:root { --mdm-mbar-h: 66px; }

	/* Eklentinin yüzen düğmeleri mobilde kapatılır */
	body .call-widget, body .whatsapp-widget { display: none !important; }

	/* İçerik çubuğun altında kalmasın */
	body { padding-bottom: calc(var(--mdm-mbar-h) + env(safe-area-inset-bottom, 0px)) !important; }

	.mdm-mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998;
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
		height: calc(var(--mdm-mbar-h) + env(safe-area-inset-bottom, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		background: linear-gradient(180deg, #182436 0%, #0e1928 55%, #0a1321 100%);
		border-top: 1px solid rgba(157, 167, 181, .85);
		box-shadow: 0 -10px 28px rgba(0, 0, 0, .45);
		font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	}
	.mdm-mbar__btn {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
		min-width: 0; padding: 8px 4px 6px; color: #fff !important; text-decoration: none !important;
		border-right: 1px solid rgba(80, 96, 122, .55);
		-webkit-tap-highlight-color: transparent; transition: background .15s;
	}
	.mdm-mbar__btn:last-child { border-right: 0; }
	.mdm-mbar__btn:active { background: rgba(255, 255, 255, .06); }
	.mdm-mbar__btn svg { width: 25px; height: 25px; color: #f0cc92; fill: #f0cc92; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
	.mdm-mbar__btn span {
		font-size: 13px; font-weight: 600; line-height: 1.1; letter-spacing: .005em; color: #fff;
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
	}
	.mdm-mbar__btn--wa { background: linear-gradient(180deg, #10322a 0%, #0c271e 55%, #09221a 100%); border-right: 0; box-shadow: inset 1px 0 0 rgba(120, 200, 150, .18); }
	.mdm-mbar__btn--wa svg { color: #52e37a; fill: #52e37a; filter: drop-shadow(0 0 6px rgba(82, 227, 122, .45)); }
	.mdm-mbar__btn--wa:active { background: #0a2a20; }

	/* Elementor'un sabit alt öğeleri ve WP admin çubuğu ile çakışmasın */
	body.admin-bar .mdm-mbar { z-index: 99998; }
}
@media (max-width: 360px) {
	.mdm-mbar__btn span { font-size: 11.5px; }
	.mdm-mbar__btn svg { width: 22px; height: 22px; }
}
@media print { .mdm-mbar { display: none !important; } }
