/* Tabs */
.custom-orders-tabs {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}
.custom-orders-tabs a {
    padding: 10px 20px !important;
    font-size: 15px;
    font-weight: 600;
}

/* Modal Base */
.order-modal,
.liveChatModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}
.order-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.modal-body {
    padding: 20px;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}
.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Dropdown */
.status-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Toggle Switch (Returned) */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2196F3;
}
input:checked + .slider:before {
    transform: translateX(20px);
}

/* Messages Product Info*/
.bm-thread-infos {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.bm-product-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}
.bm-product-title a {
    color: #333;
    text-decoration: none;
}
.bm-product-title a:hover {
    color: #0073aa;
}
.bm-product-price {
    font-size: 16px;
    font-weight: 700;
}
.thread {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.thread:hover {
    background-color: #f5f5f5;
}
.bp-messages-active-thread {
    background-color: #e8f4fd;
}
.bm-thread-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}