/* Match the same soft green app background used on profile-style pages */
.main-panel,
.content {
    background-color: #E8F5EE;
}

/* Remove the large default footer gap below the page */
footer {
    margin-top: 0 !important;
}

/* Green background */
#intro-order {
    width: 100%;
    margin: 0 0 20px;
    padding: 24px;
    border-radius: 32px;
    background: #E8F5EE;
}

/* Main white content card */
#intro-order > .col {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    padding: 30px !important;
    border-radius: 30px !important;
    background: #FFFFFF !important;
    box-shadow: 0 18px 38px rgba(0, 46, 69, 0.08);
}

/* Keep all text Develo dark blue */
#intro-order,
#intro-order p,
#intro-order label,
#intro-order span,
#intro-order div,
#intro-order small,
#intro-order a,
#intro-order .form-label,
#intro-order .text-muted,
#intro-order .poppins-regular,
#intro-order .poppins-medium {
    color: #002E45;
}

/* Use section dividers like the profile page */
#intro-organisation hr {
  border: 0 !important;
  height: 1px !important;
  background: rgba(0, 46, 70, 0.12) !important;
  opacity: 1 !important;
}

/* Shared form styling */
#intro-order .form-control,
#intro-order .form-select {
    min-height: 46px;
    border-radius: 18px;
    border: 1px solid rgba(0, 46, 69, 0.18);
    background: #FFFFFF;
    color: #002E45;
    padding: 0 14px;
    box-shadow: none;
}

/* Blue focus ring for active inputs */
#intro-order .form-control:focus,
#intro-order .form-select:focus {
    border-color: #3857F0;
    box-shadow: 0 0 0 4px rgba(56, 87, 240, 0.12);
    outline: none;
}

/* Shared button styling across the order page */
#intro-order .btn,
#addressModal .btn {
    border: 1px solid #3857F0 !important;
    border-radius: 18px !important;
    background: #3857F0 !important;
    color: #FFFFFF !important;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Button hover state */
#intro-order .btn:hover,
#addressModal .btn:hover {
    background: #2645DD !important;
    border-color: #2645DD !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 22px rgba(56, 87, 240, 0.22);
    transform: translateY(-1px);
}

/* Layout: large left content area & fixed-width sidebar (400px) */
.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 20px;
    align-items: start;
}

/* Shared white-card styling for both main and sidebar sections (left & right) */
.order-main-card,
.order-sidebar-card {
    border: 1px solid rgba(0, 46, 69, 0.08);
    border-radius: 28px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(0, 46, 69, 0.08);
}

/* Help button (?) */
.order-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 46, 69, 0.12);
    border-radius: 999px;
    background: #FFFFFF;
    color: #002E45;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

/* Help button hover state */
.order-help-button:hover {
    border-color: #3857F0;
    color: #3857F0;
    transform: translateY(-1px);
}

/* Login notice for guests */
.order-login-note {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 46, 69, 0.08);
    background: rgba(232, 245, 238, 0.55);
    margin-top: 20px;
}







/* REPORT CART CSS */
/* Sidebar cart wrapper */
[data-cart-selected] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Blue pill showing num of items in cart */
.order-cart-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(56, 87, 240, 0.1);
    color: #3857F0 !important;
    font-size: 13px;
}

/* Selected properties list */
[data-cart-results] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
    min-width: 0;
}

/* Magnify button for a selected cart item (cart.js) */
.order-cart-magnify {
    height: 38px;
    width: 38px;
    max-height: 38px;
    max-width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 1px solid #3857F0;
    border-radius: 6px;
    background: #3857F0;
    color: #FFFFFF;
}

/* Magnify button hover (cart.js) */
.order-cart-magnify:hover {
    border-color: #2645DD;
    background: #2645DD;
    color: #FFFFFF;
}

