/* FME Bar and QR Codes Frontend Styles */

/* Start Display order barcode styles */
.order-barcode-table-wrapper {
    margin: 20px 0;
}

.order-barcode-table .order-details {
    line-height: 1.5;
}

.order-barcode-table .order-number {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-barcode-table .customer-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.order-barcode-table .order-date {
    color: #666;
    font-size: 13px;
    margin-bottom: 3px;
}

.order-barcode-table .customer-email {
    color: #666;
    font-size: 13px;
}

.order-barcode-table .order-items {
    line-height: 1.4;
}

.order-barcode-table .order-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.order-barcode-table .order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-barcode-table .item-name {
    font-weight: 600;
}

.order-barcode-table .item-quantity {
    color: #666;
}

.order-barcode-table .item-sku {
    margin-top: 2px;
    color: #999;
    font-size: 12px;
}

.order-barcode-table .status-wrapper {
    text-align: center;
}

.order-barcode-table .status-badge {
    margin-bottom: 8px;
}

.order-barcode-table .status-label {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.order-barcode-table .status-pending {
    background-color: #ffba00;
}

.order-barcode-table .status-processing {
    background-color: #c6e1c6;
    color: #5b841b;
}

.order-barcode-table .status-on-hold {
    background-color: #f8dda7;
    color: #94660c;
}

.order-barcode-table .status-completed {
    background-color: #c8d7e1;
    color: #2e4453;
}

.order-barcode-table .status-cancelled {
    background-color: #eba3a3;
    color: #761919;
}

.order-barcode-table .status-refunded {
    background-color: #eba3a3;
    color: #761919;
}

.order-barcode-table .status-failed {
    background-color: #eba3a3;
    color: #761919;
}

.order-barcode-table .order-total {
    font-size: 16px;
}

.order-barcode-table .barcode-wrapper {
    text-align: center;
}

.order-barcode-table .barcode-image img {
    max-width: 120px;
    height: auto;
    margin-bottom: 5px;
}

.order-barcode-table .barcode-content {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.order-barcode-table .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.order-barcode-table .order-action-btn {
    cursor: pointer;
}

@media (max-width: 768px) {
    .order-barcode-table .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .order-barcode-table .order-details {
        text-align: center;
    }

    .order-barcode-table .order-items {
        text-align: center;
    }
}
/* End of Display order barcode styles */


/* Start Display product barcode styles */
.product-barcode-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.product-barcode-table .product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-barcode-table .product-info .product-image-link img {
    max-width: 80px;
    height: auto;
}

.product-barcode-table .product-name a {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
}

.product-barcode-table .product-name a:hover {
    text-decoration: underline;
}

.product-barcode-table .barcode-wrapper {
    text-align: center;
}

.product-barcode-table .barcode-image img {
    max-width: 120px;
    height: auto;
    margin-bottom: 5px;
}

.product-barcode-table .barcode-content {
    margin-top: 5px;
    color: #666;
}

.product-barcode-table .quantity {
    margin-bottom: 10px;
}

.product-barcode-table .cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* WooCommerce notices styling for barcode table */
.product-barcode-table-wrapper .woocommerce-notices-wrapper {
    margin-bottom: 15px;
}

.product-barcode-table-wrapper .woocommerce-message {
    margin-bottom: 0;
}

.product-barcode-table-wrapper .woocommerce-error {
    margin-bottom: 0;
}

/* Loading state for button */
.ajax-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .product-barcode-table .product-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .product-barcode-table .product-info .product-image-link img {
        max-width: 60px;
    }
}
/* End of Display product barcode styles */