/**
 * Keral Suite — Call Action Popup
 * Minimal, theme-friendly. Uses CSS variables that themes can override.
 */

:root {
	--keral-call-popup-bg: #ffffff;
	--keral-call-popup-color: #1a1a1a;
	--keral-call-popup-overlay: rgba(0, 0, 0, 0.5);
	--keral-call-popup-z: 99999;
	--keral-call-btn-radius: 0;
}

/* ─── Popup ─────────────────────────────────────────── */

.keral-call-popup {
	position: fixed;
	inset: 0;
	z-index: var(--keral-call-popup-z);
	display: none;
	align-items: center;
	justify-content: center;
}
.keral-call-popup[data-open="1"] {
	display: flex;
}

.keral-call-popup__overlay {
	position: absolute;
	inset: 0;
	background: var(--keral-call-popup-overlay);
	cursor: pointer;
}

.keral-call-popup__dialog {
	position: relative;
	background: var(--keral-call-popup-bg);
	color: var(--keral-call-popup-color);
	padding: 40px 32px;
	width: 85%;
	max-width: 360px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.keral-call-popup__title {
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin: 0 0 32px;
}

/* Optional intro line below the title (5.7.31+).
   When the intro exists, tighten the spacing above it. */
.keral-call-popup__intro {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	margin: -16px 0 24px;
}

.keral-call-popup__channels {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 32px;
}

.keral-call-popup__btn {
	display: block;
	padding: 16px;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.keral-call-popup__btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.keral-call-popup__btn--whatsapp {
	background: #1a1a1a;
	color: #ffffff;
}

.keral-call-popup__btn--phone {
	background: transparent;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
}

.keral-call-popup__btn--email {
	background: transparent;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
}

.keral-call-popup__cancel {
	background: none;
	border: 0;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: underline;
	color: inherit;
	font-family: inherit;
}

/* ─── Floating button (optional trigger mode) ────────── */

.keral-call-floating {
	position: fixed;
	z-index: calc(var(--keral-call-popup-z) - 1);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	background: #1a1a1a;
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-family: inherit;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}
.keral-call-floating:hover {
	transform: translateY(-2px);
}

.keral-call-floating[data-position="bottom-right"] { bottom: 24px; right: 24px; }
.keral-call-floating[data-position="bottom-left"]  { bottom: 24px; left: 24px;  }
.keral-call-floating[data-position="top-right"]    { top: 24px;    right: 24px; }
.keral-call-floating[data-position="top-left"]     { top: 24px;    left: 24px;  }

@media (max-width: 768px) {
	.keral-call-floating { padding: 10px 14px; }
	.keral-call-floating__label { display: none; }
}
