.addon-chatbot-main .hidden {
	display: none;
}

.animated-dots {
	display: flex;
	justify-content: center;
	gap: 4px;
	height: 20px;
	/* Adjust height if needed */
}
.animated-dots span {
	width: 5px;
	height: 5px;
	background-color: #404040;
	border-radius: 50%;
	animation: blink 1.5s infinite;
}
.animated-dots span:nth-child(2) {
	animation-delay: 0.2s;
}
.animated-dots span:nth-child(3) {
	animation-delay: 0.4s;
}
@keyframes blink {
	0% {
		opacity: 0.2;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0.2;
	}
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Shadow scaling animation for the pseudo-element */
@keyframes shadow-scale {
	0%, 100% {
		transform: translateX(-50%) scale(1);
		opacity: 0.2;
	}
	50% {
		transform: translateX(-50%) scale(0.6);
		opacity: 0.1;
	}
}

.chat-icon {
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
}

.chat-icon img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
}

.chat-icon::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 12px;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 50%;
	z-index: -1;
	animation: shadow-scale 1.5s infinite;
}
/* When the icon stops bouncing, disable the shadow's animation */
.chat-icon.no-shadow-animation::after {
	animation: none;
	transform: translateX(-50%) scale(0.9);
	opacity: 0.15;
	background: rgba(0, 0, 0, 0.15);
}


/* Chat Icon (Pill) */
/* .chat-icon {
	border-radius: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	padding: 8px 16px;
	background-color: #0053e2;
	gap: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.chat-icon img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	filter: brightness(0) invert(1);
} */

/* Chat Container (using flexbox) */
#addon-chatbot-main {
	width: 600px;
	min-width: 600px;
	max-width: 1020px;
	height: 800px;
	max-height: 900px;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: none;
	z-index: 1000;
	box-sizing: border-box;
	flex-direction: column;
	resize: both;
}
#addon-chatbot-main .chat-header {
	height: 70px;
	padding: 25px;
	border-bottom: none;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	position: relative;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
	background-color: #0053e2;
}
#addon-chatbot-main .chat-box {
	flex: 1 1 auto;
	overflow-y: auto;
	background: #fff;
	padding: 20px 20px 5px 20px;
	border-bottom: none;
	display: flex;
	flex-direction: column;
}
#addon-chatbot-main .message {
	display: flex;
	align-items: flex-end;
	margin-bottom: 15px;
	gap: 15px;
}
#addon-chatbot-main .message .bot-profile-picture img {
	width: 42px;
	height: 42px;
}
#addon-chatbot-main .user-message, #addon-chatbot-main .bot-message, #addon-chatbot-main .bot-options div {
	padding: 10px 20px;
	border-radius: 8px;
	white-space: normal;
}
#addon-chatbot-main .bot-options div {
	display: inline-block;
}
#addon-chatbot-main .user-message {
	font-size: 12pt;
	background: linear-gradient(to top, #2a83ff, #0053e2);
	color: #fff;
	align-self: flex-end;
	text-align: left;
	border-radius: 18px 18px 0 18px;
	padding: 10px 15px;
	max-width: 90%;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
	cursor: default;
}
#addon-chatbot-main .bot-message-content {
	cursor: default;
}
#addon-chatbot-main .bot-message {
	font-size: 12pt;
	cursor: default;
	max-width: 600px;
	text-align: left;
	background-color: #f5f5f5;
	border-radius: 18px 18px 18px 0;
	margin-bottom: 10px;
	padding: 10px 15px;
}
#addon-chatbot-main .bot-options {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 5px;
}
#addon-chatbot-main .bot-options-text div {
	font-size: 12pt;
	color: #fff;
	background-color: #003ba0;
	border-radius: 20px;
}
#addon-chatbot-main .bot-options-text div:hover {
	cursor: pointer;
	background-color: #797979;
	transition: all 0.2s ease-in-out;
	transform: translateY(-2px);
}
#addon-chatbot-main .bot-options-text div .option-icon {
	margin-left: 5px;
	filter: brightness(100);
	transition: all 0.1s ease-in-out;
}
#addon-chatbot-main .bot-options-text div:hover .option-icon {
	filter: brightness(0.5);
	transition: all 0.1s ease-in-out;
}
#addon-chatbot-main .bot-message > ul > li {
    margin: 15px 0;
}
#addon-chatbot-main .bot-message > ul > li a {
	color: #0053e2;
	text-decoration: underline;
}
#addon-chatbot-main .bot-message > ul > li a:hover {
	text-decoration: none;
}
#addon-chatbot-main .bot-options-image {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0px;
	margin-left: 0px;
	margin-top: 0px;
}
#addon-chatbot-main .bot-options-image .bot-option-image {
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 0 0 0px 0;
	margin: 0;
	flex-shrink: 0;
	background: transparent;
	overflow: hidden;
	position: relative;
	transition: transform 0.2s, box-shadow 0.2s;
}
#addon-chatbot-main .product-name {
	font-size: 16px;
	font-weight: 500;
	color: #333;
	margin-top: -90px;
}
#addon-chatbot-main .product-theme {
	font-size: 12px;
}
#addon-chatbot-main .bot-options-image img {
	width: 100%;
	height: 80%;
	object-fit: cover;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	border-radius: 15px;
}
#addon-chatbot-main .bot-options-image img:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
#addon-chatbot-main .bot-options-image .image-container {
	width: 100%;
	height: 500px;
	overflow: hidden;
}
#addon-chatbot-main .input-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}
#addon-chatbot-main .input-container {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px 20px;
	background-color: #0053e2;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
}
#addon-chatbot-main #user-input {
	width: 100%;
	padding-right: 30px;
}
#addon-chatbot-main #user-input:disabled {
	background-color: #fff;
	opacity: 0.8;
	cursor: not-allowed;
	pointer-events: none;
}
#addon-chatbot-main #user-input:focus {
	border: 1px solid #0053e2;
}
#addon-chatbot-main .product-card-button {
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	z-index: 10;
}
#addon-chatbot-main .product-card-button:hover {
	background: white;
	transform: scale(1.1);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
