/* orders.partials.styles content */
[x-show="!formData.delivery_details.is_in_store_pickup"] input:disabled,
[x-show="!formData.delivery_details.is_in_store_pickup"] select:disabled,
[x-show="!formData.delivery_details.is_in_store_pickup"] textarea:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.form-check-input {
    margin-top: 0.2rem;
}

.pickup-notice {
    background-color: #e7f4ff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #0d6efd;
}

.delivery-fields-section {
    transition: all 0.3s ease;
}

.form-check-label {
    font-weight: 500;
    margin-left: 5px;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.wired-notice {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #6c757d;
}

/* Accessibility improvements */
[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .list-group-horizontal {
        flex-direction: column;
    }
    .product-row {
        flex-direction: column;
    }
    .product-row > div {
        margin-bottom: 10px;
        width: 100%;
    }
}

.swal-wide {
    /*width: 800px !important;*/
    /*max-width: 90%;*/
}
.swal2-popup .swal2-content {
    text-align: left !important;
}

/* Additional styles from your create/edit pages */
.list-group-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-group-item.active {
    background-color: #6c5ce7;
    border-color: #6c5ce7;
    color: white;
    z-index: 2;
}

.list-group-item.completed {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
}

.list-group-item.summary-step {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.list-group-item.summary-step.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.list-group-item:hover:not(.active) {
    background-color: #f8f9fa;
}

.summary-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.summary-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-item {
    display: flex;
    margin-bottom: 0.8rem;
}

.summary-label {
    font-weight: 600;
    min-width: 150px;
    color: #495057;
}

.product-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.price-summary {
    background-color: #eef2f7;
    border-radius: 10px;
    padding: 1.5rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
}

.price-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    border-top: 2px solid #6c5ce7;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.invoice-number {
    font-family: monospace;
    font-size: 1.4rem;
    letter-spacing: 1px;
    background-color: #f1f3f5;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
}