/* Remove button for a selected cart item (cart.js) */
.order-cart-remove {
    height: 38px;
    width: 38px;
    max-height: 38px;
    max-width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 1px solid #dc3545;
    border-radius: 6px;
    background: #dc3545;
    color: #FFFFFF;
}

/* Remove button hover (cart.js) */
.order-cart-remove:hover {
    border-color: #bb2d3b;
    background: #bb2d3b;
    color: #FFFFFF;
}

/* Empty state cards for cart and email sections */
.order-cart-empty,
.order-email-empty {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px dashed rgba(0, 46, 69, 0.18);
    background: rgba(232, 245, 238, 0.32);
}






/* EMAIL REPORTS CSS */
/* Remove-email button */
.report-delivery-email-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #002E45;
    cursor: pointer;
}

/* Remove-email hover state */
.report-delivery-email-remove:hover {
    background: rgba(56, 87, 240, 0.1);
    color: #dc3545;
}








/* SEARCH BAR AND LEAFLET MAP CSS */
/* Main address search bar */
#searchInput {
    min-height: 60px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 46, 69, 0.12) !important;
    background: #FFFFFF !important;
    color: #002E45 !important;
    padding: 0 20px !important;
    margin: 0 !important;
    font-size: 16px !important;
    box-shadow: none !important;
}

/* Show blue focus ring when search input is active */
#searchInput:focus {
    border-color: #3857F0 !important;
    box-shadow: 0 0 0 4px rgba(56, 87, 240, 0.12) !important;
    outline: none !important;
}

/* Search spinner alignment (map.html) */
#search_spinner {
    color: #002E45 !important;
    width: 20px;
    height: 20px;
}

/* Search results (map.html) */
#result {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    padding-top: 10px;
    padding-bottom: 20px;
}

/* Search result buttons (list of addresses) rendered (map.html) */
#result button {
    display: block !important;
    width: 100% !important;
    background: #FFFFFF !important;
    color: #002E45 !important;
    padding: 12px 14px !important;
    text-align: left !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

/* Search result hover (map.html) */
#result button:hover {
    border-color: rgba(56, 87, 240, 0.22) !important;
    box-shadow: 0 10px 22px rgba(0, 46, 69, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* Leaflet map display (map.html) */
#develo_container {
    border: 1px solid rgba(0, 46, 69, 0.08);
    border-radius: 26px;
    overflow: hidden;
    background: #FFFFFF;
}






/* MODAL CSS */
/* Modal footer secondary buttons */
#helpModal .btn-secondary,
#addressModal .btn-secondary,
#selectModal .btn-secondary,
#differenceModal .btn-secondary {
    border-radius: 18px !important;
    background: #3857F0 !important;
    color: #FFFFFF !important;
    min-height: 36px;
}

/* Modal footer secondary buttons hover */
#helpModal .btn-secondary:hover,
#addressModal .btn-secondary:hover,
#selectModal .btn-secondary:hover,
#differenceModal .btn-secondary:hover {
    background: #2645DD !important;
    border-color: #2645DD !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 22px rgba(56, 87, 240, 0.22);
    transform: translateY(-1px);
}




/* When screen size is smaller than 1200px put right side below */
@media (max-width: 1200px) {
    .order-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #intro-order aside {
        position: static !important;
        top: auto !important;
        width: 100%;
        align-self: stretch;
    }
}


/* Mobile spacing adjustments */
@media (max-width: 768px) {
    #intro-order {
        padding: 16px;
        border-radius: 24px;
    }

    #intro-order > .col {
        padding: 20px 16px !important;
        border-radius: 22px !important;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-main-card,
    .order-sidebar-card {
        width: 100%;
        padding: 18px !important;
        border-radius: 22px;
        box-sizing: border-box;
    }

    [data-cart-results] {
        padding-right: 0;
    }

    #continue-cart-button {
        width: 100% !important;
    }
}

.qa-pro-chip {
    background-color: #DEEDF8;
    color: #5267E4;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
}