#addon-chatbot-main .show-current-page-product-btn {
	cursor: pointer;
	font-size: 31px;
	color: #fff;
	background-color: #404040;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	position: absolute;
	top: -15px;
	right: 120px;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease-in-out;
	z-index: 1000;
}
#addon-chatbot-main .show-current-page-product-btn:hover {
	background: lightsalmon;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
#addon-chatbot-main .show-current-page-product-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
#addon-chatbot-main .first-message {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #003eaa, #6fa3ef);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
	font-size: 12pt;
}
#addon-chatbot-main .first-message .bot-options {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
#addon-chatbot-main .first-message .bot-profile-picture {
	width: 100%;
	min-width: 180px;
	max-width: 100%;
	max-height: 260px;
}
#addon-chatbot-main img.bot-profile-picture {
	width: 40px;
	min-width: 40px;
	max-width: 200px;
	max-height: 100%;
}
#addon-chatbot-main .first-message .bot-message {
	max-width: 100%;
	color: #fff;
	text-align: center;
	background-color: transparent;
	opacity: 0.7;
	padding: 0 10px 5px 10px;
	margin-bottom: 0;
}
#addon-chatbot-main .first-message .bot-message-content {
	width: 100%;
	max-width: 450px;
	min-width: 300px;
}
#addon-chatbot-main .first-message .bot-options-text div {
	font-size: 12pt;
	background: #fff;
	border-radius: 12px;
	color: #0053e2;
	box-shadow: -6px 9px 10px rgba(0, 0, 0, 0.3);
}
#addon-chatbot-main .first-message .bot-options-text div:hover {
	background-color: #0053e2;
	color: #fff;
	cursor: pointer;
	transition: 0.2s ease-in-out;
}
#addon-chatbot-main .upload-icon {
	position: absolute;
	bottom: 200px;
	right: 15px;
}
#addon-chatbot-main .input-container input {
	flex: 1;
	padding: 8px;
	border: 1px solid #c8c7c7;
	border-radius: 5px;
	outline: none;
}
#addon-chatbot-main .input-container button {
	padding: 10px 15px;
	background: #0053e2;
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 5px;
}
#addon-chatbot-main #send-btn {
	padding: 1px;
	border-radius: 50px;
	width: 50px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
	background: #fff;
	border: 1px solid #c8c7c7;
}
#addon-chatbot-main #send-btn:hover {
	border: 1px solid #fff;
}
#addon-chatbot-main #send-btn img {
	width: 35px;
	height: 35px;
}
#addon-chatbot-main #send-btn:hover img {
	filter: invert(1);
	transition: filter 0.2s ease;
}
.product-card-button {
	position: relative;
}
.product-card-button::before {
	content: attr(popup-text);
	position: absolute;
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 10px 15px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: all 0.2s ease;
}
.product-card-button::after {
	content: "";
	position: absolute;
	border-width: 5px;
	border-style: solid;
	opacity: 0;
	transition: all 0.2s ease;
}
.product-card-button:hover::before, .product-card-button:hover::after {
	opacity: 1;
}
.product-card-button:hover::before {
	bottom: 40px;
	right: -10px;
	transform: translateY(0);
}
.product-card-button:hover::after {
	bottom: 35px;
	right: 8px;
	border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}
