/* Floating Button */
.ai-chat-license {
    font-size: 10px !important;
    padding: 0px;
    color: #b5b5b5;
	font-weight: 100;
}
.ai-chat-license a{
    color: #dbdbdb;
}
.ai-chat-float-btn {
    position: fixed;
    bottom: 200px;
    right: 20px;
    background-color: rgb(0 0 0 / 0%); /* warna jangan diubah */
    color: #dfdfdf;
    width: 50px;
    height: 50px;
    font-size: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 35%);
    backdrop-filter: blur(5px);
}
.ai-chat-float-btn:hover {
    background-color: rgb(255 255 255 / 15%); /* warna jangan diubah */
}

.ai-chat-float-btn i {
    pointer-events: none;
    font-size: 20px;
}

/* Wrapper Form Chat */
.ai-chat-form-wrapper {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 320px;
    max-height: 80vh;
    background-color: rgb(0 0 0 / 66%);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 19998;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
	backdrop-filter: blur(10px);
}


.ai-chat-wa-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-chat-wa-btn:hover {
    background-color: #1da851;
}


/* Saat aktif (muncul ke atas) */
.ai-chat-form-wrapper.active {
    transform: translateY(0%);
}

@media (max-width: 480px) {
    .ai-chat-form-wrapper {
        right: 0;
        width: 100%;
        border-radius: 0;
    }
}
/* Konten Form */
.ai-chat-form {
    padding: 20px 20px 0px 20px;
    position: relative;
}

.ai-chat-form label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    color: #777575;
}

.ai-chat-form input[type="tel"],
.ai-chat-form input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ai-chat-submit-btn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-chat-submit-btn:hover {
    background-color: #005177;
}

/* Tombol Close */
.ai-chat-close-btn {
    position: absolute;
    top: 8px;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #888888;
    border: none;
    background: none;
}

.ai-chat-close-btn:hover {
    color: #b1b1b1;
}

/* Warning */
.ai-chat-warning {
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    padding: 8px;
    border-radius: 4px;
    margin: 10px auto;
    text-align: center;
}

/* Persetujuan kecil */
.ai-chat-consent {
    font-size: 10px;
    text-align: center;
    margin: 5px;
    color: #555;
}

/* Responsif Mobile */
@media (max-width: 480px) {
    .ai-chat-form-wrapper {
        max-width: 100%;
        border-radius: 0;
    }
}
.ai-chat-msg {
    max-width: 80%;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 12px;
    margin: 5px 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.ai-chat-msg-user {
    background: rgb(0 200 150 / 10%);
    border: 1px solid rgb(0 255 200 / 15%);
    border-radius: 16px 0px 16px 16px;
    padding: 12px 16px;
    margin: 8px 0;
    color: #dffdf7;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.3s ease;
	margin-left: auto;
}

.ai-chat-msg-user::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px 0px 16px 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    pointer-events: none;
}


.ai-chat-msg-ai {
    background: rgb(73 73 73 / 9%);
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 0px 16px 16px;
    padding: 12px 16px;
    margin: 8px 0;
    color: #ffffff;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);    
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.3s ease;
}
.ai-chat-msg-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0px 16px 16px;
    background: linear-gradient(145deg, rgb(255 255 255 / 26%), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.ai-chat-reset-btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-chat-reset-btn:hover {
    background-color: #dcdcdc;
}
.ai-chat-conversation {
    height: 420px;
    overflow-y: auto;
    padding: 10px 10px 30px;
    background: rgb(0 0 0 / 0%);    
    margin-bottom: 8px;
}

.ai-chat-input-area {
    display: flex;
    gap: 0px;
    padding: 5px;    
    background-color: rgb(255 255 255 / 0%);
    position: sticky;
    bottom: 0;
}

.ai-chat-input-area input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 50px 0px 0px 50px !important;
    border: 1px solid #dadada;
    color: #ddd;
}

