:root {
    --aihcc-primary-color: #1e73be;
    --aihcc-accent-color: #b48921;
    --aihcc-header-color: var(--aihcc-primary-color);
    --aihcc-accent-color: var(--aihcc-accent-color);
}

.aihcc-header, .aihcc-fab  {
    background-color: var(--aihcc-header-color);
    color: #fff;
}


.shop-price,.aihcc-message-content a ,.aihcc-message h1, .aihcc-message h2,.aihcc-message h3,.aihcc-message h4{
	 color: var(--aihcc-accent-color)!important;
}
.aihcc-send, .shop-button, .card-button, .hotel-button,.aihcc-voice-icon{

	background:  var(--aihcc-header-color);;
}

.shop-button, .card-button, .hotel-button{
	font-size: 14px;
}
.aihcc-agent-button{
	 background: var(--aihcc-accent-color);
}
 #aihcc-admin-chat-root .aihcc-message--user {
 	 background: var(--aihcc-accent-color);
 	}
.aihcc-message--user .aihcc-message-content{
	background: var(--aihcc-accent-color);
}

.aihcc-floating-shell {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	font-family: Arial, sans-serif;
}

.aihcc-fab {
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	color: #fff;
	font-weight: 700;
	height: 60px;
    width: 60px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    border-radius: 50%;
}

.aihcc-widget {
	width:400px;
	max-width: calc(100vw - 32px);
	margin-bottom: 12px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #dcdcde;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.aihcc-widget--admin {
	width: 100%;
	max-width: 760px;
	margin-top: 16px;
}

.aihcc-header,
.aihcc-admin-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.aihcc-header {
	padding: 14px 16px;
	color: #fff;
}

.aihcc-title {
	font-size: 16px;
	font-weight: 700;
}

.aihcc-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.aihcc-icon-button,
.aihcc-link-button {
	border: 0;
	background: transparent;
	cursor: pointer;
}

.aihcc-icon-button {
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

.aihcc-link-button {
	color: #fff;
	text-decoration: underline;
	font-size: 13px;
}

.aihcc-messages {
	height: 360px;
	overflow-y: auto;
	padding: 14px;
	background: #f6f7f7;
}

#aihcc-admin-chat-root .aihcc-messages{
	height: 80vh;
}

.aihcc-message-content {
	max-width: 85%;
	margin-bottom: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.45;
	font-size: 14px;
}
.aihcc-message-content:has(ol) , .aihcc-message-content:has(ul) {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
}

 .aihcc-message--bot .aihcc-message-content, .typing-dots{
	background: #fff;
	border: 1px solid var(--aihcc-header-color);
	color: #1d2327;
}

 .aihcc-message--user .aihcc-message-content{
	margin-left: auto;
	/*background: #0f62fe;*/
	color: #fff;
}

.aihcc-composer {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #dcdcde;
	background: #fff;
	flex-direction: column;
}

.aihcc-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #8c8f94;
	border-radius: 8px;
	resize: vertical;
	font: inherit;
	background: #fff!important;
	min-height: 46px;
	color: #000;
	font-size: 16px !important;
}

.aihcc-send{
max-width: 140px;
    overflow: hidden;
    padding: 10px;
    margin: 10px;
    font-size: 14px;
    color: #fff;
}

.aihcc-send:disabled,
.aihcc-fab:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}
.aihcc-fab img{
	width: 40px;
	border-radius: 99px;
}

.aihcc-error {
	padding: 0 12px 12px;
	color: #b32d2e;
	font-size: 13px;
}

.aihcc-admin-console {
	max-width: 960px;
}

.aihcc-admin-header {
	margin: 12px 0;
}
.aihcc-admin-sidebar-panel{
	overflow: auto;
}
.aihcc-admin-chat-box-left-panel{
	height: calc(90% - 80px);
    overflow: auto;
}
.aihcc-admin-chat-box-panel{
	display: flex; height: 90vh; border: 1px solid #ddd;overflow: auto;
}


.shop-container, .card-container {
	padding: 10px;
}

.shop-reply , .card-reply{
	margin-bottom: 10px;
	font-size: 14px;
}

