﻿
/* =========================================================
   HEADER LOCATION
   ========================================================= */
.header-location {
    display: flex;
    align-items: center;
    margin: 0 12px;
}

.location-button {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    cursor: pointer;
    color: #333;
}

    .location-button > i:first-child {
        font-size: 20px;
    }

.location-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    max-width: 180px;
}

    .location-text small {
        font-size: 11px;
        color: #777;
    }

    .location-text strong {
        font-size: 14px;
        font-weight: 600;
        color: #222;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.location-arrow {
    font-size: 10px;
}


/* =========================================================
   LOCATION MODAL
   ========================================================= */

.location-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

    .location-modal .modal-header {
        padding: 18px 20px;
    }

    .location-modal .modal-title {
        font-size: 20px;
        font-weight: 600;
    }

    .location-modal .modal-body {
        padding: 20px;
    }


/* =========================================================
   LOCATION SEARCH
   ========================================================= */

.location-search-box {
    position: relative;
    width: 100%;
}

    .location-search-box > i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #777;
        z-index: 2;
    }

    .location-search-box input {
        width: 100%;
        height: 48px;
        padding-left: 42px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
    }

        .location-search-box input:focus {
            outline: none;
            border-color: #198754;
            box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.10);
        }


/* =========================================================
   LOCATION SUGGESTIONS
   ========================================================= */

.location-suggestions {
    width: 100%;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
}

.location-suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background: #fff;
}

    .location-suggestion-item:hover {
        background: #f7f7f7;
    }

    .location-suggestion-item i {
        color: #198754;
        margin-top: 3px;
    }

.location-suggestion-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}


/* =========================================================
   USE CURRENT LOCATION BUTTON
   ========================================================= */

.use-current-location-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px 15px;
    border: 1px solid #198754;
    border-radius: 8px;
    background: #fff;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

    .use-current-location-btn:hover {
        background: #198754;
        color: #fff;
    }

    .use-current-location-btn i {
        font-size: 16px;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .header-location {
        margin: 0 5px;
    }

    .location-text {
        max-width: 120px;
    }

        .location-text strong {
            max-width: 120px;
            font-size: 12px;
        }

        .location-text small {
            font-size: 10px;
        }

    .location-button > i:first-child {
        font-size: 18px;
    }

    .location-arrow {
        display: none;
    }

    .location-modal .modal-body {
        padding: 15px;
    }
}

.location-selector-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 70px;
}

    .location-selector-overlay.active {
        display: flex !important;
    }




/* ================================
   MOBILE HEADER LOCATION
   ================================ */

/* ================================
   MOBILE HEADER LOCATION
   ================================ */

@media (max-width: 767px) {

    .header-content {
        position: relative;
    }

    .header-location {
        position: absolute;
        left: 55px;
        top: 40%;
        transform: translateY(-50%);
        z-index: 10;
    }

        .header-location .location-button {
            display: flex;
            align-items: center;
            padding: 0;
            border: none;
            background: transparent;
            white-space: nowrap;
        }

        .header-location .location-text {
            display: flex;
            flex-direction: column;
            margin-left: 4px;
        }

            .header-location .location-text small {
                font-size: 10px;
                line-height: 12px;
            }

            .header-location .location-text strong {
                font-size: 12px;
                line-height: 14px;
            }

        .header-location .location-arrow {
            font-size: 8px;
            margin-left: 3px;
        }
}


/* ================================
   SCREEN 500px AND BELOW
   ================================ */

@media (max-width: 500px) {

    .header-location {
        left: 48px;
        top: 40%;
    }

        .header-location .location-button > .fa-map-marker-alt {
            font-size: 12px;
        }

        .header-location .location-text {
            margin-left: 3px;
        }

            .header-location .location-text small {
                font-size: 8px;
                line-height: 9px;
            }

            .header-location .location-text strong {
                font-size: 9px;
                line-height: 11px;
            }

        .header-location .location-arrow {
            font-size: 6px;
            margin-left: 2px;
        }
}


