/*
Theme Name: Suda Suda Vandi
Theme URI: https://sudasudavandi.com
Description: Child theme for restaurant ordering - Divi Child
Author: SkyGuts
Template: Divi
Version: 8.13
*/

/* ============================================================
   BASIC STYLES
============================================================ */
.woocommerce span.onsale {
    display: none !important;
}

/* ============================================================
   WCFM STORE LIST PAGE - Hide map and contact info
============================================================ */
.wcfmmp-stores-wrap #wcfmmp-store-lists-map,
.wcfmmp-stores-wrap #wcfmmp-store-lists-map-wrap,
.wcfmmp-stores-wrap .wcfmmp-store-lists-filter-wrap,
.wcfmmp-stores-wrap .wcfmmp-store-lists-map-wrapper {
    display: none !important;
}

.wcfmmp-stores-wrap .store-phone,
.wcfmmp-stores-wrap .store-email,
.wcfmmp-stores-wrap .store_address,
.wcfmmp-stores-wrap .store-enquiry,
.wcfmmp-stores-wrap .wcfmmp-store-enquiry {
    display: none !important;
}

/* ============================================================
   QUICK ADD BUTTONS
============================================================ */
.suda-add-wrap {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suda-add-btn {
    background: #00a693;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.suda-add-btn:hover {
    background: #008578;
}

.suda-qty-controls {
    display: inline-flex;
    align-items: center;
    background: #00a693;
    border-radius: 4px;
    overflow: hidden;
}

.suda-qty-btn {
    background: transparent;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suda-qty-btn:hover {
    background: rgba(255,255,255,0.2);
}

.suda-qty-display {
    color: #fff;
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

/* ============================================================
   HIDE DUPLICATE FSSAI FIELD (WCFM adds one by default)
============================================================ */
/* Hide the second FSSAI field if it appears */
.wcfm_ele_wrapper:has(input[name="wcfm_fssai_license"]) ~ .wcfm_ele_wrapper:has(input[name="wcfm_fssai_license"]) {
    display: none !important;
}

/* Alternative: Hide FSSAI near shop description (keep one at top) */
.wcfm-container .wcfm_ele_wrapper:nth-last-child(-n+5):has(label:contains("FSSAI")) {
    display: none !important;
}

/* ============================================================
   DELIVERY STATUS BADGE
============================================================ */
.ssv-delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ssv-delivery-badge.open {
    background: #10b981;
    color: #fff;
}

.ssv-delivery-badge.closed {
    background: #ef4444;
    color: #fff;
}

/* ============================================================
   CLOSED RESTAURANT OVERLAY
============================================================ */
.ssv-closed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ssv-closed-message {
    background: #ef4444;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

/* ============================================================
   CART STYLES
============================================================ */
.suda-cart-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #00a693 0%, #008578 100%);
    color: #fff;
    padding: 12px 20px;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.suda-cart-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.suda-cart-count {
    background: #fff;
    color: #00a693;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.suda-cart-total {
    font-size: 18px;
    font-weight: 700;
}

.suda-view-cart-btn {
    background: #fff;
    color: #00a693;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.suda-view-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============================================================
   PRODUCT TIMING BADGES
============================================================ */
.ssv-timing-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
}

.ssv-timing-badge.morning {
    background: #fef3c7;
    color: #92400e;
}

.ssv-timing-badge.afternoon {
    background: #fed7aa;
    color: #9a3412;
}

.ssv-timing-badge.night {
    background: #ddd6fe;
    color: #5b21b6;
}

.ssv-timing-badge.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================================
   ZONE DELIVERY INFO
============================================================ */
.ssv-zone-info {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.ssv-zone-name {
    font-weight: 700;
    color: #166534;
    margin-bottom: 5px;
}

.ssv-zone-fee {
    color: #15803d;
    font-size: 14px;
}

/* ============================================================
   ORDER STATUS COLORS
============================================================ */
.ssv-status-pending { background: #fef3c7; color: #92400e; }
.ssv-status-accepted { background: #dbeafe; color: #1e40af; }
.ssv-status-preparing { background: #e0e7ff; color: #3730a3; }
.ssv-status-ready { background: #d1fae5; color: #065f46; }
.ssv-status-picked { background: #cffafe; color: #0e7490; }
.ssv-status-delivered { background: #d1fae5; color: #065f46; }
.ssv-status-cancelled { background: #fee2e2; color: #991b1b; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .suda-cart-widget {
        padding: 10px 15px;
    }
    
    .suda-cart-total {
        font-size: 16px;
    }
}
