/**
 * Frontend styles for Noble Retailer Site Manager
 */

.nrsm-price-hidden {
    color: #666;
    font-style: italic;
    font-weight: normal;
}

/* Quote request specific styles */
.woocommerce-cart .cart_totals .shop_table th,
.woocommerce-cart .cart_totals .shop_table td {
    border-top: 1px solid #e5e5e5;
}

.woocommerce-cart .cart_totals .shop_table .order-total th,
.woocommerce-cart .cart_totals .shop_table .order-total td {
    border-top: 2px solid #e5e5e5;
    font-weight: bold;
}

/* Checkout page styles */
.woocommerce-checkout .woocommerce-info {
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
    padding: 12px;
    margin: 20px 0;
}

.woocommerce-checkout .woocommerce-info:before {
    content: "\f348";
    font-family: dashicons;
    margin-right: 8px;
}

/* Order received page */
.woocommerce-thankyou-order-received {
    background-color: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

/* My Account orders page */
.woocommerce-MyAccount-orders .woocommerce-orders-table .order-status {
    text-transform: capitalize;
}

.woocommerce-MyAccount-orders .woocommerce-orders-table .order-status.status-quote-pending {
    color: #f39c12;
    font-weight: bold;
}

.woocommerce-MyAccount-orders .woocommerce-orders-table .order-status.status-quote-approved {
    color: #27ae60;
    font-weight: bold;
}

.woocommerce-MyAccount-orders .woocommerce-orders-table .order-status.status-quote-rejected {
    color: #e74c3c;
    font-weight: bold;
}

/* Hide shipping elements */
.woocommerce-shipping-calculator,
.woocommerce-shipping-fields,
.shipping_address,
.woocommerce-cart .cart_totals .shipping,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-shipping-calculator {
    display: none !important;
}

/* Hide coupon elements */
.woocommerce-cart .coupon,
.woocommerce-checkout .coupon,
.woocommerce-cart .cart_totals .coupon,
.woocommerce-form-coupon-toggle {
    display: none !important;
}

/* Hide payment elements but keep Place Order button */
.woocommerce-checkout .payment_methods,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    display: block !important;
}

/* Ensure Place Order button is visible */
.woocommerce-checkout .woocommerce-checkout-payment .place-order {
    display: block !important;
}

.woocommerce-checkout .woocommerce-checkout-payment .place-order .button {
    background-color: #FB4C3C !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    min-width: 200px !important;
}

.woocommerce-checkout .woocommerce-checkout-payment .place-order .button:hover {
    background-color: #e6392a !important;
    color: white !important;
}


/* Quote request specific styling */
.woocommerce-cart .cart_totals h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-info {
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Quote checkout message */
.quote-checkout-message {
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.quote-checkout-message h3 {
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.quote-checkout-message p {
    color: #388e3c;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
}


/* Hide prices on thank you page */
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__product-name .amount,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__product-total .amount,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__line-total .amount,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__line-subtotal .amount,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__line-total .woocommerce-Price-amount,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__line-subtotal .woocommerce-Price-amount,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__product-total .woocommerce-Price-amount,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__product-name .woocommerce-Price-amount {
    display: none !important;
}

.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__line-total::after,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__line-subtotal::after,
.woocommerce-order-details .woocommerce-table--order-details .woocommerce-table__product-total::after {
    content: "Price on Quote";
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

/* Hide footer totals on thank you page */
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-total,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-subtotal,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-total .amount,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-subtotal .amount,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-total .woocommerce-Price-amount,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-subtotal .woocommerce-Price-amount,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-total .woocommerce-Price-amount bdi,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-subtotal .woocommerce-Price-amount bdi {
    display: none !important;
}

.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-total::after,
.woocommerce-order-details .woocommerce-table--order-details tfoot .woocommerce-table__line-subtotal::after {
    content: "Price on Quote";
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

.woocommerce-order-details .woocommerce-table--order-details tfoot tr:last-child td:last-child::after {
    content: "Total on Quote";
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    font-weight: bold;
}

/* Quote details styling */
.nrsm-quote-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.nrsm-quote-details h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.quote-price,
.quote-valid-until,
.quote-instructions {
    margin-bottom: 15px;
}

.quote-price .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
}

.instructions-content {
    margin-top: 5px;
    padding: 10px;
    background: white;
    border-radius: 3px;
}

/* Cart page button text changes */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #FB4C3C !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #e6392a !important;
    color: white !important;
}

.cbm-total th {
    display: block !important;

}

/* Alternative approach - hide original text and add new text */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::after {
    /* content: "Request Quote";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold; */
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    position: relative;
    /* color: transparent !important; */
    /* text-indent: -9999px; */
}