.rj-admin-order-container {
    max-width: 1140px;
    margin: 20px auto;
    padding: 0 15px;
}

.rj-admin-order-title {
    background: linear-gradient(to right, #5195A8, #70EAFF);
    padding: 20px;
    border-radius: 5px 5px 0 0;
    color: #fff;
}

.rj-admin-order-title h2 {
    margin: 0;
    padding: 0;
}

.rj-admin-order-form-container {
    background: #f6f6f6;
    padding: 25px;
    border-radius: 0 0 5px 5px;
}

.rj-admin-order-section {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rj-admin-order-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.rj-admin-order-row {
    display: flex;
    margin: 0 -10px;
    flex-wrap: wrap;
}

.rj-admin-order-col {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
    margin-bottom: 15px;
}

.rj-admin-order-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.rj-admin-order-form input[type="text"],
.rj-admin-order-form input[type="tel"],
.rj-admin-order-form input[type="email"],
.rj-admin-order-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.rj-admin-order-form input[type="text"]:focus,
.rj-admin-order-form input[type="tel"]:focus,
.rj-admin-order-form input[type="email"]:focus,
.rj-admin-order-form select:focus {
    border-color: #5195A8;
    outline: none;
    box-shadow: 0 0 5px rgba(81,149,168,0.2);
}

.rj-admin-order-product-search {
    position: relative;
    margin-bottom: 20px;
}

#rj-product-search {
    width: 100%;
    padding: 10px 35px 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

#rj-product-search:focus {
    border-color: #5195A8;
    outline: none;
    box-shadow: 0 0 5px rgba(81,149,168,0.2);
}

#rj-product-search.loading {
    background-image: url('../images/spinner.gif');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.rj-admin-order-selected-products {
    margin-top: 15px;
}

.rj-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
}

.rj-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.rj-product-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rj-quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rj-remove-product {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.rj-remove-product:hover {
    color: #bd2130;
}

.rj-admin-order-summary table {
    width: 100%;
    border-collapse: collapse;
}

.rj-admin-order-summary th,
.rj-admin-order-summary td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rj-admin-order-summary tfoot th,
.rj-admin-order-summary tfoot td {
    font-weight: bold;
    border-top: 2px solid #ddd;
}

.rj-admin-order-actions {
    text-align: right;
    margin-top: 20px;
}

.rj-admin-order-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.rj-admin-order-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* Product Search Results */
.rj-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.rj-search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.rj-search-item:hover {
    background-color: #f5f5f5;
}

.rj-search-item:last-child {
    border-bottom: none;
}

.rj-search-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rj-product-image,
.rj-variation-image,
.rj-product-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.rj-product-details,
.rj-variation-details {
    flex: 1;
}

.rj-product-name,
.rj-variation-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.rj-product-price,
.rj-variation-price {
    color: #5195A8;
    font-weight: 500;
}

.rj-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Variations Modal */
.rj-variations-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

.rj-variations-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    min-width: 300px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.rj-variations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rj-variations-header h3 {
    margin: 0;
    font-size: 18px;
}

.rj-variations-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
    transition: color 0.2s;
}

.rj-variations-close:hover {
    color: #333;
}

.rj-variation-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rj-variation-item:hover {
    background-color: #f5f5f5;
}

.rj-variation-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rj-product-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rj-product-controls {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .rj-variations-content {
        width: 95%;
        max-height: 80vh;
    }
}

.rj-admin-order-success {
    background-color: #d4edda;
    color: #155724;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
}

.rj-admin-order-success h3 {
    margin: 0 0 15px;
    color: #155724;
    font-size: 24px;
}

.rj-admin-order-success p {
    margin: 0 0 20px;
    font-size: 16px;
}

.rj-admin-order-success .button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.rj-admin-order-success .button-primary {
    background: #28a745;
    color: #fff;
    border: 1px solid #218838;
}

.rj-admin-order-success .button-primary:hover {
    background: #218838;
    border-color: #1e7e34;
    color: #fff;
}

.rj-admin-order-success .button-secondary {
    background: #fff;
    color: #28a745;
    border: 1px solid #28a745;
}

.rj-admin-order-success .button-secondary:hover {
    background: #f8f9fa;
    color: #218838;
    border-color: #218838;
} 