/* ================================
   SCREEN 400px AND BELOW
   ================================ */

@media (max-width: 400px) {

    .header-location {
        left: 42px;
        top: 40%;
    }

        .header-location .location-button > .fa-map-marker-alt {
            font-size: 10px;
        }

        .header-location .location-text {
            margin-left: 2px;
        }

            .header-location .location-text small {
                font-size: 7px;
                line-height: 8px;
            }

            .header-location .location-text strong {
                font-size: 8px;
                line-height: 9px;
            }

        .header-location .location-arrow {
            font-size: 5px;
            margin-left: 2px;
        }
}






















/* Layout Wrapper */
.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    min-height: 80vh;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 768px) {
    .checkout-container {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Left Side Panel (Map) */
.map-panel {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 450px;
}

@media (min-width: 768px) {
    .map-panel {
        width: 50%;
    }
}

/* Live Map styling */
#map-element {
    width: 100%;
    flex-grow: 1;
    background-color: #e5e7eb;
    min-height: 300px;
    z-index: 1;
}

/* Map Search Bar styling */
.map-search-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 10;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 10px 14px;
}

.search-icon {
    margin-right: 8px;
    color: #16a34a;
}

.map-search-bar input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #374151;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 12px;
}

/* GPS Button styling */
/*.current-location-btn {
    position: absolute;
    bottom: 140px;
    left: 16px;
    z-index: 10;
    background-color: #ffffff;
    border: 1px solid #16a34a;
    color: #15803d;
    padding: 8px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}*/
.current-location-btn {
    position: absolute;
    left: 16px;
    bottom: 340px;
    z-index: 1010;
    background-color: #ffffff;
    border: 1px solid #16a34a;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
}

    .current-location-btn:hover {
        background-color: #f0fdf4;
    }

/* Map Bottom Bar styling */
.delivery-address-footer {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    background-color: #ffffff;
    z-index: 5;
}

.delivery-title {
    font-size: 11px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.delivery-details {
    display: flex;
    align-items: start;
    gap: 12px;
}

.pin-icon-blue {
    color: #1e3a8a;
    font-size: 20px;
}

.location-heading {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.location-subtext {
    font-size: 12px;
    color: #6b7280;
}

/* Right Side Panel (Form) */
.form-panel {
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .form-panel {
        width: 50%;
        max-width: 550px;
    }
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .form-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: #111827;
    }

.close-form-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;

    pointer-events: auto !important;
    position: relative;
    z-index: 1000000;
}

/* Address Chip selectors */
.address-type-section label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chip {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
}



/* Forms Fields styling */
.input-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

    .input-wrapper input:focus {
        border-color: #16a34a;
        box-shadow: 0 0 0 1px #16a34a;
    }

    .input-wrapper input.readonly-input {
        background-color: #f9fafb;
        color: #1f2937;
        font-weight: 500;
        border-color: #d1d5db;
    }

.user-details-section {
    margin-top: 8px;
}

.section-notice {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
}

/* Phone input container with prefix */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-code {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: #6b7280;
    padding-right: 8px;
    border-right: 1px solid #d1d5db;
}

.phone-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 55px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

    .phone-input-wrapper input:focus {
        border-color: #16a34a;
        box-shadow: 0 0 0 1px #16a34a;
    }

/* Submit Action Button styling */
.form-actions {
    margin-top: 24px;
}

.save-address-btn {
    width: 100%;
    background-color: #15803d;
    color: #ffffff;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

    .save-address-btn:hover {
        background-color: #166534;
    }


/* Modal Backgound Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black transparent overlay */
    z-index: 9999; /* Page ke sabse upar dikhane ke liye */
    display: none; /* By default hidden rahega */
    justify-content: center;
    align-items: center;
    padding: 0px;
}

/* Modal Open hone par display toggle class */
.custom-modal-overlay.modal-active {
    display: flex;
}

/* Checkout Container Modifications for Modal View */
.custom-modal-overlay .checkout-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px; /* Modal size limit */
    height: 100vh; /* Screen height ka 85% */
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    padding: 0; /* Clear out default spacing */
    /* 🔴 CHANGE 1: Dono panels ko left-right align karne ke liye flex lagaya */
    display: flex;
    flex-direction: row;
}

