/* Layout Container */
.is-chat .chat-viewport { 
    display: flex !important; 
    height: 700px; 
    max-height: 85vh;
    background: #fff !important; 
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

/* Sidebar (Left) */
.is-chat .chat-side { 
    width: 30%; 
    min-width: 300px; 
    border-right: 1px solid #e9edef; 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    z-index: 5;
}

/* Sidebar Header */
.is-chat .chat-side-header {
    background: #f0f2f5;
    padding: 10px 16px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9edef;
}
.is-chat .chat-avatar-self {
    width: 40px; height: 40px;
    background: #dfe5e7;
    border-radius: 50%;
}

/* Language Toggle Button */
.cc-lang-toggle {
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.cc-lang-toggle:hover { transform: scale(1.05); }
.cc-lang-toggle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Search Bar Simulation */
.is-chat .chat-search-bar {
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
}
.is-chat .chat-search-bar input {
    background: #f0f2f5;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 7px 15px;
    font-size: 14px;
}

/* Sidebar List */
.is-chat .chat-side-list { 
    flex: 1; 
    overflow-y: auto; 
    background: #fff;
}
.is-chat .chat-side-item { 
    display: flex; 
    align-items: center; 
    padding: 12px 15px; 
    border-bottom: 1px solid #f0f2f5; 
    cursor: pointer; 
    transition: background 0.2s; 
}
.is-chat .chat-side-item:hover { background: #f5f6f6; }
.is-chat .chat-side-item.active { background: #f0f2f5; }

.is-chat .chat-side-circle { 
    width: 45px; 
    height: 45px; 
    background: #00a884; 
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
.is-chat .chat-side-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.is-chat .chat-contact-name { font-size: 16px; font-weight: 500; color: #111b21; }
.is-chat .chat-contact-sub { font-size: 13px; color: #667781; margin-top: 3px; }

/* Main Stage (Right) */
.is-chat .chat-stage { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    background: #efeae2 !important; 
    position: relative; 
}
.is-chat .chat-stage-header {
    height: 60px;
    background: #f0f2f5;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d1d7db;
    z-index: 10;
}
.is-chat .chat-back-btn { display: none; margin-right: 10px; background: none; border: none; font-size: 20px; cursor: pointer; }

/* Messages Area */
.is-chat .chat-log { 
    flex: 1; 
    overflow-y: auto; 
    padding: 20px 5%; 
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-repeat: repeat;
    background-size: 400px;
    scroll-behavior: smooth;
}

/* Bubbles */
.is-chat .chat-bubble-wrap { 
    display: flex; 
    width: 100%; 
    margin-bottom: 10px; 
    scroll-margin-top: 70px; 
}
.is-chat .chat-bubble { 
    max-width: 92%; 
    padding: 8px 10px; 
    border-radius: 8px; 
    margin-bottom: 4px; 
    background: #fff; 
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); 
    position: relative;
    font-size: 14.2px;
    line-height: 19px;
    color: #111b21;
}
.is-chat .user .chat-bubble { background: #d9fdd3; margin-left: auto; }
.is-chat .chat-bubble-wrap.user { justify-content: flex-end; }
.is-chat .chat-time { font-size: 11px; color: #667781; text-align: right; margin-top: 4px; }

/* TYPING INDICATOR */
.is-chat .typing-bubble { padding: 12px 15px; display: flex; gap: 4px; align-items: center; width: auto; }
.is-chat .dot {
    width: 6px; height: 6px; background: #b1b1b1; border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.is-chat .dot:nth-child(1) { animation-delay: -0.32s; }
.is-chat .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* NEW GUEST SELECTOR STYLING */
.is-chat .chat-guests-ui {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}
.is-chat .chat-guests-ui button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e9edef;
    background: #f0f2f5;
    color: #00a884;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-weight: 300;
}
.is-chat .chat-guests-ui button:hover {
    background: #d9fdd3;
    border-color: #d9fdd3;
}
.is-chat .chat-guests-ui span {
    font-size: 22px;
    font-weight: 600;
    color: #111b21;
    min-width: 50px;
    text-align: center;
}

/* FOOD GRID */
.is-chat .chat-food-grid { 
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px; 
    padding-top: 10px; 
}
@media (min-width: 600px) {
    .is-chat .chat-food-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
.is-chat .chat-food-grid.single-item {
    display: block !important;
    max-width: 240px;
}

.is-chat .chat-food-card { 
    border: 1px solid #e9edef; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #fff; 
    text-align: center; 
    cursor: pointer; 
    transition: 0.1s; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.is-chat .chat-food-card:active { transform: scale(0.98); }
.is-chat .chat-food-card.selected { border: 2px solid #00a884; background: #eafff9; }

/* ZOOM BUTTON & IMAGE STYLES */
.is-chat .card-img-box, .maker-img { 
    width: 100%; 
    height: 150px; 
    background: #f0f2f5; 
    position: relative;
}
.is-chat .card-img-box img, .maker-img img { width: 100%; height: 100%; object-fit: cover; }
.is-chat .card-label { padding: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; }

.cc-zoom-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
    transition: 0.2s;
}
.cc-zoom-btn:hover { background: rgba(0,0,0,0.8); }

/* ZOOM MODAL (LIGHTBOX) */
.cc-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.cc-zoom-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cc-zoom-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.cc-zoom-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: 300;
}
@media (max-width: 768px) {
    .cc-zoom-close { top: -40px; right: 0; }
}

/* PRICE TAG */
.is-chat .card-price {
    font-size: 12px;
    color: #00a884;
    font-weight: 700;
    padding-bottom: 8px;
}

/* FOOTER & CHECKOUT */
.is-chat .chat-checkout-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.is-chat .chat-checkout-form input { 
    padding: 12px; 
    border: 1px solid #e9edef; 
    border-radius: 8px; 
    background: #f0f2f5; 
    width: 100%;
}
.is-chat .chat-form-btns { display: flex; gap: 8px; flex-direction: column; margin-top: 5px; }

.is-chat .chat-input-bar {
    height: 62px;
    background: #f0f2f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #d1d7db;
}
.is-chat .chat-price-display { font-weight: bold; color: #54656f; font-size: 16px; }
.is-chat .chat-btn-next { 
    background: #00a884; color: #fff; border: none; padding: 10px 24px; border-radius: 24px; cursor: pointer; font-weight: bold; font-size: 15px;
}

/* Empty State & Mobile */
.is-chat .chat-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #41525d;
    background: #f0f2f5;
    border-bottom: 6px solid #25d366; 
}
@media (max-width: 768px) {
    .is-chat .chat-viewport { height: 85vh; border: none; border-radius: 0; }
    .is-chat .chat-side { width: 100%; min-width: 0; border-right: none; }
    .is-chat .chat-stage { display: none; width: 100%; }
    .mobile-active .chat-side { display: none; }
    .mobile-active .chat-stage { display: flex; }
    .is-chat .chat-back-btn { display: block; }
}