.wpwcl-root {
	--wpwcl-primary: #000;
}

.wpwcl-chat-box {
	position: fixed;
	bottom: 0;
	right: 0;
	width: 320px;
	max-width: 92vw;
	opacity: 0;
	transform: translateX(100%);
	transition: all 0.4s ease;
	z-index: 99999;
	min-height: 100%;
	top: 10px;
	pointer-events: none;
}

.wpwcl-chat-box.active {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.wpwcl-close-floating {
	width: 40px;
	height: 40px;
	background: var(--wpwcl-close-color);
	color: #fff;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	font-size: 18px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	border: none;
	margin-left: auto;
	margin-right: 0;
}

.wpwcl-whatsapp-btn {
	position: fixed;
	bottom: 25px;
	right: 0;
	cursor: pointer;
	z-index: 999998;
	background: var(--wpwcl-primary);
	padding: 8px 12px 8px 18px;
	border-radius: 50px 0 0 50px;
	transition: all 0.5s ease;
	display: flex;
	align-items: center;
	border: none;
}

.wpwcl-whatsapp-btn.wpwcl-hide {
	display: none;
}

/* Hidden by default; slides + fades in only when the button is hovered. */
.wpwcl-greeting {
	position: absolute;
	top: 0;
	right: 0;
	width: 210px;
	padding: 0;
	border-radius: 50px 0 0 50px;
	display: flex;
	align-items: center;
	transform: translateX(100%);
	opacity: 0;
	transition: all 0.4s ease;
	border: 12px solid rgba(255, 255, 255, 0.9);
	border-right: 30px solid rgba(255, 255, 255, 0.9);
	background: transparent;
	text-align: left;
	color: var(--wpwcl-primary);
	font-size: 14px;
	font-weight: 500;
	box-sizing: border-box;
}

.wpwcl-greeting-inner {
	display: block;
}

.wpwcl-whatsapp-btn:hover .wpwcl-greeting,
.wpwcl-whatsapp-btn:focus-within .wpwcl-greeting {
	opacity: 1;
	transform: translateX(0);
}

.wpwcl-whatsapp-btn svg {
	width: 45px;
	height: 45px;
	flex-shrink: 0;
	position: relative;
}

.wpwcl-chat-body-box {
	background: rgba(255, 255, 255, 0.9);
	padding: 0;
	border-radius: 10px;
	backdrop-filter: blur(12px);
	position: absolute;
	bottom: 110px;
	right: 15px;
	width: 300px;
	max-width: 90vw;
	height: calc(100vh - 140px);
	max-height: calc(70vh - 140px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.wpwcl-message {
	clear: both;
}

.wpwcl-message.wpwcl-left {
	padding: 12px 16px;
	background-color: #F8F7FC;
	box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 2px 10px rgba(0, 0, 0, .1);
	border-radius: 10px;
	float: left;
	margin: 6px;
	color: #000;
	max-width: 70%;
	font-size: 16px;
  font-weight: 400;
}

.wpwcl-message.wpwcl-right {
	padding: 12px 16px;
	background-color: var(--wpwcl-primary);
	box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 2px 10px rgba(0, 0, 0, .1);
	border-radius: 10px;
	float: right;
	color: #fff;
	margin: 6px;
	max-width: 70%;
	font-size: 16px;
  font-weight: 400;
}

.wpwcl-chat-header {
	background: var(--wpwcl-primary);
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.wpwcl-chat-avatar img {
	width: 30px;
	height: 30px;
	border-radius: 100px;
	object-fit: cover;
	display: block;
	--tw-brightness: brightness(0);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
	--tw-invert: invert(100%);
}

.wpwcl-chat-title {
	color: #fff;
	font-weight: bold;
	flex: 1;
}

.wpwcl-chat-body {
	flex: 1;
	padding: 17px;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

.wpwcl-chat-input {
	padding: 17px;
	width: 100%;
	display: flex;
	gap: 8px;
	box-sizing: border-box;
	flex: 0 0 auto;
	background: #fff;
  position: sticky;
  bottom: 0
}

.wpwcl-chat-input input {
	flex: 1;
	padding: 10px 14px;
	border-radius: 20px;
	border: 1px solid #ccc;
	min-width: 0;
	box-shadow: none !important;
	outline: none !important
}

.wpwcl-chat-input select.wpwcl-select {
	flex: 1;
	padding: 10px 14px;
	border-radius: 20px;
	border: 1px solid #ccc;
	min-width: 0;
	background: #fff;
	box-shadow: none !important;
	outline: none !important
}

.wpwcl-chat-input button {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 50%;
	border: none;
	background: var(--wpwcl-primary);
	color: #fff;
	cursor: pointer;
}

.wpwcl-error-msg {
	color: red;
	font-size: 13px;
	padding: 0 17px 12px;
	display: none;
}

#wpwclOpenBtn .wpwcl-greeting-inner {
    background: var(--wpwcl-greeting-bg);
    color: #ffffff;
    padding: 8px 20px;
    display: block;
    width: 100%;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

.wpwcl-whatsapp-btn:hover .wpwcl-greeting {
    box-shadow: 0 0 5px 2px #00000021;
}


@media only screen and (max-width: 480px) {
	
	.wpwcl-greeting {
		display: none;
	}
}