/* Check if there is enough space above;
 if not, switch to popunder */
@media (max-height: 1000px) {
	/* Adjust threshold as needed */
	.product-card-button:hover::before {
		bottom: auto;
		top: 40px;
		transform: translateY(0);
	}
	.product-card-button:hover::after {
		bottom: auto;
		top: 35px;
		border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
	}
}
/* Fade-in animation */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}
.chat-icon-bounce {
	animation: bounce 1.5s infinite;
}
.half-spark {
	width: 50px;
	height: 100%;
}
#send-btn.disabled, .show-current-page-product-btn.disabled, .similar-icon.disabled {
	opacity: 0.7;
	cursor: not-allowed;
	pointer-events: none;
	/* Prevents interactions */
}
/* View Product Modal Overlay */
.view-product-modal-overlay {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 15px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1100;
}
.view-product-modal {
	background-color: #fff;
	width: 400px;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	position: relative;
	text-align: center;
}
.modal-close {
	position: absolute;
	top: 0;
	right: 15px;
	font-size: 30px;
	cursor: pointer;
	color: #797979;
	transition: color 0.3s ease;
}
.modal-close:hover {
	color: #333;
}
.modal-product-info {
	margin-bottom: 20px;
}
.modal-product-info h3 {
	font-size: 22px;
	font-weight: 500;
	margin: 10px auto 25px auto;
}
.modal-product-info .modal-product-price {
	font-size: 18px;
	font-weight: bold;
	color: #0053e2;
}
.modal-product-button {
	width: 100%;
	padding: 10px 30px;
	margin-bottom: 15px;
	border-radius: 50px;
	background-color: #0053e2;
	border: 1.5px solid #0053e2;
	color: #fff;
	cursor: pointer;
}
.modal-product-button:hover {
	color: #fff;
	background-color: #003ba0;
	border: 1.5px solid #003ba0;
	transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}
/* SLA Chip Styling for Product Cards */
#addon-chatbot-main .bot-options.bot-options-image .sla-chip {
	position: absolute;
	top: 30px;
	right: 25px;
	background-color: #0053e2;
	font-size: 10pt;
	color: #fff;
	padding: 2px 10px;
	border-radius: 50px;
	z-index: 10;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
}
#addon-chatbot-main .bot-options.bot-options-image .sla-chip.high-sla {
	background-color: #066b08;
	/* Green for fast delivery */
}
#addon-chatbot-main .bot-options.bot-options-image .sla-chip.medium-sla {
	background-color: #FDBA2F;
}
/* Container for product cards and pagination controls */
.bot-options-container {
	display: flex;
	flex-direction: column;
}
/* Pagination Controls – static and with invisible background */
.pagination-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	gap: 12px;
	background: transparent;
	padding: 0;
	margin-top: 20px;
}
.pagination-controls button {
	background-color: transparent;
	color: #0053e2;
	border: 1px solid #0053e2;
	border-radius: 50px;
	padding: 8px 17px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}
.pagination-controls button:hover:not(:disabled) {
	background-color: #0053e2;
	color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.pagination-controls button:disabled {
	background-color: #fff;
	color: #c8c7c7;
	border: 1px solid #c8c7c7;
	cursor: not-allowed;
	box-shadow: none;
}
.pagination-controls span.pagination-page-info {
	font-size: 14px;
	color: #333;
	font-weight: bold;
}
/* End Session Modal */
.end-session-modal-overlay {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 14px;
	z-index: 1200;
}
.end-session-modal {
	background-color: #fff;
	width: 350px;
	padding: 25px;
	margin: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	text-align: center;
}
.end-session-modal h3 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
}
.end-session-modal p {
	margin-bottom: 20px;
	color: #404040;
}
.end-session-modal-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}
.end-session-modal-buttons button {
	padding: 8px 16px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.2s ease;
}
.end-session-modal-buttons .cancel-btn {
	background-color: #e3e2e2;
	color: #333;
	border-radius: 50px;
	padding: 10px 30px;
}
.end-session-modal-buttons .cancel-btn:hover {
	background-color: #c8c7c7;
	transition: background-color 0.2s ease;
}
.end-session-modal-buttons .confirm-btn {
	background-color: #b8001f;
	color: #fff;
	border-radius: 50px;
	padding: 10px 30px;
}
.end-session-modal-buttons .confirm-btn:hover {
	background-color: #6e0101;
	transition: background-color 0.2s ease;
}
/* Header controls container */
.chat-header .header-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

