/* ============================================
   Fulfillment Order Styles
   ============================================ */

.fulfillment-order {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
}

.fulfillment-order.pending-action {
    border-color: var(--accent-gold);
    background: linear-gradient(to right, #FFF9E6 0%, white 100%);
}

.fulfillment-order:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--light-gray);
}

.order-header h4 {
    font-size: var(--font-size-lg);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.platform-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: var(--spacing-sm);
}

.platform-badge.etsy {
    background: #F1641E;
    color: white;
}

.platform-badge.shopify {
    background: #95BF47;
    color: white;
}

.platform-badge.manual {
    background: var(--gray);
    color: white;
}

.order-body {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.order-product,
.order-customer,
.order-shipping,
.order-price {
    display: flex;
    gap: var(--spacing-md);
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid var(--light-gray);
    flex-shrink: 0;
}

.product-thumbnail-placeholder {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-thumbnail-placeholder i {
    font-size: 2rem;
    color: var(--gray);
}

.product-details {
    flex: 1;
}

.design-file-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.design-file-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.order-product i,
.order-customer i,
.order-shipping i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.order-product strong,
.order-customer strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.text-sm {
    font-size: 0.875rem;
    color: var(--gray);
}

.text-orange {
    color: var(--primary-color);
    font-weight: 600;
}

.text-gray {
    color: var(--gray);
}

.order-price {
    flex-direction: column;
    align-items: flex-end;
}

.price-lg {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    font-weight: 700;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
}

.order-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ============================================
   Fulfillment Modal
   ============================================ */

.modal-xl {
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
}

.fulfillment-modal-body {
    max-height: calc(95vh - 200px);
    overflow-y: auto;
}

.fulfillment-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--off-white);
    border-radius: var(--radius-lg);
}

.fulfillment-section h3 {
    font-size: var(--font-size-xl);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 600;
}

.info-item span {
    font-size: 1rem;
    color: var(--secondary-color);
}

.customer-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.detail-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--light-gray);
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.detail-card label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.detail-card strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Design Preview */
.design-preview-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
}

.design-preview {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--light-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    gap: var(--spacing-sm);
}

.no-image i {
    font-size: 3rem;
    color: var(--light-gray);
}

.design-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.design-info h4 {
    font-size: var(--font-size-lg);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.file-links {
    margin-bottom: var(--spacing-md);
}

.design-file-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.design-file-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.design-file-upload {
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--light-gray);
}

.design-file-upload label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.design-file-upload label i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Payment Methods */
.section-note {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.payment-method-card {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #FFF9E6 0%, white 100%);
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

.payment-radio {
    position: absolute;
    top: 15px;
    right: 15px;
}

.payment-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-icon {
    margin: var(--spacing-md) 0;
}

.payment-info h4 {
    font-size: var(--font-size-lg);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.payment-info p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: var(--spacing-sm);
}

.payment-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-logos {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: center;
    font-size: 1.5rem;
    margin-top: var(--spacing-xs);
}

.card-logos i {
    color: var(--gray);
}

.payment-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: #E8F4FD;
    border-radius: var(--radius-lg);
    color: #0066CC;
    font-size: 0.875rem;
}

.payment-note i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .order-body {
        grid-template-columns: 1fr 1fr;
    }
    
    .order-price {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .order-body {
        grid-template-columns: 1fr;
    }
    
    .product-thumbnail,
    .product-thumbnail-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .order-footer {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .order-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .order-actions button {
        width: 100%;
    }
    
    .customer-details-grid {
        grid-template-columns: 1fr;
    }
    
    .design-preview-container {
        grid-template-columns: 1fr;
    }
    
    .design-preview {
        width: 100%;
        height: 250px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .modal-xl {
        width: 98%;
        max-height: 98vh;
    }
}
