/* ==========================================================
🧱 WRAPPER
========================================================== */

.cls-custom-location-fields {

    display: flex;
    flex-direction: column;

    gap: var(--cls-layout-section-spacing, 40px);

    padding: var(--cls-layout-page-padding);
    margin: 20px 0 28px;

    border-radius: var(--cls-radius-xl, 24px);

    background: var(--cls-surface-bg, #107709);

    border: var(--cls-surface-border-width, 1px)
        solid var(--cls-surface-border-color, #73359c);

    box-shadow: 0 10px 30px var(--cls-surface-shadow-color, rgba(0,0,0,0.15));

    overflow: hidden;

    width: 100%;
    max-width: var(--cls-layout-container-width);
}


/* ==========================================================
📦 CARDS
========================================================== */

.cls-map-section,
.cls-delivery-datetime,
.cls-location-section {

    position: relative;

    display: flex;
    flex-direction: column;

    gap: var(--cls-layout-card-gap, 24px);

    padding: var(--cls-layout-card-padding, 30px);

    border-radius: var(--cls-layout-card-radius, 20px);

    background: var(--cls-surface-card-bg, #42a31f);

    border: var(--cls-surface-card-border-width, 1px)
        solid var(--cls-surface-card-border-color, #73359c);

    box-shadow: 0 6px 20px var(--cls-surface-shadow-color, rgba(0,0,0,0.12));

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;

    color: #ffffff;
}

.cls-section-head h4 {

    margin: 0;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    color: var(--cls-tt-text-primary, #000000);

    letter-spacing: 0.4px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding-top: 10px;
    padding-bottom: 10px;

    border-bottom: 1px dashed rgba(255,255,255,0.15);
}


.cls-section-head  {

    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    color: var(--cls-tt-text-secondary, #000000);

    letter-spacing: 0.3px;

}

.cls-location-section  .cls-small p{
    
    
    color: var(--cls-tt-text-secondary, #000000); 

}



/* ==========================================================
🧩 INNER (MUTED GRID SYSTEM)
========================================================== */

.cls-location-inner,
.cls-sub-section,
.cls-location-row,
.cls-date-slot-row {

    display: flex;
    flex-wrap: wrap; /* ✅ FIXED (was nowrap) */

    gap: var(--cls-layout-grid-gap, 16px);

    background: var(--cls-surface-card-muted, #ccf4be);

    border-radius: calc(var(--cls-card-radius, 20px) - 6px);

    padding: var(--cls-space-md, 16px);
}


/* ==========================================================
📐 CHILD COLUMN CONTROL
========================================================== */

.cls-location-inner > *,
.cls-sub-section > *,
.cls-location-row > *,
.cls-date-slot-row > * {
    flex: 1 1 48%; /* ✅ 2 column desktop */
    min-width: 0; /* 🔥 prevents overflow (important for select2) */
}


/* ==========================================================
📱 MOBILE RESPONSIVE
========================================================== */

@media (max-width: 480px) {

    .cls-location-inner > *,
    .cls-sub-section > *,
    .cls-location-row > *,
    .cls-date-slot-row > * {
        flex: 1 1 100%; /* ✅ 1 column mobile */
    }

}


/* ==========================================================
📍 ADDRESS CONTAINER
========================================================== */

.cls-address-container {

    display: flex;
    align-items: center;

    gap: 10px;

    width: 100%;
}


.cls-address-container input {

    flex: 1; /* 🔥 MOST IMPORTANT */

    height: 44px;

    margin: 0; /* 🔥 remove default spacing */

    padding: 0 12px;

    border-radius: 10px;

    box-sizing: border-box;
}

#cls-detect-btn {

    flex-shrink: 0; /* 🔥 prevent shrinking */

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
📝 INPUTS
========================================================== */

.cls-custom-location-fields input,
.cls-custom-location-fields select,
.cls-custom-location-fields textarea {

    width: 100%;

    background: var(--cls-surface-input-bg, #ffffff);

    border: 1px solid var(--cls-surface-input-border, #d1d5db);

    border-radius: var(--cls-layout-input-radius, 18px);

    padding: 10px 14px;
}

.cls-custom-location-fields input:focus,
.cls-custom-location-fields select:focus {

    border-color: var(--cls-surface-input-focus, #4f6bff);
    outline: none;
}



/* ==========================================================
✨ STATES (HOVER / ACTIVE)
========================================================== */

.cls-map-section:hover,
.cls-location-section:hover,
.cls-delivery-datetime:hover {

    background: var(--cls-surface-hover, #f3f6ff);

    transform: translateY(-2px);

    box-shadow: 0 12px 30px var(--cls-surface-shadow-color, rgba(0,0,0,0.18));
}

.cls-map-section:active,
.cls-location-section:active,
.cls-delivery-datetime:active {

    background: var(--cls-surface-active, #eef2ff);
}



/* ==========================================================
⚙️ LAYOUT STYLE SYSTEM
========================================================== */

/* 🔷 MODERN (default) */
.cls-layout-modern .cls-custom-location-fields {
    gap: var(--cls-layout-section-spacing, 40px);
}

.cls-layout-modern .cls-map-section,
.cls-layout-modern .cls-location-section,
.cls-layout-modern .cls-delivery-datetime {
    border-radius: 20px;
}


/* 🔷 BOXED */
.cls-layout-boxed .cls-custom-location-fields {
    max-width: 900px;
    margin: 0 auto;
    gap: var(--cls-layout-section-spacing, 40px);
}

.cls-layout-boxed .cls-map-section,
.cls-layout-boxed .cls-location-section,
.cls-layout-boxed .cls-delivery-datetime {
    border-radius: 12px;
}


/* 🔷 MINIMAL */
.cls-layout-minimal .cls-custom-location-fields {
    gap: 16px;
}

.cls-layout-minimal .cls-map-section,
.cls-layout-minimal .cls-location-section,
.cls-layout-minimal .cls-delivery-datetime {
    box-shadow: none;
    border: none;
    padding: 16px;
}


/* 🔷 LUXURY */
.cls-layout-luxury .cls-custom-location-fields {
    gap: 50px;
}

.cls-layout-luxury .cls-map-section,
.cls-layout-luxury .cls-location-section,
.cls-layout-luxury .cls-delivery-datetime {
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border-radius: 30px;
}


/* ==========================================================
📐 ALIGNMENT SYSTEM
========================================================== */

.cls-align-left {
    text-align: left;
    align-items: flex-start;
}

.cls-align-center {
    text-align: center;
    align-items: center;
}

.cls-align-right {
    text-align: right;
    align-items: flex-end;
}





















































/* ==========================================================
🧾 DELIVERY SUMMARY CARD (VARIABLE BASED)
========================================================== */

.cls-delivery-summary {

    background: var(--cls-summary-bg, #6aadec);

    border-radius: var(--cls-summary-radius, 20px);

    padding: var(--cls-summary-padding, 20px);

    border: 2px solid var(--cls-summary-border-color, #d70909);

    box-shadow: var(--cls-summary-shadow, 0 10px 25px rgba(0,0,0,0.25));

    display: flex;
    flex-direction: column;

    gap: 14px;
}



/* ==========================================================
🧾 HEADER
========================================================== */

.cls-delivery-summary .cls-section-head h4 {

    font-size: 16px;
    font-weight: 600;

    color: var(--cls-summary-title, #ec1313);

    display: flex;
    align-items: center;
    gap: 6px;
}

.cls-delivery-summary .cls-section-subtitle {

    font-size: 13px;

    color: var(--cls-summary-text, #ccc7c7);

    margin-top: 4px;
}



/* ==========================================================
📋 SUMMARY ROW
========================================================== */

.cls-summary-row {

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--cls-summary-badge-bg, #eef2ff);

    padding: 10px 12px;

    border-radius: 12px;

    font-size: 14px;
}



/* LEFT LABEL */
.cls-summary-row span {

    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--cls-summary-text, #ccc7c7);
}



/* RIGHT VALUE */
.cls-summary-row strong {

    color: var(--cls-summary-title, #ec1313);

    font-weight: 600;
}



/* ==========================================================
💰 DELIVERY CHARGE (SPECIAL COLOR)
========================================================== */

#cls_summary_charge {
    color: var(--cls-summary-delivery, #0af51a);
}



/* ==========================================================
💸 DISCOUNT (FUTURE READY)
========================================================== */

.cls-summary-discount {
    color: var(--cls-summary-discount, #10b981);
}



/* ==========================================================
💰 TOTAL ROW (HIGHLIGHT)
========================================================== */

.cls-summary-total {

    background: var(--cls-summary-badge-bg, #eef2ff);

    border: 1px dashed var(--cls-summary-border-color, #d70909);

}

.cls-summary-total span {
    color: var(--cls-summary-text, #ccc7c7);
}

.cls-summary-total strong {
    color: var(--cls-summary-total, #ff0f0f);
}



/* ==========================================================
✨ GLASS EFFECT (OPTIONAL)
========================================================== */

.cls-delivery-summary[data-glass="1"] {

    backdrop-filter: blur(10px);

    background: rgba(255,255,255,0.08);
}



/* ==========================================================
📱 MOBILE FIX
========================================================== */

@media (max-width: 480px) {

    .cls-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

}











































/* ==========================================================
🚗 DISTANCE LABEL (DYNAMIC)
========================================================== */

.cls-distance-label {

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    background: var(--cls-route-card-bg, #ffffff);

    border: 2px solid var(--cls-route-border, #e5e7eb);

    padding: var(--cls-route-padding, 6px);

    border-radius: var(--cls-route-radius, 16px);

    font-size: 13px;

    color: var(--cls-route-distance-text, #111827);

    box-shadow: var(--cls-route-shadow, 0 6px 18px rgba(15,23,42,0.12));

    transition: all 0.25s ease;
}



/* ==========================================================
📊 DISTANCE TEXT
========================================================== */

.cls-distance-label span {

    color: var(--cls-route-distance-text, #111827);

    opacity: 0.8;

    font-size: 12px;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    background: var(--cls-route-badge-bg, #eef2ff);

    color: var(--cls-route-badge-text, #4338ca);

    padding: 2px 6px;

    border-radius: 6px;
}



/* ==========================================================
💰 PRICE / HIGHLIGHT TEXT
========================================================== */

.cls-distance-label .cls-price {

    color: var(--cls-route-price, #10b981);

    font-weight: 600;
}



/* ==========================================================
🗺️ ROUTE LINK
========================================================== */

.cls-distance-label .cls-show-route {

    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 4px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    color: var(--cls-route-eta, #2563eb);

    padding: 6px 10px;

    border-radius: 8px;

    background: var(--cls-route-badge-bg, #eef2ff);

    transition: all 0.25s ease;
}


/* HOVER */
.cls-distance-label .cls-show-route:hover {

    background: var(--cls-route-eta, #2563eb);

    color: #ffffff;
}



/* ==========================================================
🗺️ MAP VISUAL ELEMENTS (FUTURE READY)
========================================================== */

.cls-distance-label .cls-map-line {
    stroke: var(--cls-route-map-line, #4f6bff);
}

.cls-distance-label .cls-map-pin {
    color: var(--cls-route-map-pin, #ef4444);
}



/* ==========================================================
🌫️ MAP OVERLAY (FUTURE USE)
========================================================== */

.cls-distance-label .cls-map-overlay {
    background: var(--cls-route-overlay, #0f172a);
    opacity: 0.1;
}



/* ==========================================================
✨ GLASS EFFECT (OPTIONAL)
========================================================== */

.cls-distance-label[data-glass="1"] {

    backdrop-filter: blur(10px);

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}



/* ==========================================================
📡 LIVE TRACKING
========================================================== */

.cls-distance-label[data-live="1"]::after {

    content: "● Live";

    font-size: 11px;

    margin-left: 6px;

    color: var(--cls-route-price, #10b981);

    font-weight: 600;
}



/* ==========================================================
📱 MOBILE FIX
========================================================== */

@media (max-width: 480px) {

    .cls-distance-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .cls-distance-label .cls-show-route {
        margin-left: 0;
        margin-top: 6px;
    }

}















.cls-map-inline {

    width: 100%;

    height: 260px; /* 🔥 REQUIRED (missing था) */

    border-radius: var(--cls-map-radius, 16px);

    overflow: hidden;

    margin-top: var(--cls-map-spacing, 10px);

    box-shadow: var(--cls-shadow-md);

    border: 1px solid rgba(255,255,255,0.4);

    display: none; /* JS toggle करेगा */
}





/* ==========================================================
🗺️ MAP SECTION (CARD SYSTEM FRIENDLY)
========================================================== */

/* Map container inside card */
.cls-map-inline {

    width: 100%;

    height: 260px; /* 🔥 required */

    border-radius: calc(var(--cls-layout-card-radius, 20px) - 6px);

    overflow: hidden;

    margin-top: 6px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    border: 1px solid rgba(255,255,255,0.4);

    display: none; /* JS control करेगा */
}



/* Wrapper (optional spacing control) */
.cls-map-wrapper {
    width: 100%;
}



/* Top bar (button area) */
.cls-map-topbar {
    display: flex;
    justify-content: flex-start;
}



/* Toggle button alignment fix */
.cls-map-toggle-btn {
    width: fit-content;
}



/* ==========================================================
🧩 INNER ALIGNMENT FIX
========================================================== */

/* Ensure card children spacing works nicely */
.cls-map-section > * {
    width: 100%;
}















/* ==========================================================
🗺️ BUTTON BASE (STRUCTURE ONLY)
========================================================== */

.cls-map-toggle-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: var(--cls-btn-height, 48px);
    padding: 0 var(--cls-btn-padding-x, 20px);

    border-radius: var(--cls-btn-radius, 12px);

    font-size: var(--cls-btn-font-size, 14px);
    font-weight: var(--cls-btn-font-weight, 600);

    cursor: pointer;

    transition: all 0.25s ease;
}



/* ==========================================================
🎨 BUTTON STYLES (STRICT — NO FALLBACKS)
========================================================== */

/* ================= SOLID ================= */
.cls-map-toggle-btn[data-style="solid"] {

    background: var(--cls-btn-bg, #ff5e4d);
    color: var(--cls-btn-text, #ffffff);

    border: 1px solid var(--cls-btn-border, #4f6bff);

    box-shadow: 0 6px var(--cls-btn-shadow-intensity, 20px)
        var(--cls-btn-shadow-color, rgba(0,0,0,0.2));
}


/* ================= GRADIENT ================= */
.cls-map-toggle-btn[data-style="gradient"] {

    background: linear-gradient(
        135deg,
        var(--cls-btn-gradient-start, #4f6bff),
        var(--cls-btn-gradient-end, #7a5cff)
    );

    color: #fff;
    border: none;

    box-shadow: 0 6px var(--cls-btn-shadow-intensity, 20px)
        var(--cls-btn-shadow-color, rgba(0,0,0,0.2));
}


/* ================= GLASS ================= */
.cls-map-toggle-btn[data-style="glass"],
.cls-map-toggle-btn[data-style="glassmorphism"] {

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    background: var(--cls-btn-bg, rgba(255,255,255,0.1));

    border: 1px solid var(--cls-btn-border, rgba(255,255,255,0.2));

    color: var(--cls-btn-text, #ffffff);

    box-shadow: 0 6px var(--cls-btn-shadow-intensity, 20px)
        var(--cls-btn-shadow-color);
}


/* ================= OUTLINE ================= */
.cls-map-toggle-btn[data-style="outline"] {

    background: transparent;

    color: var(--cls-btn-bg, #ff5e4d);

    border: 2px solid var(--cls-btn-border, #4f6bff);

    box-shadow: none;
}


/* ================= MINIMAL ================= */
.cls-map-toggle-btn[data-style="minimal"] {

    background: none;
    border: none;

    color: var(--cls-btn-bg, #ff5e4d);

    box-shadow: none;
}



/* ==========================================================
🖱️ INTERACTIONS (STYLE-AWARE)
========================================================== */

/* COMMON HOVER MOTION */
.cls-map-toggle-btn:hover {
    transform: translateY(-2px);
}


/* SOLID / GRADIENT / GLASS */
.cls-map-toggle-btn[data-style="solid"]:hover,
.cls-map-toggle-btn[data-style="gradient"]:hover,
.cls-map-toggle-btn[data-style="glass"]:hover,
.cls-map-toggle-btn[data-style="glassmorphism"]:hover {

    background: var(--cls-btn-hover-bg, #3b57f4);
    color: var(--cls-btn-hover-text, #fff);

    box-shadow: 0 10px 30px var(--cls-btn-shadow-color, rgba(0,0,0,0.3));
}


/* OUTLINE */
.cls-map-toggle-btn[data-style="outline"]:hover {

    background: var(--cls-btn-bg);
    color: #fff;
}


/* MINIMAL */
.cls-map-toggle-btn[data-style="minimal"]:hover {

    text-decoration: underline;
}


/* CLICK */
.cls-map-toggle-btn:active {
    transform: scale(0.96);
}



/* ==========================================================
✨ FEATURE FLAGS
========================================================== */

/* GLOW */
.cls-map-toggle-btn[data-glow="1"] {

    box-shadow:
        0 6px var(--cls-btn-shadow-intensity) var(--cls-btn-shadow-color),
        0 0 12px var(--cls-btn-shadow-color);
}


/* ICON TOGGLE */
.cls-map-toggle-btn[data-icons="0"] .cls-btn-icon {
    display: none;
}


/* RIPPLE */
.cls-map-toggle-btn[data-ripple="1"] {
    position: relative;
    overflow: hidden;
}

.cls-map-toggle-btn[data-ripple="1"]::after {

    content: "";
    position: absolute;

    width: 0;
    height: 0;

    background: rgba(255,255,255,0.4);

    border-radius: 50%;

    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cls-map-toggle-btn[data-ripple="1"]:active::after {

    width: 200px;
    height: 200px;

    transition: width 0.4s ease, height 0.4s ease;
}



/* ==========================================================
🟢 ACTIVE STATE (MAP OPEN)
========================================================== */

.cls-map-toggle-btn.active[data-style="gradient"] {
    background: linear-gradient(135deg, #16a34a, #15803d);
}








/* ==========================================================
📍 DETECT LOCATION BUTTON (HARDCODED)
========================================================== */

.cls-icons-outside {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}


/* BUTTON */
#cls-detect-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    border: 1px solid #e5e7eb;
    background: #ffffff;

    cursor: pointer;

    transition: all 0.25s ease;

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}


/* ICON */
#cls-detect-btn img {
    width: 20px;
    height: 20px;
    pointer-events: none;
}


/* HOVER */
#cls-detect-btn:hover {

    background: #4f6bff;
    border-color: #4f6bff;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(79,107,255,0.4);
}


/* ICON COLOR EFFECT */
#cls-detect-btn:hover img {
    filter: brightness(0) invert(1);
}


/* ACTIVE */
#cls-detect-btn:active {
    transform: scale(0.92);
}

#cls-detect-btn img.emoji {

    width: 22px !important;
    height: 22px !important;

    min-width: 22px;
    min-height: 22px;

    max-width: 22px;
    max-height: 22px;

    display: inline-block;

    vertical-align: middle;
}

#cls-detect-btn {

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
}
















