/**
 * Domain Theme & Branding Manager – Frontend Styles
 *
 * Geo-location suggestion popup — minimal, accessible, mobile-friendly.
 *
 * @package    DTBM
 * @subpackage Assets
 * @author     codelitix
 * @since      1.0.0
 */

.dtbm-hidden { display: none !important; }

/* ── Popup container ──────────────────────────────────────────── */
.dtbm-geo-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	width: 360px;
	max-width: calc(100vw - 30px);
	animation: dtbmSlideIn .4s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes dtbmSlideIn {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

.dtbm-geo-popup__card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 8px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
	overflow: hidden;
	border-top: 4px solid #2563eb;
	position: relative;
}

.dtbm-geo-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 26px;
	height: 26px;
	border: none;
	background: #f1f5f9;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	transition: all .15s;
	padding: 0;
	line-height: 1;
}

.dtbm-geo-popup__close:hover { background: #e2e8f0; color: #0f172a; }

.dtbm-geo-popup__body {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 18px 16px;
}

.dtbm-geo-popup__icon { font-size: 28px; flex-shrink: 0; }

.dtbm-geo-popup__content { flex: 1; }

.dtbm-geo-popup__message {
	font-size: 13px;
	color: #374151;
	margin: 0 0 12px;
	line-height: 1.5;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dtbm-geo-popup__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────────── */
.dtbm-popup-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 7px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all .15s;
	border: 1.5px solid transparent;
	line-height: 1;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dtbm-popup-btn--primary {
	background: #2563eb;
	color: #ffffff !important;
	border-color: #2563eb;
}

.dtbm-popup-btn--primary:hover { background: #1d4ed8; }

.dtbm-popup-btn--ghost {
	background: #f1f5f9;
	color: #64748b !important;
	border-color: #e2e8f0;
}

.dtbm-popup-btn--ghost:hover { background: #e2e8f0; color: #374151 !important; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.dtbm-geo-popup {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		animation: dtbmSlideUp .35s cubic-bezier(.16,1,.3,1) forwards;
	}

	@keyframes dtbmSlideUp {
		from { opacity: 0; transform: translateY(100%); }
		to   { opacity: 1; transform: translateY(0); }
	}

	.dtbm-geo-popup__card { border-radius: 16px 16px 0 0; }
	.dtbm-geo-popup__actions { flex-direction: column; }
	.dtbm-popup-btn { width: 100%; justify-content: center; }
}