/* 🔴 CHANGE 2: Left side map panel ko 50% width aur fixed position di taaki map render ho sake */
    .custom-modal-overlay .map-panel {
        width: 50%;
        height: 100%;
        min-height: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

/* 🔴 CHANGE 3: Leaflet map element ko poori height grid di */
#map-element {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    position: relative;
    z-index: 1;
}

/* 🔴 CHANGE 4: Right side form panel ko 50% width aur scrolling di */
.custom-modal-overlay .form-panel {
    width: 50%;
    height: 100%;
    border-left: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Right form ka sirf content scroll hoga */
.custom-modal-overlay .form-scroll-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
}

/* Save button hamesha bottom par fixed rahega */
.custom-modal-overlay .form-actions {
    flex-shrink: 0;
    background-color: #ffffff;
    padding: 12px 24px 24px 24px;
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
    z-index: 10;
}

/* Search bar ko relative rakhna zaroori h taaki list iske niche hi fix ho */
.map-search-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1010; /* Leaflet map controls se upar rakhne ke liye */
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 10px 14px;
}

/* 🔴 Suggestions container styling */
.suggestions-dropdown {
    position: absolute;
    top: 100%; /* Search bar ke thik niche */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px; /* Niche ke corners rounded */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin-top: 2px;
    z-index: 2000;
}

    /* Individual suggestion items */
    .suggestions-dropdown li {
        padding: 12px 16px;
        font-size: 14px;
        color: #374151;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .suggestions-dropdown li:last-child {
            border-bottom: none;
        }

        .suggestions-dropdown li:hover {
            background-color: #f3f4f6;
        }





/* Card Container Box */
.delivery-address-card-box {
    display: flex;
    align-items: center;
    background-color: #f8fafc; /* Subtle light blue-gray tint background */
    border: 1px solid #e2e8f0; /* Light gray thin border */
    border-radius: 12px; /* Smooth rounded layout corners */
    padding: 12px 16px;
    gap: 16px;
    margin-top: 8px;
}

