/* ============================================
   CROWN CHEMICAL - MOBILE FIXES V2
   Copy this entire code
   ============================================ */

/* FIX 1: Live Chat - Move to Left Side (doesn't block cart) */
#liveChatWidget {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;  /* Left side now */
    right: auto !important;
    z-index: 9998;
}

.chat-window {
    position: fixed !important;
    bottom: 90px !important;
    left: 20px !important;  /* Left side */
    right: auto !important;
}

/* FIX 2: Newsletter Input - Force Visibility */
.news-letter {
    background: #f5f7fa;
    padding: 40px 20px;
}

.news-letter .form {
    display: block !important;
    visibility: visible !important;
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 600px;
}

.news-letter h2 {
    display: block !important;
    color: #0d1821 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-align: center;
}

.news-letter .message {
    display: none;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.news-letter .message.show {
    display: block !important;
}

.news-letter .input-body {
    display: flex !important;
    gap: 10px;
    margin-top: 20px;
}

.news-letter .input-body input[type="text"] {
    flex: 1;
    display: block !important;
    padding: 14px 16px !important;
    border: 2px solid #0B9444 !important;
    border-radius: 8px;
    font-size: 16px !important;
    background: #ffffff !important;
    color: #0d1821 !important;
    min-height: 48px;
    width: 50 !important;
}

.news-letter .input-body input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.news-letter .input-body button {
    display: block !important;
    padding: 14px 24px !important;
    background: #0B9444 !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-height: 48px;
}

/* FIX 3: Search Bar (Navbar) - Show on Mobile */
  
   

/* FIX 4: Clear Cart Button */
@media (max-width: 477px) {
    .clear-cart {
        display: block !important;
        width: 100%;
        padding: 12px;
        margin-bottom: 12px;
        background: #ff3b30;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }
}

/* FIX 5: Logo Size */
.home img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}








@media (max-width: 477px) {
    .home img {
        width: 90px;
        height: 90px;
    }
}

/* FIX 6: Cart Panel - Ensure subtotal is visible */
.cart-panel {
    z-index: 10000 !important;
}

.cart-total {
    padding: 20px;
    background: #fff;
    border-top: 2px solid #e0e0e0;
    margin-top: auto;
}


/* Mobile Newsletter */
@media (max-width: 600px) {
    .news-letter .input-body {
        flex-direction: column !important;
    }
    
    .news-letter .input-body input,
    .news-letter .input-body button {
        width: 100% !important;
    }

      #liveChatWidget {
        bottom: 100px;
        right: 15px;
    }


}