#addon-chatbot-main .close-btn,
#addon-chatbot-main .end-session-btn {
	position: absolute;
	top: 20px;
	padding: 0;
	border: 0;
	background: 0 0;
	pointer-events: all;
	z-index: 99;
	background-image: url('../../../css/fx/icons.svg');
	background-repeat: no-repeat;
	width: 30px;
	height: 30px;
	filter: brightness(3);
	transition: all 0.2s ease-in-out;
}

#addon-chatbot-main .close-btn {
	right: 60px;
	background-size: 500px 150px;
	background-position: -465px -60px;
}

#addon-chatbot-main .end-session-btn {
	right: 20px;
	background-size: 400px 150px;
	background-position: -165px -20px;
}

#addon-chatbot-main .close-btn:hover,
#addon-chatbot-main .end-session-btn:hover,
#addon-chatbot-main .close-btn:focus,
#addon-chatbot-main .end-session-btn:focus {
	filter: brightness(5);
    transform: translateY(1px);
	outline: none;
}

/* Button Option Styling */
#addon-chatbot-main .bot-options.bot-options-button {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: 45px;
	margin-top: 10px;
	max-width: calc(100% - 60px);
	/* 45px avatar margin + 15px buffer */
	width: 100%;
}
#addon-chatbot-main .bot-option-button {
	font-size: 16px;
	background: #0053e2;
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 10px 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border: 1px solid transparent;
	width: 100%;
	max-width: 600px;
	/* Prevent buttons from being too narrow */
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
	text-align: center;
	/* Flex item behavior */
	flex: 0 0 calc(50% - 5px);
	/* Allow shrinking but not growing */
}
.bot-options.bot-options-button {
	min-width: 0;
	/* Crucial for flex children to respect max-width */
}
#addon-chatbot-main .bot-option-button:hover {
	background: #0053e2;
	transform: translateY(-2px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}
#addon-chatbot-main .bot-option-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#addon-chatbot-main .bot-option-button:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.7;
}
@keyframes buttonPop {
	0% {
		transform: scale(0.95);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}
#addon-chatbot-main .bot-option-button {
	animation: buttonPop 0.3s ease;
}
/* Snackbar base style */
.snackbar {
	visibility: hidden;
	min-width: 250px;
	margin-left: -125px;
	color: #fff;
	text-align: center;
	border-radius: 4px;
	padding: 16px;
	position: fixed;
	z-index: 1300;
	left: 50%;
	bottom: 30px;
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.5s, visibility 0.5s;
}
/* Type-specific background colors */
.snackbar.snackbar-default {
	background-color: #333;
}
.snackbar.snackbar-success {
	background-color: #0053e2;
}
.snackbar.snackbar-error {
	background-color: #b8001f;
}
.snackbar.snackbar-warning {
	background-color: #b8001f;
}
.snackbar.show {
	visibility: visible;
	opacity: 1;
}
.modal-builder-button {
	height: 47px;
	width: 100%;
	padding: 10px 30px;
	border-radius: 50px;
	background-color: transparent;
	color: #0053e2;
	border: 1.5px solid #0053e2;
	cursor: pointer;
}
.modal-builder-button:hover {
	color: #404040;
	background-color: #f5f5f5;
	border: 1.5px solid #404040;
	transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}
#addon-chatbot-main .similar-icon {
	position: absolute;
	bottom: 240px;
	right: 15px;
}
/* #addon-chatbot-main .chatbot-logo {
	width: 30px;
	height: 30px;
	object-fit: contain;
} */

#addon-chatbot-main .ai-disclaimer-message {
    font-size: 10pt;
    color: #868e96;
    text-align: center;
    padding: 4px 15px 12px 15px;
    width: 100%;
}


#addon-chatbot-main .option-send-message {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

#addon-chatbot-main .option-icon {
    width: 20px;
    height: 20px;
}

