/* TalkToHim Fast Chat – Frontend / Shortcode Styles */

.wsnm277-frontend-wrap {
	max-width: 480px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wsnm277-frontend-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.wsnm277-frontend-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.wsnm277-frontend-header strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.wsnm277-frontend-header span {
	font-size: 13px;
	color: #64748b;
}

.wsnm277-frontend-field {
	margin-bottom: 14px;
}

.wsnm277-frontend-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-bottom: 6px;
}

.wsnm277-frontend-phone-row {
	display: flex;
	gap: 8px;
}

.wsnm277-frontend-wrap .wsnm277-select {
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	padding: 9px 28px 9px 10px;
	font-size: 14px;
	color: #1e293b;
	background: #f8fafc;
	width: 190px;
	flex-shrink: 0;
}

.wsnm277-frontend-wrap .wsnm277-input {
	flex: 1;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 15px;
	color: #1e293b;
	background: #f8fafc;
	width: 100%;
}

.wsnm277-frontend-wrap .wsnm277-textarea {
	width: 100%;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 14px;
	color: #1e293b;
	background: #f8fafc;
	resize: vertical;
	min-height: 80px;
	line-height: 1.5;
	font-family: inherit;
	box-sizing: border-box;
}

.wsnm277-frontend-wrap .wsnm277-select:focus,
.wsnm277-frontend-wrap .wsnm277-input:focus,
.wsnm277-frontend-wrap .wsnm277-textarea:focus {
	border-color: #2563eb;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(37,211,102,.12);
}

.wsnm277-frontend-wrap .wsnm277-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 6px;
	padding: 12px 20px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s;
}

.wsnm277-frontend-wrap .wsnm277-btn:hover { background: #20B858; }

.wsnm277-frontend-wrap .wsnm277-error {
	background: #fef2f2;
	color: #dc2626;
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 8px;
	border-left: 3px solid #dc2626;
	margin-top: 8px;
	margin-bottom: 4px;
}

.wsnm277-optional {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #94a3b8;
	font-size: 11px;
}


.wsnm277-is-hidden {
	display: none;
}

/* Floating WhatsApp Widget */
.wsnm277-floating-widget {
	position: fixed;
	bottom: 24px;
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 999px;
	background: #25D366;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.wsnm277-floating-widget:hover,
.wsnm277-floating-widget:focus {
	color: #fff;
	background: #20B858;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(15, 23, 42, .26);
}

.wsnm277-floating-widget--right {
	right: 24px;
}

.wsnm277-floating-widget--left {
	left: 24px;
}

.wsnm277-floating-widget__label {
	white-space: nowrap;
}

.wsnm277-floating-widget--icon_only {
	width: 54px;
	height: 54px;
	padding: 0;
	justify-content: center;
}

@media (max-width: 782px) {
	.wsnm277-floating-widget {
		bottom: 18px;
		padding: 12px 16px;
		font-size: 14px;
	}

	.wsnm277-floating-widget--right {
		right: 16px;
	}

	.wsnm277-floating-widget--left {
		left: 16px;
	}

	.wsnm277-floating-widget--hide-mobile {
		display: none;
	}
}

@media (min-width: 783px) {
	.wsnm277-floating-widget--hide-desktop {
		display: none;
	}
}

.wsnm277-floating-widget__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #fff;
	line-height: 1;
	flex-shrink: 0;
}

.wsnm277-floating-widget__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}