.ai-chat-input-area button {
    color: #ffffff;
    border-radius: 0px 50px 50px 0px;
    cursor: pointer;
    font-size: 16px;
    background: rgb(0 200 150 / 10%);
    border: 1px solid rgb(0 255 200 / 15%);
    padding: 12px 16px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;    
}
.ai-chat-input-area button:hover {
    background-color: rgb(37 211 102);
    color: #fff;   
}
.ai-chat-input-area button i {
    pointer-events: none;
}
.ai-chat-row-btns {
    display: flex !important;
    gap: 10px;
    margin: 10px 0px;
}

.ai-chat-row-btns .ai-chat-col {
    flex: 1;
}

.ai-chat-reset-btn,
.ai-chat-wa-btn {
    width: 100%; 
    margin-top: 0; 
}
.ai-chat-form input[type="tel"]:focus,
.ai-chat-form input[type="email"]:focus,
.ai-chat-input-area input:focus {
    border-color: #a7a7a74d !important;
    outline: none;    
    transition: all 0.2s ease-in-out;
	background: #000000;
    color: #8a8a8a;
}
.ai-chat-loading {
    display: flex;
    gap: 2px;
    font-weight: bold;
    padding: 8px 12px;
    color: #888;
    animation: blink 1.2s infinite;
}

.ai-chat-loading .dot {
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}
.ai-chat-maximize {
    position: absolute;
    top: 13px;
    right: 50px;
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    color: #888;
    z-index: 9999;
}

.ai-chat-maximize:hover {
    color: #333;
}

#ai_chat_form_container.maximized {
    width: 95vw !important;
    height: 90vh !important;
    max-width: none !important;
    max-height: none !important;
    bottom: 90vh !important;    
    border-radius: 10px !important;
}

#ai_chat_reply_preview.ai-chat-reply-inline.ai-chat-minimized {
    position: relative;
    top: -60px;
    font-size: 10px;
    max-height: 30px;
    overflow-y: auto;
}
.emoset-btn {    
	text-wrap-mode: nowrap!important;
}
.ai-chat-tools {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.7;
}

.ai-chat-tools button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 12px;
	color: #e3e3e3;
}

.ai-chat-tools button:hover {
    color: #fff;
}
.ai-chat-reply-preview {
    font-size: 12px;
    color: #ffffff;
    background: #2e9556;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-left: 3px solid #22cd0b;
    white-space: pre-wrap;
}

.ai-chat-input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 100;
}

.ai-chat-reply-inline {
    background: #e4f3ff;
    color: #222;
    padding: 5px 10px;
    margin: 5px 10px 0;
    border-left: 4px solid #1d9bf0;
    font-size: 13px;
    max-width: calc(93% - 20px);
    overflow-wrap: break-word;
}
#ai_chat_reply_preview.ai-chat-reply-inline {
    margin: 5px 10px;
    padding: 5px 10px;
    background: #f0f0f0;
    color: #222;
    border-left: 4px solid #1d9bf0;
    font-size: 10px;
    overflow-y: auto;
    max-height: 30px;
}
.ai-chat-conversation::-webkit-scrollbar {
    width: 5px;
}

.ai-chat-conversation::-webkit-scrollbar-track {
    background: transparent; /* Scrollbar background transparan */
}

.ai-chat-conversation::-webkit-scrollbar-thumb {
    background-color: #22cd0b; /* Thumb tetap tampak ringan */
    border-radius: 10px;
}
.emoset_produk-thumb-vertical-line-container-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  left: 2px;
  z-index: 2;
  top:70px;
  
  }
.emoset_produk-thumb-breadcrumb-chat {  
  font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgb(223 223 223 / 24%);
    margin-bottom: 15px;
    writing-mode: vertical-lr;
    transform: rotate(0deg);
    text-orientation: sideways;
    transform: rotate(180deg);
    direction: rtl;    
    padding: 10px 2px;    
	width:auto;
	font-weight: 100;
	
}
#ai_chat_form_fields {
    width: 365px;
    max-width: 90%;
    margin: 15vh auto 0 auto; /* Tengah vertikal sebagian */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

/* Semua input dan tombol di dalamnya */
#ai_chat_form_fields input,
#ai_chat_form_fields button {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
}

/* Mobile friendly */
@media (max-width: 480px) {
    #ai_chat_form_fields {
        width: 95%;
        margin-top: 10vh;
    }
}