#addon-chatbot-main .first-message .option-icon {
	display: none;
}


/* ---- Chatbot Guest PIN Modal Styling ---- */

#chat-guest-pin-modal .chatbot-guest-modal-dialog {
    max-width: 400px;
    margin: 1.75rem auto;
}

#chat-guest-pin-modal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(180deg, #f0f2ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

#chat-guest-pin-modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #aaa;
    opacity: 0.8;
    text-shadow: none;
    z-index: 10;
}

#chat-guest-pin-modal .modal-body-content {
    padding: 30px 40px;
    text-align: center;
}

#chat-guest-pin-modal .modal-icon-container {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    background-color: #0053e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(90, 66, 212, 0.3);
}

#chat-guest-pin-modal .modal-icon-container img {
    width: 32px;
    height: 32px;
}

#chat-guest-pin-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

#chat-guest-pin-modal .modal-subtitle {
    color: #666;
    margin-top: -15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

#chat-guest-pin-modal .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#chat-guest-pin-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #444;
}

#chat-guest-pin-modal .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#chat-guest-pin-modal .form-control:focus {
    border-color: #0053e2;
    box-shadow: 0 0 0 3px rgba(90, 66, 212, 0.15);
    outline: none;
}

#chat-guest-pin-modal .btn-submit {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background-color: #0053e2;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#chat-guest-pin-modal .btn-submit:hover {
    background-color: #1166f8;
}

#chat-guest-pin-modal .btn-submit:active {
    transform: scale(0.98);
}

#chat-guest-pin-modal .btn-submit:disabled {
    background-color: #9e93e2;
    cursor: wait;
}

.form-step {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.form-step.is-hidden {
    opacity: 0;
    transform: translateX(-20px);
    position: absolute;
    width: calc(100% - 80px);
    pointer-events: none;
}

.form-step.is-visible {
    opacity: 1;
    transform: translateX(0);
}

#chat-guest-pin-modal .modal-footer-actions {
    margin-top: 20px;
}

#chat-guest-pin-modal .btn-link {
    background: none;
    border: none;
    color: #0053e2;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

#chat-guest-pin-modal .btn-link:hover {
    opacity: 1;
    text-decoration: underline;
}


/* --- Styles for PIN Box Input --- */

#chat-guest-pin-modal .pin-input-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    cursor: text;
}

#chat-guest-pin-modal .pin-box {
    width: 45px;
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 50px;
    transition: all 0.2s ease;
}


#chat-guest-pin-modal .pin-box.active {
    border-color: #0053e2;
    box-shadow: 0 0 0 3px rgba(124, 164, 238, 0.2);
}

#chat-guest-pin-modal .pin-hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    caret-color: transparent;
    z-index: 2;
    letter-spacing: 30px;
    padding-left: 15px;
}
#chat-guest-pin-modal .pin-hidden-input:focus {
    outline: none;
    box-shadow: none;
}

#chat-guest-pin-modal .js-chatbot-guest-auth-verify-pin .form-group {
    position: relative;
}

/* AI Disclaimer Modal */
.ai-disclaimer-modal-overlay {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 14px;
	z-index: 1200;
}

.ai-disclaimer-modal {
	background-color: #fff;
	width: 350px;
	padding: 25px;
	margin: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.ai-disclaimer-modal h3 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #404040;
}

.ai-disclaimer-modal p {
	margin-bottom: 20px;
	color: #404040;
    font-size: 14px;
}

.ai-disclaimer-modal-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.ai-disclaimer-modal-buttons button {
	padding: 8px 16px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.2s ease;
}

.ai-disclaimer-modal-buttons .confirm-btn {
	background-color: #0053e2;
	color: #fff;
	border-radius: 50px;
	padding: 10px 30px;
}

.ai-disclaimer-modal-buttons .confirm-btn:hover {
	background-color: #003ba0;
	transition: background-color 0.2s ease;
}

.ai-disclaimer-modal .disclaimer-highlighted-msg {
	font-family: "EverydaySans medium", "Open Sans", Sans-serif;
}

.chatbot-profile-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#addon-chatbot-main .chatbot-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.chatbot-profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.chatbot-profile-container .chatbot-profile-name,
.chatbot-profile-container .chatbot-profile-subname {
    margin: 0;
    line-height: 1.5;
    color: #ffffff;
}

.chatbot-profile-container .chatbot-profile-name {
    font-weight: bold;
}

