/**
 * Design 7 - Custom Avatar Professional (Speech Bubble Style)
 * Based on Magento WhatsApp Chat Plugin Design 7
 */

/* ==========================================================================
   Design 7 - Base Styles
   ========================================================================== */

.whatsapp-chat-widget.design-7 {
	background: transparent;
	border: 0;
	box-shadow: none;
	display: block;
	height: auto;
	margin: 0;
	min-height: auto;
	opacity: 1;
	padding: 0;
	position: fixed;
	visibility: visible;
	width: auto;
	z-index: 999999;
}

.whatsapp-chat-widget.design-7 .whatsapp-button {
	align-items: center;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	display: flex !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	gap: 15px !important;
	height: auto !important;
	line-height: 1;
	min-height: auto;
	padding: 0 !important;
	position: fixed;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	width: auto !important;
	z-index: 100000;
	flex-direction: row !important;
	border-radius: 0 !important;
}

/* ==========================================================================
   Design 7 - Main Layout (Avatar + Speech Bubble)
   ========================================================================== */

.whatsapp-design7-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
}

.whatsapp-design7-container {
	display: flex;
	align-items: center;
	gap: 15px;
	position: relative;
}

/* ==========================================================================
   Design 7 - Avatar (Left Side)
   ========================================================================== */

.whatsapp-design7-avatar-section {
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	order: 1;
}

.whatsapp-design7-avatar {
	background: #f5f5f5;
	border: 3px solid white;
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	height: 60px;
	overflow: hidden;
	position: relative;
	transition: transform 0.3s ease;
	width: 60px;
}

.whatsapp-design7-avatar-wrap {
	border-radius: 50%;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.whatsapp-design7-avatar img.whatsapp-design7-avatar-wrap {
	border-radius: 50%;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.whatsapp-design7-avatar-default {
	align-items: center;
	background: var(--design7-bg-color, #25D366);
	border-radius: 50%;
	color: white;
	display: flex;
	font-size: 20px;
	font-weight: bold;
	height: 100%;
	justify-content: center;
	text-transform: uppercase;
	width: 100%;
}

/* ==========================================================================
   Design 7 - Speech Bubble (Right Side)
   ========================================================================== */

.whatsapp-design7-content {
	background: var(--design7-bg-color, #25D366);
	border-radius: 25px;
	box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
	color: var(--design7-text-color, white);
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	max-width: 300px;
	min-width: 240px;
	order: 2;
	padding: 12px 45px 12px 20px;
	position: relative;
	text-align: left;
	transition: all 0.3s ease;
	white-space: normal;
}

/* Speech Bubble Arrow (pointing to avatar) */
.whatsapp-design7-content::before {
	border-bottom: 8px solid transparent;
	border-right: 8px solid var(--design7-bg-color, #25D366);
	border-top: 8px solid transparent;
	content: '';
	height: 0;
	left: -8px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	z-index: 1;
}

.whatsapp-design7-header {
	color: var(--design7-name-color, white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 2px;
}

.whatsapp-design7-status {
	color: var(--design7-status-color, rgba(0, 0, 0, 0.8));
	font-size: 12px;
	font-weight: 400;
	margin-left: 5px;
}

.whatsapp-design7-message {
	color: var(--design7-text-color, white);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	margin: 0;
}

/* ==========================================================================
   WhatsApp Icon (Inside Bubble - Bottom Right)
   ========================================================================== */

.whatsapp-design7-icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	bottom: 6px;
	display: flex;
	height: 18px;
	justify-content: center;
	position: absolute;
	right: 12px;
	width: 18px;
	z-index: 3;
}

.whatsapp-design7-icon svg {
	display: block;
	fill: white;
	height: 10px;
	opacity: 0.9;
	width: 10px;
}

/* ==========================================================================
   Hover Effects
   ========================================================================== */

.whatsapp-chat-widget.design-7 .whatsapp-button:hover .whatsapp-design7-content {
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
	filter: brightness(0.9);
	transform: translateY(-2px);
}

.whatsapp-chat-widget.design-7 .whatsapp-button:hover .whatsapp-design7-avatar {
	transform: scale(1.05);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 480px) {
	.whatsapp-design7-avatar {
		height: 56px;
		width: 56px;
	}

	.whatsapp-design7-content {
		font-size: 13px;
		max-width: 260px;
		min-width: 220px;
		padding: 10px 40px 10px 18px;
	}

	.whatsapp-design7-name {
		font-size: 13px;
	}

	.whatsapp-design7-status {
		font-size: 11px;
	}

	.whatsapp-design7-message {
		font-size: 12px;
	}
}

@media (max-width: 380px) {
	.whatsapp-design7-avatar {
		height: 52px;
		width: 52px;
	}

	.whatsapp-design7-content {
		font-size: 12px;
		max-width: 240px;
		min-width: 200px;
		padding: 10px 38px 10px 16px;
	}
}

