/* -----------------------------------------
   GENERAL WRAPPER
------------------------------------------ */
.odr-mv-wrapper {
    border: 1px solid #e5e5e5;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 30px;
    font-family: system-ui, sans-serif;
}

/* -----------------------------------------
   FILTERS AREA
------------------------------------------ */
.odr-mv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px !important;
}

.odr-mv-field {
    flex: 1 1 calc(33% - 10px);
    min-width: 140px;
}

.odr-mv-field label {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.odr-mv-field select {
    width: 100%;
    padding: 7px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Reduce spacing between City and Vendor */
#odr-city, #odr-vendor {
    margin-bottom: 0 !important;
}

/* -----------------------------------------
   VENDOR INFO
------------------------------------------ */
#odr-vendor-info {
    margin-top: 5px;
    font-size: 13px;
    background: #f7f7f7;
    padding: 7px 10px;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

/* -----------------------------------------
   MATERIAL LIST
------------------------------------------ */
#odr-material-list {
    margin-top: 12px;
}

.odr-material-card {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.15s;
    background: #fff;
}
.odr-search-bar{
    top:67px;
}
.odr-timing-bar {
  position: sticky;
  top: 0px;
  z-index: 999;
  background:lightgrey;
}
.odr-material-card:hover {
    background: #f6faff;
    border-color: #0073aa;
}

.odr-material-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.odr-material-meta {
    font-size: 12px;
    color: #777;
}

.odr-material-price {
    font-size: 15px;
    font-weight: bold;
    color: #000;
    margin: 5px 0;
}

.odr-material-desc {
    font-size: 13px;
    color: #444;
    margin-top: 5px;
}

/* -----------------------------------------
   STICKY BOTTOM BAR
------------------------------------------ */
.odr-sticky-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    padding: 10px;
    z-index: 9999;
}

.odr-selected-material {
    font-size: 13px;
    margin-bottom: 6px;
    justify-content: center;
  display: flex;
}

.odr-sticky-buttons {
    display: flex;
    gap: 12px;
}

#odr-whatsapp-btn,
#odr-call-btn {
    flex: 1 1 50%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

#odr-whatsapp-btn {
    background: #25D366;
    color: #fff;
}

#odr-whatsapp-btn[disabled] {
    background: #999;
    cursor: not-allowed;
}

#odr-call-btn {
    background: #007AFF;
    color: #fff;
}

/* Center align "Call Now" text */
#odr-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------
   CUSTOMER POPUP
------------------------------------------ */
.odr-customer-modal {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    z-index: 10000;
    display:flex;
}

.odr-customer-modal-content {
    background: #fff;
    padding: 15px;
    width: 90%;
    max-width: 390px;
    border-radius: 10px;
    position: relative;
}

.odr-customer-modal-close {
    position: absolute;
    right: 12px;
    top: 5px;
    font-size: 22px;
    cursor: pointer;
}

.odr-customer-fields label {
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

.odr-customer-fields input {
    width: 100%;
    padding: 7px;
    margin-top: 3px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#odr-customer-send-wa {
    width: 100%;
    padding: 12px;
    border: none;
    background: #25D366;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 12px;
    cursor: pointer;
}

/* -----------------------------------------
   RESPONSIVE FIXES
------------------------------------------ */
@media (max-width: 600px) {
    .odr-mv-filters {
        flex-direction: column;
    }
}

.odr-btn-disabled {
    opacity: 0.4 !important;
    filter: blur(1px)!important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}



/* MAIN MATERIAL CARD */
.odr-material-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding-top: 1px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: .2s ease-in-out;
    cursor: pointer;
}

.odr-material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* HEADER : Name + Price */
.odr-mc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.odr-mc-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: grid;
}

.odr-mc-sub {
    font-size: 13px;
    color: #777;
    margin-left: 4px;
}

.odr-mc-grade {
    background: #eef6ff;
    color: #0066cc;
    padding: 2px 2px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 0px;
    display:flex;
}

.odr-mc-price {
    font-size: 18px;
    font-weight: bold;
    color: #007aff;
    display: grid;
}

.odr-mc-price small {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

/* META INFO */
.odr-mc-meta {
    margin-top: 6px;
    font-size: 12px;
    color: red;
}

/* DESCRIPTION */
.odr-mc-desc {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.45;
}

/* SELECTED HIGHLIGHT */
.odr-material-card.odr-selected-card {
    border-color: #007AFF;
    box-shadow: 0 0 10px rgba(0,122,255,0.4);
}


/* City + Vendor in one row */
.odr-mv-filters-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}
.short-field {
    flex: 1;
}

/* Sticky Timing Bar */
.odr-timing-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}
.odr-status-open { color: green; font-weight: 700; }
.odr-status-closed { color: red; font-weight: 700; }

/* Sticky Search Bar */
.odr-search-bar {
    position: sticky;
    top: 42px;
    background: #fff;
    padding: 6px;
    z-index: 998;
    border-bottom: 1px solid #eee;
}
#odr-material-search {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #bbb;
}

/* Scrollable Material List */
#odr-material-scroll-box {
    max-height: 480px;
    overflow-y: auto;
    margin-top: 6px;
    padding: 5px;
}

/* Material Card */
.odr-material-card {
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    cursor: pointer;
}
.odr-material-card:hover {
    background: #f3f9ff;
    border-color: #007bff;
}

.odr-material-title { font-size: 15px; font-weight: 600; }
.odr-material-price { font-size: 14px; font-weight: bold; color: #0056d6; margin-top: 5px; }


.odr-mc-desc {
    position: relative;
    max-width: 100%;
}

.odr-desc-short {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.odr-desc-full {
    display: none;
}

.odr-read-more-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}
.odr-mc-meta span {
    white-space: nowrap;
}


.odr-mc-meta span {
    white-space: nowrap;
    flex-wrap: wrap; /* mobile fix */
    display:flex;
    overflow:hidden;
}


.odr-stock {
    font-weight: 600;
    color: #0073aa;
}




.odr-vendor-register-box {
    max-width: 500px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.odr-vendor-register-box input,
.odr-vendor-register-box textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#odr-vendor-submit-btn {
    width: 100%;
    background: #0073aa;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

#odr-vendor-submit-btn:hover {
    background: #005f8d;
}

.odr-search-bar {
    position: sticky;
    top: 70px;
    background: #fff;
    padding: 10px;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.odr-search-bar input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.odr-single-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.odr-btn {
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.odr-btn-wa {
    background: #25D366;
    color: #fff;
}

.odr-btn-call {
    background: #047bd5;
    color: #fff;
}