.shop-grid , .card-grid{
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.shop-card, .hotel-card {
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 10px;
	width: 220px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	text-align: center;
	background: #fff;
}

.shop-image, .hotel-image {
	width: 100%;
	max-height: 140px;
	height: auto;
	object-fit: cover;
	border-radius: 8px;
}

.shop-title , .hotel-title , .hotel-summary{
	font-size: 14px;
    margin: 8px 0 !important;
    font-weight: 500
}
.hotel-summary{
	color: #000;
    line-height: 1.2em;
}

.shop-button:hover, .hotel-button:hover{
	color: var(--aihcc-accent-color) !important;

}

.shop-price {
	font-weight: bold;
}

.shop-button , .hotel-button{
	display: inline-block;
	margin-top: 8px;
	padding: 6px 12px;
	color: white;
	border-radius: 6px;
	text-decoration: none;
}

.aihcc-agent-container {
	margin-top: 12px;
}

.aihcc-agent-button {
	display: inline-flex;
	align-items: center;
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: opacity 0.2s ease;
	margin-bottom: 10px;
}

.aihcc-agent-button:hover {
	opacity: 0.85;
}

#aihcc-admin-chat-root .aihcc-message{
	max-width: 85%;
	margin-bottom: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.45;
	font-size: 14px;
}


#aihcc-admin-chat-root .aihcc-message--bot {
	background: #fff;
	border: 1px solid #dcdcde;
	color: #1d2327;
}

 #aihcc-admin-chat-root .aihcc-message--user {
	margin-left: auto;
	/*background: #0f62fe;*/
	color: #fff;
}


.aihcc-agent-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: none;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
}

.typing-indicator::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url(img/chatai.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.typing-indicator .typing-dots {
	display: flex;
	border-radius: 12px;
	background: #fff;
	width: 100%;
	padding: 20px;
}
/*.typing-indicator::before {
	font-family: dashicons;
	content: "\f468";
	font-size: 18px;
}*/

.typing-indicator {
	display: flex;
	gap: 4px;
	padding: 6px 0;
}

.typing-indicator .typing-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #999;
	animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
	animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
	animation-delay: 0.4s;
}
.postbox{
	padding: 20px;
}

.aihcc-message-content ol p, .aihcc-message-content ul p{
	padding: 0px;
	margin: 0px;
}
.aihcc-message-content ol , .aihcc-message-content ul{
	margin: 0px 0px 0px 14px;
	padding: 0px;
}
.aihcc-message-content p{
	margin-bottom: 4px;
}


.aihcc-message-content {
    display: flex;
    flex-direction: column;
}

/* General response text */


/* Container for cards */
.aihcc-message-content > ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

/* Card */
.aihcc-message-content > ol > li {
    list-style: none;
    /*border: 1px solid var(--aihcc-header-color);*/
	color: #1d2327;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* Remove numbering completely */
.aihcc-message-content > ol > li::marker {
    content: "";
}

/* Title */
.aihcc-message-content > ol > li strong {
    font-size: 1rem;
}

/* Link */
.aihcc-message-content > ol > li a {
    text-decoration: none;
    color: #2563eb;
}

/* Image */
.aihcc-message-content > ol > li img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 12px;
    display: block;
}

/* Remove extra spacing */
.aihcc-message-content > ol > li p {
    margin: 0;
}

.aihcc-message-content > ol > li p + p {
    margin-top: 12px;
}


.aihcc-message-content > ol {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    margin: 0;
    list-style: none;

    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

/* cards */
.aihcc-message-content > ol > li {
    list-style: none;
    flex: 0 0 300px; /* card width */
    min-width: 300px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;

    scroll-snap-align: start;
}


/* hide numbering */
.aihcc-message-content > ol > li::marker {
    content: "";
}


.card-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.swiper-wrapper {
    overflow: hidden;
}

.swiper-track {
    display: flex;
    transition: transform 0.4s ease;
}

.swiper-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.hotel-card {
    width: 100%;
    max-width: 300px;
}

.swiper-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 24px;
    padding: 8px 12px;
}

.swiper-arrow.prev {
    left: 0px;
}

.swiper-arrow.next {
    right: 0px;
}

