/**
 * ShopChat Storefront Floating WhatsApp Widget Styles
 */

.shopchat-widget-wrapper {
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.shopchat-pos-bottom-right {
	right: 24px;
}

.shopchat-pos-bottom-left {
	left: 24px;
}

/* Floating Trigger Button */
.shopchat-widget-button {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25D366;
	color: #ffffff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
	outline: none;
	padding: 0;
}

.shopchat-widget-button:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.shopchat-widget-button:active {
	transform: scale(0.96);
}

.shopchat-pulse-ring {
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	border-radius: 50%;
	border: 2px solid #25D366;
	opacity: 0.7;
	animation: shopchat-pulse 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
	pointer-events: none;
}

@keyframes shopchat-pulse {
	0% {
		transform: scale(0.95);
		opacity: 0.8;
	}
	70% {
		transform: scale(1.25);
		opacity: 0;
	}
	100% {
		transform: scale(1.3);
		opacity: 0;
	}
}

/* Popup Box */
.shopchat-popup-box {
	position: absolute;
	bottom: 75px;
	width: 320px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	animation: shopchat-slide-up 0.25s ease-out;
	border: 1px solid #eef2f6;
}

.shopchat-pos-bottom-right .shopchat-popup-box {
	right: 0;
}

.shopchat-pos-bottom-left .shopchat-popup-box {
	left: 0;
}

@keyframes shopchat-slide-up {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Popup Header */
.shopchat-popup-header {
	background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
	color: #ffffff;
	padding: 16px;
	display: flex;
	align-items: center;
	position: relative;
}

.shopchat-header-avatar {
	position: relative;
	margin-right: 12px;
	flex-shrink: 0;
}

.shopchat-avatar-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.shopchat-status-dot {
	position: absolute;
	bottom: 2px;
	right: 2px;
	width: 10px;
	height: 10px;
	background-color: #25D366;
	border-radius: 50%;
	border: 2px solid #075E54;
}

.shopchat-header-info {
	flex-grow: 1;
}

.shopchat-agent-title {
	margin: 0 0 2px 0;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.2;
}

.shopchat-agent-subtitle {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	display: block;
}

.shopchat-popup-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	transition: color 0.15s;
}

.shopchat-popup-close:hover {
	color: #ffffff;
}

/* Popup Body (Chat Canvas) */
.shopchat-popup-body {
	padding: 20px 16px;
	background-color: #efeae2;
	background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
	background-size: 16px 16px;
	min-height: 100px;
}

.shopchat-message-bubble {
	background: #ffffff;
	padding: 10px 14px;
	border-radius: 0 12px 12px 12px;
	position: relative;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	max-width: 90%;
}

.shopchat-message-bubble p {
	margin: 0 0 6px 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: #111b21;
}

.shopchat-bubble-time {
	font-size: 10.5px;
	color: #667781;
	float: right;
}

/* Popup Footer */
.shopchat-popup-footer {
	padding: 14px 16px;
	background: #ffffff;
	border-top: 1px solid #f0f2f5;
}

.shopchat-start-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: #25D366;
	color: #ffffff !important;
	text-decoration: none !important;
	padding: 11px 16px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.15s ease, transform 0.15s ease;
	width: 100%;
	box-sizing: border-box;
}

.shopchat-start-btn:hover {
	background-color: #20ba59;
	color: #ffffff !important;
	transform: translateY(-1px);
}