/* Icon Parent Alignment Wrapper */
.custom-delivery-pin {
    position: relative;
    width: 24px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

/* Upper Dark Charcoal Black Ring Layer */
.pin-head-black {
    width: 22px;
    height: 22px;
    background-color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Center White Dot */
.pin-center-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
}

/* Base Light Blue Diamond Shadow Base */
.pin-shadow-blue {
    position: absolute;
    bottom: 2px;
    width: 14px;
    height: 12px;
    background-color: #0ea5e9; /* Sky Blue Neon Tint */
    border-radius: 50%;
    z-index: 1;
    /* Diamond pin shape setup */
    clip-path: polygon(0% 50%, 50% 0%, 100% 50%, 50% 100%);
}

/* Text Stack Tweaks */
.delivery-details-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-address-footer .location-heading {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.delivery-address-footer .location-subtext {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}







/* 🔴 SKELETON LOADING MASTER LAYER */
.loading-skeleton {
    pointer-events: none; /* User ispar kuch click nahi kar payega */
    user-select: none;
}

    /* 1. Right side ke saare inputs aur select chips ko block style dene ke liye */
    .loading-skeleton .chip,
    .loading-skeleton .input-wrapper input,
    .loading-skeleton .phone-input-wrapper input,
    .loading-skeleton .country-code,
    .loading-skeleton .save-address-btn,
    .loading-skeleton .section-notice {
        background: #e2e8f0 !important; /* Image jaisa subtle grey fill */
        color: transparent !important; /* text bilkul hide ho jayega */
        border-color: #e2e8f0 !important;
        position: relative;
        overflow: hidden;
        box-shadow: none !important;
    }

    /* 2. 🔴 FIXED: Left panel ke niche wale complete box aur uske inner text/icons ko change karne ke liye */
    .loading-skeleton.delivery-address-card-box,
    .loading-skeleton .location-heading,
    .loading-skeleton .location-subtext,
    .loading-skeleton .custom-delivery-pin,
    .loading-skeleton .pin-head-black,
    .loading-skeleton .pin-shadow-blue {
        background: #e2e8f0 !important;
        color: transparent !important;
        border-color: #e2e8f0 !important;
        visibility: hidden; /* Icon shapes ko hide karke text jaisa grey layer banane ke liye */
    }

    /* Jab text dynamic card par loading skeleton active ho to space block grey dikhe */
    .loading-skeleton.delivery-address-card-box {
        visibility: visible !important;
        background-color: #e2e8f0 !important;
        height: 70px; /* Base container layout shape locked matching the image */
    }

    /* Placeholders text removal layer code */
    .loading-skeleton input::placeholder {
        color: transparent !important;
    }




/* 🔴 Current Location Floating Button Wrapper tweaks */

    .current-location-btn:hover {
        background-color: #f0fdf4; /* Light green hover background highlight state */
    }

/* 🔴 COMPLETE GPS VECTOR ENGINE STYLING */
.custom-gps-target-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Main round ring element */
.gps-outer-circle {
    width: 12px;
    height: 12px;
    border: 2px solid #15803d; /* Solid dark green boundary stroke loop */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Inner solid point core */
.gps-inner-dot {
    width: 4px;
    height: 4px;
    background-color: #15803d;
    border-radius: 50%;
}

/* Generic targets vector lines styling handlers */
.crosshair-line {
    position: absolute;
    background-color: #15803d;
}

/* 4 specific pointer lines extensions layout logic configuration */
.line-top {
    top: 0;
    width: 2px;
    height: 3px;
    left: calc(50% - 1px);
}

.line-bottom {
    bottom: 0;
    width: 2px;
    height: 3px;
    left: calc(50% - 1px);
}

.line-left {
    left: 0;
    height: 2px;
    width: 3px;
    top: calc(50% - 1px);
}

.line-right {
    right: 0;
    height: 2px;
    width: 3px;
    top: calc(50% - 1px);
}





.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chip {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
}

    .chip input[type="radio"] {
        display: none;
    }

    .chip:has(input[type="radio"]:checked) {
        border-color: #16a34a;
        background-color: #f0fdf4;
        color: #15803d;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }



.form-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#addAddressForm {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-scroll-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

.form-actions {
    flex-shrink: 0;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

#no-retailer-message {
    flex: 1;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: #ffffff;
}

.no-retailer-content {
    max-width: 320px;
    margin: auto;
}

.no-retailer-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.no-retailer-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.no-retailer-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}


/* =========================================
   MOBILE RESPONSIVE - ADDRESS MODAL
   ========================================= */

/* =========================================
   MOBILE RESPONSIVE - ADDRESS MODAL
   ========================================= */

@media (max-width: 767px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    /* Modal overlay */
    .custom-modal-overlay {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 20px 0 0 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

        /* Main container */
        .custom-modal-overlay .checkout-container {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 0 !important;
            border-radius: 0 !important;
            overflow: visible !important;
            box-sizing: border-box !important;
        }


        /* =====================================
       MAP SECTION
       ===================================== */

        .custom-modal-overlay .map-panel {
            width: 100% !important;
            max-width: 100% !important;
            /*
         * Fixed 55vh + min-height hata diya
         * Isse top/bottom cut nahi hoga
         */
            height: 52vh !important;
            min-height: 360px !important;
            max-height: 500px !important;
            flex: 0 0 auto !important;
            margin: 0 !important;
            padding: 0 !important;
            border-radius: 0 !important;
            position: relative !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }


        /* Google Map */
        .custom-modal-overlay #map-element {
            width: 100% !important;
            max-width: 100% !important;
            height: 100% !important;
            min-height: 200px !important;
            flex: 1 1 auto !important;
            flex-grow: 1 !important;
            position: relative !important;
            z-index: 1 !important;
            box-sizing: border-box !important;
        }


        /* Search bar */
        .custom-modal-overlay .map-search-bar {
            position: absolute !important;
            top: 12px !important;
            left: 12px !important;
            right: 12px !important;
            width: auto !important;
            max-width: calc(100% - 24px) !important;
            z-index: 1010 !important;
            box-sizing: border-box !important;
        }


        /* Current location button */
        .custom-modal-overlay .current-location-btn {
            left: 50% !important;
            transform: translateX(-50%) !important;
            bottom: 60% !important;
            max-width: calc(100% - 30px) !important;
            white-space: nowrap !important;
            z-index: 1010 !important;
        }


        /* Address footer */
        .custom-modal-overlay .delivery-address-footer {
            width: 100% !important;
            max-width: 100% !important;
            flex-shrink: 0 !important;
            padding: 12px !important;
            position: relative !important;
            z-index: 10 !important;
            box-sizing: border-box !important;
        }


        .custom-modal-overlay .delivery-title {
            margin-bottom: 6px !important;
        }


        .custom-modal-overlay .delivery-address-card-box {
            width: 100% !important;
            max-width: 100% !important;
            margin-top: 6px !important;
            padding: 10px 12px !important;
            gap: 10px !important;
            height: auto !important;
            min-height: 58px !important;
            box-sizing: border-box !important;
        }


        .custom-modal-overlay .delivery-address-footer .location-heading {
            font-size: 13px !important;
        }


        .custom-modal-overlay .delivery-address-footer .location-subtext {
            font-size: 11px !important;
            line-height: 1.35 !important;
            overflow-wrap: anywhere !important;
        }


        /* =====================================
       FORM SECTION
       ===================================== */

        .custom-modal-overlay .form-panel {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            flex: 0 0 auto !important;
            margin: 0 !important;
            padding: 0 !important;
            border-left: none !important;
            border-top: 1px solid #e5e7eb !important;
            border-radius: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: visible !important;
            box-sizing: border-box !important;
        }


        /* Form */
        .custom-modal-overlay #addAddressForm {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            /* display: flex !important;*/
            flex-direction: column !important;
            overflow: visible !important;
            box-sizing: border-box !important;
        }


        /* Form content */
        .custom-modal-overlay .form-scroll-content {
            flex: none !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
            overflow: visible !important;
            padding: 20px 16px !important;
            box-sizing: border-box !important;
        }


        /* Form header */
        .custom-modal-overlay .form-header {
            margin-bottom: 20px !important;
        }


            .custom-modal-overlay .form-header h3 {
                font-size: 20px !important;
            }


        .custom-modal-overlay .close-form-btn {
            font-size: 26px !important;
            padding: 0 !important;
        }


        /* Address type chips */
        .custom-modal-overlay .chip-group {
            gap: 7px !important;
            margin-bottom: 18px !important;
            max-width: 100% !important;
            flex-wrap: wrap !important;
        }


        .custom-modal-overlay .chip {
            padding: 8px 11px !important;
            font-size: 12px !important;
            box-sizing: border-box !important;
        }


        /* Inputs */
        .custom-modal-overlay .input-fields-stack {
            width: 100% !important;
            max-width: 100% !important;
            gap: 14px !important;
        }


        .custom-modal-overlay .input-wrapper,
        .custom-modal-overlay .phone-input-wrapper {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }


            .custom-modal-overlay .input-wrapper input,
            .custom-modal-overlay .phone-input-wrapper input {
                width: 100% !important;
                max-width: 100% !important;
                min-height: 48px !important;
                font-size: 14px !important;
                box-sizing: border-box !important;
            }


        /* Save button */
        .custom-modal-overlay .form-actions {
            width: 100% !important;
            max-width: 100% !important;
            flex-shrink: 0 !important;
            position: relative !important;
            bottom: auto !important;
            padding: 12px 16px 20px 16px !important;
            margin: 0 !important;
            background: #ffffff !important;
            border-top: 1px solid #e5e7eb !important;
            z-index: 20 !important;
            box-sizing: border-box !important;
        }


        .custom-modal-overlay .save-address-btn {
            width: 100% !important;
            max-width: 100% !important;
            min-height: 50px !important;
            box-sizing: border-box !important;
        }
    saved-address-list {
        max-height: 140px !important;
        overflow-y: auto !important;
    }
}






/* ================================
   NEW LOCATION MODAL
================================ */

/* =========================================================
   NEW LOCATION MODAL
   Blinkit Style - Mandatory Location Popup
   ========================================================= */


/* ---------------------------------------------------------
   OVERLAY
   --------------------------------------------------------- */
/* =========================================================
   GYAN VEDA - NEW LOCATION POPUP
   FINAL CSS
   ========================================================= */


/* =========================================================
   FULL SCREEN OVERLAY
   ========================================================= */

.new-location-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}


    /* =========================================================
   POPUP OPEN
   ========================================================= */

.new-location-overlay {
    display: none;
}

    .new-location-overlay.new-location-active {
        display: flex !important;
    }

/* =========================================================
   MAIN POPUP
   ========================================================= */

.gv-location-popup_new {
    position: relative;
    width: 720px;
    max-width: 100%;
    background: #ffffff;
    padding: 30px 34px;
    box-sizing: border-box;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    animation: gvLocationPopupOpen 0.25s ease;
    font-family: Arial, sans-serif;
    border-radius: 2px;
}


/* =========================================================
   TITLE
   ========================================================= */

.gv-location-title_new {
    font-size: 20px;
    line-height: 1.3;
    color: #555;
    margin-bottom: 24px;
    font-weight: 500;
}


    .gv-location-title_new span {
        color: #078b19;
        font-weight: 600;
    }


/* =========================================================
   LOCATION MESSAGE AREA
   ========================================================= */

.gv-location-content_new {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}


/* =========================================================
   LOCATION ICON
   ========================================================= */

.gv-location-icon_new {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 3px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 21px;
    box-sizing: border-box;
}


/* =========================================================
   LOCATION MESSAGE
   ========================================================= */

.gv-location-message_new {
    font-size: 18px;
    line-height: 1.4;
    color: #182342;
    max-width: 530px;
    font-weight: 400;
}


/* =========================================================
   ACTION AREA
   ========================================================= */

.gv-location-actions_new {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: 68px;
}


/* =========================================================
   DETECT LOCATION BUTTON
   ========================================================= */

.gv-detect-location-btn_new {
    border: none;
    background: #078b19;
    color: #ffffff;
    padding: 13px 17px;
    min-height: 52px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}


    .gv-detect-location-btn_new:hover {
        background: #067315;
    }


    .gv-detect-location-btn_new:active {
        transform: scale(0.98);
    }


    .gv-detect-location-btn_new i {
        font-size: 14px;
    }


/* =========================================================
   OR SECTION
   ========================================================= */

.gv-or_new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
}


    .gv-or_new::before,
    .gv-or_new::after {
        content: "";
        width: 17px;
        height: 1px;
        background: #d9d9d9;
    }


    .gv-or_new span {
        width: 40px;
        height: 40px;
        border: 1px solid #d8d8d8;
        border-radius: 50%;
        background: #ffffff;
        color: #777;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }


/* =========================================================
   SEARCH WRAPPER
   ========================================================= */

.gv-search-wrapper_new {
    position: relative;
    flex: 1;
    min-width: 0;
}


/* =========================================================
   SEARCH INPUT
   ========================================================= */


.gv-location-search_new {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 15px;
    background: #ffffff;
    padding: 0 42px 0 16px;
    font-size: 15px;
    color: #182342;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .gv-location-search_new::placeholder {
        color: #7b7b7b;
        opacity: 1;
    }


    .gv-location-search_new:focus {
        border-color: #078b19;
        box-shadow: 0 0 0 2px rgba(7, 139, 25, 0.08);
    }


/* =========================================================
   CLEAR SEARCH BUTTON
   ========================================================= */

.gv-clear-search_new {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 27px;
    height: 27px;
    border: none;
    background: transparent;
    color: #777;
    font-size: 19px;
    line-height: 27px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .gv-clear-search_new:hover {
        color: #222;
    }


/* =========================================================
   LOCATION SUGGESTIONS
   ========================================================= */


.gv-location-suggestions_new {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 9px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    max-height: 220px;
    overflow-y: auto;
    z-index: 99999;
}


/* =========================================================
   NEW SUGGESTION ITEM
   ========================================================= */

.gv-location-suggestion-item_new {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s ease;
}


    .gv-location-suggestion-item_new:last-child {
        border-bottom: none;
    }


    .gv-location-suggestion-item_new:hover {
        background: #f7f7f7;
    }


    .gv-location-suggestion-item_new i {
        margin-top: 2px;
        font-size: 13px;
        color: #078b19;
        flex-shrink: 0;
    }


    .gv-location-suggestion-item_new .location-suggestion-text {
        line-height: 1.4;
        color: #333;
    }


/* =========================================================
   SELECTED LOCATION
   ========================================================= */

.gv-selected-location_new {
    margin-top: 20px;
    padding: 13px;
    border: 1px solid #e1e1e1;
    border-radius: 9px;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}


/* =========================================================
   SELECTED LOCATION ICON
   ========================================================= */

.gv-selected-icon_new {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e9f7eb;
    color: #078b19;
    display: flex;
    align-items: center;
    justify-content: center;
}


    .gv-selected-icon_new i {
        font-size: 14px;
    }


/* =========================================================
   SELECTED LOCATION DETAILS
   ========================================================= */

.gv-selected-details_new {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}


    .gv-selected-details_new strong {
        font-size: 14px;
        font-weight: 600;
        color: #222;
    }


    .gv-selected-details_new span {
        font-size: 12px;
        line-height: 1.4;
        color: #777;
    }


/* =========================================================
   LOADING
   ========================================================= */

.gv-location-loading_new {
    margin-top: 13px;
    text-align: center;
    color: #078b19;
    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   NO RETAILER / STORE NOT AVAILABLE
   ========================================================= */

.new-no-retailer-message {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff7f7;
    border: 1px solid #ffdede;
    text-align: center;
}


/* Icon */

.new-no-retailer-icon {
    font-size: 27px;
    margin-bottom: 5px;
    color: #d9534f;
}


/* Heading */

.new-no-retailer-message h3 {
    margin: 3px 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}


/* Description */

.new-no-retailer-message p {
    margin: 0 auto 12px;
    max-width: 460px;
    font-size: 13px;
    line-height: 1.45;
    color: #666;
}


/* Change location */

.new-change-location-btn {
    border: none;
    background: #078b19;
    color: #ffffff;
    padding: 8px 17px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}


    .new-change-location-btn:hover {
        background: #067315;
    }


/* =========================================================
   POPUP ANIMATION
   ========================================================= */

@keyframes gvLocationPopupOpen {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .new-location-overlay {
        padding: 12px;
    }


    .gv-location-popup_new {
        width: 100%;
        padding: 24px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }


    /* TITLE */

    .gv-location-title_new {
        font-size: 18px;
        margin-bottom: 21px;
    }


    /* MESSAGE */

    .gv-location-content_new {
        gap: 14px;
        margin-bottom: 22px;
    }


    .gv-location-icon_new {
        width: 43px;
        min-width: 43px;
        height: 43px;
        border-width: 3px;
        font-size: 18px;
    }


    .gv-location-message_new {
        font-size: 16px;
        line-height: 1.4;
    }


    /* ACTIONS */

    .gv-location-actions_new {
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }


    /* DETECT */

    .gv-detect-location-btn_new {
        width: 100%;
        min-height: 50px;
        font-size: 15px;
    }


    /* OR */

    .gv-or_new {
        width: 100%;
        margin: 2px 0;
    }


        .gv-or_new::before,
        .gv-or_new::after {
            flex: 1;
            width: auto;
        }


    /* SEARCH */

    .gv-search-wrapper_new {
        width: 100%;
    }


    .gv-location-search_new {
        width: 100%;
        height: 50px;
        font-size: 15px;
        border-radius: 14px;
    }


    /* SUGGESTIONS */

    .gv-location-suggestions_new {
        max-height: 220px;
    }


    /* SELECTED */

    .gv-selected-location_new {
        margin-top: 18px;
        padding: 12px;
    }


    /* NO STORE */

    .new-no-retailer-message {
        margin-top: 17px;
        padding: 14px;
    }


        .new-no-retailer-message h3 {
            font-size: 17px;
        }


        .new-no-retailer-message p {
            font-size: 12px;
        }


    .new-change-location-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .new-location-overlay {
        padding: 8px;
    }


    .gv-location-popup_new {
        padding: 20px 15px;
        max-height: 92vh;
    }


    .gv-location-title_new {
        font-size: 17px;
        margin-bottom: 18px;
    }


    .gv-location-content_new {
        gap: 11px;
    }


    .gv-location-icon_new {
        width: 39px;
        min-width: 39px;
        height: 39px;
        font-size: 16px;
    }


    .gv-location-message_new {
        font-size: 14px;
        line-height: 1.4;
    }


    .gv-detect-location-btn_new {
        font-size: 14px;
        padding: 12px 14px;
    }


    .gv-location-search_new {
        font-size: 14px;
        height: 48px;
    }


    .gv-or_new span {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
}

.gv-location-popup_new {
    position: relative;
}

.simple-location-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    font-size: 30px;
    color: #555;
    cursor: pointer;
    z-index: 999999;
}

    .simple-location-close:hover {
        color: #000;
    }


.saved-address-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

    .saved-address-card:hover {
        border-color: #0B8F3C;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

.saved-address-content {
    width: 100%;
}

.saved-address-title-row strong {
    color: #222222;
    font-weight: 600;
}

.saved-address-text {
    color: #666666;
    line-height: 1.5;
}

/* =========================================================
   SAVED ADDRESSES - BLINKIT STYLE
   ========================================================= */

.gv-saved-addresses_new {
    margin-top: 28px;
    width: 100%;
}

.gv-saved-address-header_new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .gv-saved-address-header_new span {
        font-size: 15px;
        font-weight: 600;
        color: #222;
    }

.gv-saved-address-list_new {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Individual saved address */

.gv-saved-address-card_new {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.18s ease;
}

    .gv-saved-address-card_new:hover {
        border-color: #0B8F3C;
        background: #f8fff9;
    }

/* Location icon */

.gv-saved-address-icon_new {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf8f0;
    color: #0B8F3C;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gv-saved-address-icon_new i {
        font-size: 14px;
    }

/* Address text */

.gv-saved-address-details_new {
    flex: 1;
    min-width: 0;
}

.gv-saved-address-title_new {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
}

.gv-saved-address-text_new {
    font-size: 12px;
    line-height: 1.4;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Arrow */

.gv-saved-address-arrow_new {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}


/* Empty state */

.gv-no-saved-address_new {
    padding: 14px;
    text-align: center;
    border: 1px dashed #dcdcdc;
    border-radius: 10px;
    color: #888;
    font-size: 12px;
    background: #fafafa;
}

.gv-saved-address-list_new {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    /* 3 addresses tak normal height */
    max-height: 220px;
    /* 3 se jyada hone par isi area mein scroll */
    overflow-y: auto;
    /* scrollbar ko clean rakhe */
    scrollbar-width: thin;
}

    .gv-saved-address-list_new::-webkit-scrollbar {
        width: 5px;
    }

    .gv-saved-address-list_new::-webkit-scrollbar-track {
        background: transparent;
    }

    .gv-saved-address-list_new::-webkit-scrollbar-thumb {
        background: #cfcfcf;
        border-radius: 10px;
    }