/* Fast Order Styles */

p:empty {
    display: none;
}

.search-loading {
    padding: 15px 12px;
    text-align: center;
    color: #007cba;
    font-style: italic;
    background: #f8f9ff;
    border-bottom: 1px solid #e6f0ff;
}

.search-no-results {
    padding: 15px 12px;
    text-align: center;
    color: #dc3545;
    background: #fff5f5;
    border-bottom: 1px solid #fecaca;
}

.search-error {
    padding: 15px 12px;
    text-align: center;
    color: #dc3545;
    background: #fff5f5;
    border-bottom: 1px solid #fecaca;
}

/* Animation for loading */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.search-loading {
    animation: pulse 1.5s ease-in-out infinite;
}
/* New css Start */
.fast-order-wrapper {
    margin: 0 auto;
    width: 100%;
}
.fast-order-header {
    width: 100%;
    padding: 0 0 20px 0;
}
.fast-order-header h2 {
    margin: 0 0 5px;
}
.fast-order-header p {
    margin: 0;
    line-height: normal;
}

.fast-order-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.fast-order-bottom-controls {
    border-top: none !important;
}
.btn-drag-drop {
    background: #2B2E34 !important;
    color: #F9F9F9 !important;
    height: auto;
    padding: 8px 20px !important;
    font-size: 16px !important;
    text-transform: capitalize;
    border: none;
    border-radius: 50px;
}
.action-buttons {
    display: flex;
    gap: 10px;
}
.action-buttons br {
    display: none;
}

.btn-clear-all, .btn-add-rows {
    font-size: 16px;
    border: 1px solid #707070 !important;
    border-radius: 25px !important;
    background: transparent !important;
    line-height: normal !important;
    font-weight: normal !important;
    color: #2B2E34!important;
    padding: 11px 10px 9px !important;
    text-align: center !important;
    text-transform: capitalize;
    min-width: 120px;
}
.btn-clear-all:hover, .btn-add-rows:hover {
    background: #2B2E34 !important;
    color: #fff!important;
}
.btn-add-to-cart {
    font-size: 16px;
    border: 1px solid #2B2E34;
    border-radius: 25px;
    background: #2B2E34;
    line-height: normal;
    margin: 0;
    width: auto;
    display: inline-block;
    padding: 10px;
    color: #fff;
    transition: all 0.5s;
    cursor: pointer;
    height: auto;
    min-width: 130px;
    text-transform: capitalize;
}
.btn-add-to-cart:hover {
    background: #fff;
    color: #2B2E34;
}
.btn-drag-drop br {
    display: none;
}

.fast-order-products-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0;
}

.fast-order-products-table th {
    text-align: left;
    font-weight: 700;
    padding: 12px 10px;
    vertical-align: middle;
    min-height: 40px;
    line-height: 1.5em;
}

.fast-order-products-table td {
    border-top: none !important;
    padding: 12px 10px;
    vertical-align: middle;
    min-height: 40px;
    line-height: 1.5em;
}
.fast-order-products-table th:first-child, .fast-order-products-table td:first-child {
    min-width: 50px;
    text-align: center;
}
.fast-order-products-table th:last-child, .fast-order-products-table td:last-child {
    width: 140px;
}

.fast-order-products-table td.code-cell {
    min-width: 100px;
}
.btn-remove-row {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    color: #ef4444;
    padding: 0;
    width: auto;
    height: auto;
}
/*.main-quick-search {
    display: flex;
    align-items: center;
    gap: 10px;
}*/
.search-container {
    position: relative;
}
#fast-order-products .main-quick-search {
    width: 180px;
}
.product-search {
    font-size: 16px;
    color: #707070 !important;
    padding: 10px;
    border-radius: 50px;
    width: 100%;
    background: transparent;
    border: 1px solid #707070 !important;
    text-align: left;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 10px 12px 10px 52px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    z-index: 0;
}

.search-result-item:hover {
    background: #f9fafb;
}
.search-result-item .search-result-image {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
}
.product-name {
    margin-bottom: 0;
    letter-spacing: 0;
    color: #272829;
    line-height: normal;
}

.product-sku {
    font-size: 13px;
    margin: 0 !important;
}

.price-ex {
    color: #374151;
}

.price-inc {
    font-size: 12px;
    color: #6b7280;
}

