.container-chat {
    overflow: hidden;
    position: relative;
    height: 80vh;
}

#main-container {
    height: 100%;
    width: 100%;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

#bottom-sheet-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

#bottom-sheet-overlay.fade-visible {
    opacity: 1;
    visibility: visible;
}

#image-input {
    display: none !important;
}

#messages-container {
    scroll-behavior: smooth;
    background-color: white;
    padding: 1rem;
    flex-grow: 1;
    overflow: auto;
    overflow-anchor: none; 
}

.loading-indicator {
  text-align: center;
  padding: 8px;
  color: #666;
  font-size: 14px;
}

.message-image {
    max-width: 200px; /* batasi lebar maksimal */
    max-height: 200px; /* batasi tinggi maksimal */
    width: auto;       /* sesuaikan lebar proporsional */
    height: auto;      /* sesuaikan tinggi proporsional */
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: block;
    /* border: 1px solid #ccc; */
    cursor: pointer;
    object-fit: cover; /* pastikan gambar proporsional */
}

.message-status i {
    font-size: 0.9rem;
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.icon-gray {
    color: #d1d5db;
}

.icon-blue {
    color: #60a5fa;
}

.user-message-bubble {
    background-color: #C5515C;
    color: #FFFFFF;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
    border-radius: 0.5rem;
    /* max-width: 85%; */
    font-size: 0.9rem;
}

.other-message-bubble {
    background-color: #F8E9EC;
    color: #231F20;
    border-radius: 0.5rem;
    /* max-width: 85%; */
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

.message-bubble-product-card {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.message-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.message-row:last-child {
    margin-bottom: 0 !important;
}

.interlocutor-detail {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.interlocutor-container,
.interlocutor-name-container {
    display: flex;
    align-items: center;
}

#interlocutor-name {
    font-weight: 500;
    font-size: 1rem;
    color: #58595b;
}

#interlocutor-last-seen {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #a5a8aa;
}

.interlocutor-profile-container {
    position: relative;
    width: 3rem;
    height: 3rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.interlocutor-detail .profile-photo-interlocutor {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-status-dot-detail {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.8rem;
    height: 0.8rem;
    background-color: #9ca3af;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-input-area {
    padding: 0.5rem 1rem;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    position: relative;
}

.input-and-send-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}

.chat-input-box {
    background-color: #f0f2f5;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    flex-grow: 1;
    margin: 0;
}

.chat-input-box #message-input {
    border: none;
    background-color: transparent;
    padding: 0.5rem 0.75rem;
    flex-grow: 1;
    font-size: 1rem;
}

.chat-input-box #message-input:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.chat-input-box button {
    background-color: transparent;
    border: none;
    box-shadow: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    padding: 0;
    margin: 0 0.25rem;
    text-decoration: none;
}

.chat-input-box button i {
    font-size: 1.25rem;
}

.chat-input-box button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.chat-input-box button:focus {
    outline: none;
    box-shadow: none;
}

#send-button {
    margin-left: 0.5rem;
}

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 448px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.3s ease-out;
    background-color: white;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.bottom-sheet.show {
    transform: translateX(-50%) translateY(0);
}

.bottom-sheet-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.bottom-sheet-item:last-child {
    border-bottom: none;
}

.bottom-sheet-item i {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #6b7280;
}

.bottom-sheet-handle {
    width: 3rem;
    height: 0.25rem;
    background-color: #ccc;
    border-radius: 9999px;
    margin: 0 auto 1rem;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -0.2rem;
    right: 0.5rem;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 0.6rem;
    height: 0.6rem;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transform: translateX(50%);
    border: 1px solid white;
}

.date-label-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 1rem 0;
}

.date-label {
    background-color: #e8e8e8;
    color: #58595b;
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.header-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: max-content;
    min-width: unset;
    z-index: 10;
    overflow: hidden;
    display: none;
}

.header-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.header-dropdown-item:hover {
    background-color: #f5f5f5;
}

.header-dropdown-item i {
    margin-right: 0.75rem;
    color: #6b7280;
}

.header-dropdown-item.icon-only {
    justify-content: center;
    padding: 0.75rem;
    width: 40px;
    height: 40px;
}

.header-dropdown-item.icon-only i {
    margin-right: 0;
}

.warning-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 1rem;
    color: #58595b;
    font-weight: 400;
}

.warning-message a.security-guide-link {
    font-weight: bold;
    color: #ff8c00;
    text-decoration: none;
    cursor: pointer;
}

.penjual-label {
    background-color: #a7f3d0;
    color: #065f46;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
}

#image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1500;
    display: none;
}

#image-zoom-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-zoom-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

#image-zoom-modal .close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#image-zoom-modal.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.chat-list-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background-color: white;
}

.chat-list-item:hover {
    background-color: #f5f5f5;
}

.chat-list-item.bg-light {
    background-color: #e6e6e6;
}

.chat-list-item .profile-photo-container {
    position: relative;
    margin-right: 1rem;
    flex-shrink: 0;
}

