/* rmakash-non-critical-js-css – WhatsApp chat popup */
.rmakash-wa {
	display: block !important; /* overrides the inline display:none once this file loads */
	position: fixed;
	bottom: 20px;
	z-index: 99990;
	font-size: 15px;
	line-height: 1.45;
	text-align: start;
}
.rmakash-wa--right { right: 20px; }
.rmakash-wa--left { left: 20px; }
.rmakash-wa *,
.rmakash-wa *::before,
.rmakash-wa *::after { box-sizing: border-box; }

/* Floating button */
.rmakash-wa .rmakash-wa__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--rmakash-wa-color, #25D366);
	color: var(--rmakash-wa-ink, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.rmakash-wa .rmakash-wa__toggle:hover { transform: scale(1.06); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.rmakash-wa .rmakash-wa__toggle:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.rmakash-wa .rmakash-wa__icon { width: 28px; height: 28px; fill: currentColor; }
.rmakash-wa .rmakash-wa__dot { fill: var(--rmakash-wa-color, #25D366); }
.rmakash-wa .rmakash-wa__img { width: 32px; height: 32px; object-fit: contain; display: block; }

/* Panel */
.rmakash-wa .rmakash-wa__panel {
	position: absolute;
	bottom: 72px;
	width: min(340px, calc(100vw - 40px));
	max-height: calc(100vh - 110px);
	overflow: auto;
	background: #fff;
	color: #1f2328;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	animation: rmakash-wa-in .18s ease-out;
}
.rmakash-wa--right .rmakash-wa__panel { right: 0; }
.rmakash-wa--left .rmakash-wa__panel { left: 0; }
.rmakash-wa .rmakash-wa__panel[hidden] { display: none; }

@keyframes rmakash-wa-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.rmakash-wa .rmakash-wa__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 12px 14px 16px;
	background: var(--rmakash-wa-color, #25D366);
	color: var(--rmakash-wa-ink, #fff);
}
.rmakash-wa .rmakash-wa__title { margin: 0; font-size: 16px; font-weight: 600; color: inherit; }
.rmakash-wa .rmakash-wa__sub { margin: 2px 0 0; font-size: 13px; opacity: .9; color: inherit; }
.rmakash-wa .rmakash-wa__close {
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: -4px 0 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.rmakash-wa .rmakash-wa__close:hover { background: rgba(0, 0, 0, .12); }
.rmakash-wa .rmakash-wa__close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

.rmakash-wa .rmakash-wa__body { padding: 16px; background: #f0f2f5; }
.rmakash-wa .rmakash-wa__bubble {
	display: inline-block;
	max-width: 92%;
	margin: 0 0 14px;
	padding: 9px 12px;
	background: #fff;
	color: #1f2328;
	border-radius: 0 10px 10px 10px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.rmakash-wa .rmakash-wa__label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #3b4045;
}
.rmakash-wa .rmakash-wa__input {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 9px 10px;
	border: 1px solid #c3c8ce;
	border-radius: 8px;
	background: #fff;
	color: #1f2328;
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	box-shadow: none;
}
.rmakash-wa textarea.rmakash-wa__input { resize: vertical; min-height: 84px; }
.rmakash-wa .rmakash-wa__input:focus {
	outline: none;
	border-color: #1f2328;
	box-shadow: 0 0 0 2px rgba(31, 35, 40, .15);
}
.rmakash-wa .rmakash-wa__send {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 0;
	border-radius: 8px;
	background: var(--rmakash-wa-color, #25D366);
	color: var(--rmakash-wa-ink, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.rmakash-wa .rmakash-wa__send:hover { filter: brightness(.95); }
.rmakash-wa .rmakash-wa__send:focus-visible { outline: 3px solid #111; outline-offset: 2px; }

/* Transparent mode: no circle or shadow, just a larger icon */
.rmakash-wa--transparent .rmakash-wa__toggle,
.rmakash-wa--transparent .rmakash-wa__toggle:hover {
	background: transparent;
	box-shadow: none;
	color: var(--rmakash-wa-color, #25D366);
}
.rmakash-wa--transparent .rmakash-wa__icon {
	width: 52px;
	height: 52px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}
.rmakash-wa--transparent .rmakash-wa__dot { fill: var(--rmakash-wa-ink, #fff); }
.rmakash-wa--transparent .rmakash-wa__img {
	width: 56px;
	height: 56px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
}

@media (max-width: 480px) {
	.rmakash-wa { bottom: 16px; }
	.rmakash-wa--right { right: 16px; }
	.rmakash-wa--left { left: 16px; }
	.rmakash-wa .rmakash-wa__panel { width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
	.rmakash-wa .rmakash-wa__toggle,
	.rmakash-wa .rmakash-wa__panel { transition: none; animation: none; }
}

@media print {
	.rmakash-wa { display: none !important; }
}