.price-label {
    font-size: 11px;
    color: #9ca3af;
}

.stock-status.in-stock {
    color: #10b981;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.quantity-controls {
    margin: 0;
    width: 100%;
    max-width: 120px;
    padding: 5px;
    height: 44px;
    justify-content: space-evenly;
    border: 1px solid #707070;
    border-radius: 25px;
    display: flex;
    align-items: center;
}
.quantity-controls input {
    width: 50px;
    min-width: 50px;
    font-size: 18px;
    height: 30px;
    max-width: 100%;
    border: none;
    background: transparent;
    line-height: normal;
    padding: 3px 0 0 0;
    text-align: center;
}

/* Chrome, Safari, Edge, Opera */
.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.quantity-controls input[type=number] {
  -moz-appearance: textfield;
}
.quantity-controls button {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    z-index: 0;
    font-size: 0;
}
.quantity-controls .qty-increase:before {
    content: "";
    width: 1px;
    height: 11px;
    background: #2B2E34;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1;
    top: 50%;
    transform: translate(0, -50%);
}
.quantity-controls button:after {
    content: "";
    width: 11px;
    height: 1px;
    background: #2B2E34;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1;
    top: 50%;
    transform: translate(0, -50%);
}

.empty-row .product-info {
    display: none;
}
.csv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csv-modal-container {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.csv-modal-header {
    padding: 20px 30px 0;
}

.csv-go-back-btn {
    background: #2B2E34;
    color: #fff;
    border: none;
    padding: 8px 16px 4px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.csv-go-back-btn:hover {
    background: #000;
}

.back-arrow {
    font-size: 16px;
}

.csv-modal-content {
    padding: 30px;
}

.csv-modal-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #1f2937;
}

.csv-modal-description {
    color: #6b7280;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.csv-sample-link {
    color: #2563eb;
    text-decoration: underline;
}

.csv-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f0fdff;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.csv-upload-area:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.csv-upload-area.csv-drag-over {
    border-color: #2563eb;
    background: #dbeafe;
    transform: scale(1.02);
}

.csv-upload-content {
    text-align: center;
}

.csv-upload-text {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.csv-upload-progress {
    padding: 20px 0;
}

.csv-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.csv-progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.csv-progress-text {
    text-align: center;
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}

body.csv-modal-open {
    overflow: hidden;
}

.csv-not-found {
    background-color: #fff7ed;
    border-left: 3px solid #f59e0b;
}

.csv-not-found .product-name {
    font-weight: bold;
}

.wsc-saved-cart-form .action-buttons {
    display: table-cell;
}

@media (max-width: 768px) {
    .fast-order-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    .btn-clear-all, .btn-add-rows {
        font-size: 14px;
        min-width: 100px;
    }
    .btn-add-to-cart {
        font-size: 14px;
        min-width: 110px;
    }
    .btn-drag-drop {
        font-size: 14px !important;
    }
    .fast-order-products-table thead {
        display: none;
    }
    .fast-order-products-table tr {
        display: flex;
        width: 100%;
        border-bottom: 1px solid #ccc;
        padding: 0 0 15px 0;
        margin: 0 0 15px 0;
        flex-wrap: wrap;
        gap: 5px;
    }
    .fast-order-products-table tr:last-child {
        border-bottom: none;
        padding: 0;
        margin: 0;
    }

    .fast-order-products-table tr td {
        display: block;
        width: 100%;
        padding: 0;
        min-height: 0px;
        border: none;
    }
    .fast-order-products-table th:last-child, .fast-order-products-table td:last-child {
        width: 100%;
    }
    #fast-order-products .main-quick-search {
        width: 100%;
        max-width: 380px;
    }
    .fast-order-products-table tr .quantity-cell,
    .fast-order-products-table tr .assign-room-cell {
        width: auto;
    }
    .fast-order-products-table td .product-image img {
        width: 110px;
        height: auto !important;
        background: #FFFFFF;
        border-radius: 7px;
        padding: 7px;
        display: inline-block;
        text-align: center;
    }
    .fast-order-bottom-controls {
        margin: 0;
    }
    .fast-order-products-tabl .quantity-controls {
        height: 38px;
    }
    .fast-order-products-table td.assign-room-cell input {
        height: 38px;
    }
    .fast-order-products-table td.code-cell {
        color: #9a9a9a !important;
    }
}