.chat-list-item .profile-photo-list {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.online-status-dot-list {
    display: none;
}

.chat-content-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-content-right .chat-name-and-timestamp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.chat-content-right .chat-name {
    font-weight: 500;
    font-size: 1rem;
    color: #58595b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.chat-content-right .chat-timestamp-list {
    font-size: 0.8rem;
    color: #a5a8aa;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.chat-content-right .last-message-and-badge {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.chat-content-right .last-message {
    font-size: 0.9rem;
    color: #a5a8aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    padding-right: 0.5rem;
    min-width: 0;
}

.unread-count-badge {
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.unread-count-badge:empty {
    display: none;
}

.product-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0px 4px rgba(0, 0, 0, 0.05); */
    max-width: 280px;
    /* margin-top: 0.5rem; */
    /* border: 1px solid #e0e0e0; */
    display: flex;
    flex-direction: column;
}

.product-header-content {
    display: flex;
    padding: 0.75rem;
    gap: 0.75rem;
    align-items: center;
}

.product-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stock-badge {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.product-text-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-title {
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.15rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 1rem;
    font-weight: bold;
    color: #b92554;
    margin-bottom: 0;
}

.product-card-actions {
    padding: 0.75rem;
    padding-top: 0;
    display: flex;
    justify-content: center;
}

.product-card-btn.remind-me {
    background-color: white;
    color: #b92454;
    border: 1px solid #b92454;
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.4rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-card-btn.remind-me:hover {
    /* background-color: #e6f7ed; */
    border: 1px solid #D73B5B;
    color: #D73B5B;
}

.product-card-btn.add-to-cart,
.product-card-btn.buy-now {
    display: none;
}

.chat-list-search {
    position: relative;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 0;
    box-sizing: border-box;
    width: 100%;
}

.chat-list-search i.fa-search {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    z-index: 1;
}

.chat-list-search .form-control {
    padding-left: 2.5rem;
    border-radius: 50rem;
    background-color: #f0f2f5;
    border: none;
    height: 2.5rem;
    font-size: 0.95rem;
}

.chat-list-search .form-control:focus {
    box-shadow: none;
    background-color: #e8eaf0;
}

.chat-list-header {
    background-color: white;
    color: #333;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chat-list-header-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.chat-list-header-container h1 {
    color: #58595b;
    display: block;
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.chat-list-header-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative
}

.order-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    min-width: 160px;
    z-index: 1050;
    overflow: hidden;
}

.order-dropdown.hide {
    display: none;
}

.order-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

.order-item:hover {
    background: #f5f5f5;
}

.chat-list-header-menu i {
    color: #333;
    font-size: 1.25rem;
}

.chat-list-header-menu i:nth-child(1),
.chat-list-header-menu i:nth-child(2) {
    margin-right: 1rem;
}

.chat-list-header-menu i#close-icon-list {
    margin-left: 1rem;
}

.chat-list-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-top: 0.75rem;
}

#chat-list-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #fff;
    overflow: hidden;
}

#chat-view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #fff;
    overflow: hidden;
}

/* .chat-floating {
    max-height: calc(100vh - 233px);
    height: 500px;
    width: 25vw;
    max-width: 25vw;
    position: fixed;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 30px 0 #98a3b4;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
    opacity: 0;
    right: 3%;
    bottom: 20px;
    transform: translateY(50px);
    pointer-events: none;
} */

.chat-floating {
    /* max-height: calc(100vh - 233px); */
    max-height: calc(100vh - 150px);
    height: 600px;

    /* desktop + tablet */
    width: clamp(320px, 25vw, 420px);
    min-width: 320px;
    max-width: 420px;

    position: fixed;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 30px 0 #98a3b4;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
    opacity: 0;
    right: 3%;
    bottom: 20px;
    transform: translateY(50px);
    pointer-events: none;
}

.chat-floating.show {
    opacity: 1;
    transform: translateY(0);
    z-index: 1046;
    pointer-events: auto;
}

.chat-floating.hide {
    opacity: 0;
    transform: translateY(50px);
    z-index: -1;
    pointer-events: none;
}

#close-icon-list {
    display: none;
}

.chat-floating #close-icon-list {
    display: inline-block;
}

.message-failed {
    opacity: 0.6;
}

.message-failed .message-status-icon {
    cursor: pointer;
}

.online-status-dot-detail {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    position: absolute;
    bottom: 2px;
    right: 2px;
}

.online-status-dot-detail.online {
    background: #28a745;
}

/* --- WRAPPER UTAMA --- */
.quick-replies-wrapper {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    
    /* PENTING: Animasi perubahan tinggi wrapper */
    transition: max-height 0.4s ease-in-out, padding 0.3s ease;
    overflow: hidden; /* Wajib: agar konten produk terpotong saat mengecil */
    
    /* Keadaan Terbuka (Normal) */
    /* Berikan max-height yang cukup besar agar konten muat */
    max-height: 800px; 
    padding: 8px 0;
}