.swiper-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.swiper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.swiper-dot.active {
    background: #333;
}

.aihcc-composer-input-container {
	display: flex;
    align-items: center;
    flex: 1
}

.aihcc-date-range-picker {
	font-size: 14px;
    display: flex;
    border-bottom: 1px solid #ccc;
    color: #000;
    padding-bottom: 14px;
}
/* Voice CSS - BEGIN */
.aihcc-voice-container {
	display: flex;
	align-items: center;
}
.aihcc-voice-icon {
	border-radius: 999px;
	width: 45px;
	height: 45px;
	color: #fff;
	border: none;
	display: flex;
    align-items: center;
    justify-content: center;
	cursor: pointer;
}
.aihcc-voice-screen {
    height: 480.04px;
    overflow-y: auto;
}
.aihcc-voice-icon-image {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.aihcc-voice-listen-container{
	display: flex;
	flex-direction: column;
	padding: 20px;
}
.aihcc-voice-h3{
	margin: 0;
    font-size: 18px;
    font-weight: bold;
}
.aihcc-voice-subheading {
	color: var(--aihcc-header-color);
	font-size: 14px;
	font-weight: 300;
}
.aihcc-voice-start-button {
	max-width: 130px;
	font-size: 14px;
    background-color: color-mix(in srgb, var(--aihcc-header-color) 5%, transparent);
    border: 1px color-mix(in srgb, var(--aihcc-header-color) 40%, transparent) solid;
    border-radius: 8px;
    color: var(--aihcc-header-color);
    padding: 10px 5px;
    cursor: pointer;
	box-shadow: 0 2px 6px color-mix(in srgb, var(--aihcc-header-color) 8%, transparent), 0 8px 24px color-mix(in srgb, var(--aihcc-header-color) 10%, transparent);
}
.aihcc-voice-hr {
	border: 0;
  	border-top: 1px solid #e1e1e1;
}
.aihcc-voice-transcript {
	padding: 20px;
}
.aihcc-voice-transcript-h4 {
	font-size: 16px;
	font-weight: bold;
	margin: 0 0 20px;
}
.aihcc-voice-links-drawer {
	position: sticky;
	bottom: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--aihcc-header-color) 22%, transparent);
	border-radius: 16px 16px 0 0;
	box-shadow:
		0 -4px 16px color-mix(in srgb, var(--aihcc-header-color) 8%, transparent),
		0 -12px 32px color-mix(in srgb, var(--aihcc-header-color) 10%, transparent);
	margin-top: 16px;
	overflow: hidden;
}
.aihcc-voice-links-toggle {
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 0;
	background: #fff;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	justify-content: space-between;
}
.aihcc-voice-links-icon {
	color: var(--aihcc-header-color);
}
.aihcc-voice-links-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
	margin-right: auto;
}
.aihcc-voice-links-count {
	background: color-mix(in srgb, var(--aihcc-header-color) 10%, transparent);
	color: var(--aihcc-header-color);
	border-radius: 999px;
	padding: 3px 9px;
	font-size: 12px;
	font-weight: 700;
}
.aihcc-voice-links-arrow {
	color: var(--aihcc-header-color);
	font-weight: 700;
	font-size: 18px;
}
.aihcc-voice-links-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease, padding 0.25s ease;
	padding: 0 14px;
}
.aihcc-voice-links-drawer.is-open .aihcc-voice-links-content {
	max-height: 260px;
	overflow-y: auto;
	padding: 0 14px 14px;
}
.aihcc-voice-link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--aihcc-header-color) 40%, transparent);
	border-radius: 10px;
	background: #fff;
	margin-bottom: 8px;
}
.aihcc-voice-link, .aihcc-voice-booking-link {
	color: var(--aihcc-header-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.aihcc-voice-link {
	flex: 1;
}
.aihcc-voice-booking-link {
	white-space: nowrap;
}
.aihcc-voice-button-container {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}
.aihcc-voice-button-container .aihcc-voice-start-button {
	    min-width: 130px;
}
/* Voice CSS - END */

@keyframes typingBounce {

	0%, 80%, 100% {
		transform: scale(0.7);
		opacity: 0.5;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}