.chatbot-profile-container .chatbot-profile-subname {
    font-size: 10pt;
    opacity: 0.9;
}

/* Link Warning Modal Overlay */
.link-warning-modal-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    z-index: 1200;
}

/* Link Warning Modal Box */
.link-warning-modal {
    background-color: #fff;
    width: 350px;
    padding: 25px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.link-warning-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.link-warning-modal p {
    margin-bottom: 10px;
    color: #404040;
}

.link-warning-modal .link-warning-target-url {
    color: #0053e2;
    font-weight: 500;
    margin-bottom: 20px;
    word-break: break-all; 
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 6px;
}

.link-warning-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.link-warning-modal-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.link-warning-modal-buttons .cancel-btn {
    background-color: #e3e2e2;
    color: #333;
    border-radius: 50px;
    padding: 10px 30px;
}

.link-warning-modal-buttons .cancel-btn:hover {
    background-color: #c8c7c7;
    transition: background-color 0.2s ease;
}

.link-warning-modal-buttons .confirm-btn {
    background-color: #0053e2; 
    color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
}

.link-warning-modal-buttons .confirm-btn:hover {
    background-color: #003ba0;
    transition: background-color 0.2s ease;
}

#chat-guest-pin-modal .modal-subtitle.warning-pin {
	color: rgb(99, 99, 15);
	background-color: rgba(255, 255, 0, 0.3);
    padding: 12px 15px;        
    border-radius: 8px;        
    border: 1px solid #dbd5d5;    
    
    margin-bottom: 20px;
    margin-top: 10px;
    font-size: 0.9rem;        
    font-weight: 500;
}

/* Responsive */
@media only screen and (max-width: 767px) {
	#addon-chatbot-main {
		width: 300px;
		min-width: 300px;
		max-width: 300px;
		height: 500px;
		max-height: 500px;
	}
	#addon-chatbot-main .chat-header {
		height: 50px;
	}
	#addon-chatbot-main .chatbot-logo {
		width: 35px;
		height: 35px;
	}
	#addon-chatbot-main .user-message,
	#addon-chatbot-main .bot-message,
	#addon-chatbot-main .bot-options-text div,
	#addon-chatbot-main .bot-options-text span {
		font-size: 10pt;
		line-height: 1.3em;
	}
	#addon-chatbot-main .chat-box {
		padding: 15px;
	}
	#addon-chatbot-main .first-message {
		flex-direction: column;
	}
	#addon-chatbot-main #send-btn {
		width: 50px;
		height: 40px;
	}
	#addon-chatbot-main .bot-options-image img {
		height: 60%;
	}
	#addon-chatbot-main .bot-options-image .image-container {
		height: 240px;
	}
	#addon-chatbot-main img.bot-profile-picture {
		width: 30px;
		min-width: 30px;
	}
	#addon-chatbot-main .bot-options-image .sla-chip {
		display: none;
	}
	#addon-chatbot-main .message {
		gap: 10px;
	}
	#addon-chatbot-main .bot-message {
		font-size: 10pt;
		max-width: 100%;
		padding: 10px 15px;
	}
	#addon-chatbot-main .first-message .bot-message {
		padding: 0 10px 10px 10px;
	}
	#addon-chatbot-main .first-message .bot-message-content {
		min-width: 230px;
	}
	#addon-chatbot-main .user-message {
		max-width: 100%;
	}
	#addon-chatbot-main .product-name {
		font-size: 10pt;
	}
	.pagination-controls button {
		padding: 8px 15px;
	}
	#addon-chatbot-main .bot-option-button {
		font-size: 10pt;
	}
	#addon-chatbot-main .first-message .bot-profile-picture {
		width: 130px;
		height: 130px;
		padding: 0;
	}
	.end-session-modal-buttons .confirm-btn {
		line-height: 1.4em;
	}
	img.bot-profile-picture {
		width: 30px;
		height: 30px;
	}
	/* #addon-chatbot-main .chatbot-logo {
		width: 20px;
		height: 20px;
	} */
	/*	.chatbot-profile-container .chatbot-profile-name,*/
	.chatbot-profile-container .chatbot-profile-subname {
		display: none;
	}
}

@media only screen and (max-width: 576px) {
	#addon-chatbot-main .close-btn {
		top: 10px;
		right: 45px;
	}

	#addon-chatbot-main .end-session-btn {
		top: 10px;
		right: 10px;
	}
}