/* --- KEADAAN TERTUTUP (COLLAPSED) --- */
.quick-replies-wrapper.collapsed {
    /* 1. JANGAN 0, tapi beri tinggi untuk 'bar' tombol */
    /* Misalnya 40px atau 45px sesuai ukuran tombol */
    max-height: 40px; 
    
    /* Opsional: Hilangkan padding bawah agar pas tinggi barnya */
    padding-bottom: 0; 
    padding-top: 5px; /* Sesuaikan agar icon pas di tengah vertikal */
}

/* Saat collapsed, inner-content kita fade out biar halus */
.quick-replies-wrapper.collapsed .inner-content {
    opacity: 0;
    transition: opacity 0.2s ease; /* Hilang lebih cepat daripada slide wrap */
}

/* Putar Icon Tombol */
.quick-replies-wrapper.collapsed .toggle-btn i {
    transform: rotate(180deg);
}


/* --- TOMBOL TOGGLE --- */
.toggle-btn {
    position: absolute;
    /* Atur posisi agar pas di tengah bar saat collapsed */
    top: 5px; 
    right: 5px; /* Geser dikit biar ga mepet banget pinggir */
    background: transparent; /* Transparan biar rapi */
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    z-index: 20;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* --- SISA CSS LAIN TETAP SAMA --- */
.inner-content {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.quick-replies-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px;
    gap: 10px;
    
    /* Mencegah pemilihan teks saat di-drag */
    user-select: none; 
    -webkit-user-select: none;
    -ms-user-select: none;

    /* PENTING: Mencegah browser melakukan 'drag' elemen (biar ga muncul bayangan teks) */
    -webkit-user-drag: none; 

    /* Cursor Grab */
    cursor: grab;
    scrollbar-width: none;
}

.quick-replies-list:active {
    cursor: grabbing; /* Saat diklik tahan */
}

.quick-replies-list img, 
.quick-replies-list button {
    -webkit-user-drag: none;
    user-select: none;
}

.quick-reply-btn {
    flex: 0 0 auto;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.quick-reply-btn:hover {
    background-color: #b92554;
    color: white;
    border-color: #b92554;
}

.quick-replies-wrapper.no-toggle {
    padding-right: 0;
}

#image-input {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .chat-floating .container-chat {
        height: 100%;
        padding: 0;
    }

    .chat-floating #main-container {
        width: 100%;
    }

    .chat-floating #back-arrow {
        display: block;
    }

    .container-chat {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        height: 85vh;
    }

    #main-container {
        height: 100%;
        flex-direction: row;
        border-radius: 0.75rem;
        box-shadow: 0 1px 6px #cfd5e1;
        width: auto;
    }

    #chat-list-view {
        flex-basis: 320px;
        flex-shrink: 0;
        border-right: 1px solid #e0e0e0;
        border-top-left-radius: 0.75rem;
        border-bottom-left-radius: 0.75rem;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    #chat-view {
        flex-grow: 1;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: 0.75rem;
        border-bottom-right-radius: 0.75rem;
    }

    #back-arrow {
        display: none;
    }

    .chat-list-header .mobile-header-icons,
    .chat-list-header .chat-icon {
        display: none !important;
    }

    .chat-list-header .desktop-header-icons {
        display: flex !important;
    }

    .chat-list-search {
        background-color: white;
        margin: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .chat-list-items-container {
        scrollbar-width: thin;
        scrollbar-color: #154d38 #f0f2f5;
    }

    .chat-list-items-container::-webkit-scrollbar {
        width: 8px;
    }

    .chat-list-items-container::-webkit-scrollbar-track {
        background: #f0f2f5;
        border-radius: 10px;
    }

    .chat-list-items-container::-webkit-scrollbar-thumb {
        background-color: #154d38;
        border-radius: 10px;
        border: 2px solid #f0f2f5;
    }
}

@media (max-width: 767px) {
    .chat-list-header {
        box-shadow: none;
    }

    .chat-list-header .chat-icon,
    .chat-list-header .mobile-header-icons {
        display: none !important;
    }

    .chat-list-header .desktop-header-icons {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .chat-floating {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        right: 0;
        bottom: 90px;
        height: calc(100vh - 80px);
        border-radius: 12px 12px 0 0;
    }
}

@media (max-width: 767px) { /* Menggunakan 767px agar mencakup semua jenis smartphone */
    .chat-floating {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important; /* Full height layar */
        max-height: 100vh !important;
        right: 0 !important;
        bottom: 0 !important; /* Tempel ke bawah */
        border-radius: 0 !important; /* Hilangkan rounded corner agar seamless */
        transform: translateY(0);
    }

    .container-chat {
        height: 100vh !important; /* Paksa container mengambil seluruh tinggi viewport */
        padding: 0 !important;   /* Hilangkan padding luar */
    }

    #main-container {
        height: 100% !important;
        border-radius: 0 !important;
    }
}