/* css for search invoice page form and table*/
.woocommerce .button {
    text-transform: none !important;
}

.pay-now-btn {
    padding: 6px 14px;
}

.invoice-search-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}

.invoice-search-form input[type="text"],
.invoice-search-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
}

.invoice-search-form input[type="text"] {
    border: 1px solid #aaa;
}

.invoice-search-form input[type="submit"] {
    background-color: #0071a1;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.invoice-search-form input[type="submit"]:hover {
    background-color: #005f87;
}


/* ===== Invoice Table Wrapper ===== */
.invoice-list {
    max-width: 100%;
    margin: 30px auto;
    padding: 0 15px;
}

.invoice-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ===== Table Styling ===== */
.invoice-table-wrapper table {
    width: 100%;
    min-width: 1200px;
    /* Ensures horizontal scroll on small screens */
    border-collapse: collapse;
    background-color: #fff;
    font-size: 15px;
}

.invoice-table-wrapper thead {
    background-color: #0071a1;
    color: #fff;
}

.invoice-table-wrapper th,
.invoice-table-wrapper td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.invoice-table-wrapper tr:nth-child(even) {
    background-color: #f2f2f2;
}

.invoice-table-wrapper .pay-now-btn {
    background-color: #28a745;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.invoice-table-wrapper .pay-now-btn:hover {
    background-color: #218838;
}

/* --end css for search invoice page form and table--*/


/*css for invoice tab on my account page*/
#invoice-table td.invoice-paid {
    background-color: #e0ffe0;
    font-weight: bold;
    color: #2d7a2d;
}


#invoice-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

#invoice-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

#invoice-pagination .page-numbers:hover {
    background-color: #0071a1;
    color: #fff;
}

#invoice-pagination .page-numbers.current {
    background-color: #0071a1;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.pay-now-btn {
    padding: 4px 14px 8px;
    color: #fff;
    line-height:28px;
}

td span.invoice-paid {
    background-color: #e0ffe0;
    font-weight: bold;
    color: #2d7a2d;
    padding: 5px 15px;
    border-radius: 5px;
}
td span.invoice-unpaid {   
    background-color: #fff3cd; /* Light yellow */
    font-weight: bold;
    color: #856404; /* Dark yellow/brown text */
    padding: 5px 15px;
    border-radius: 5px;

}
.customer-info-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
	margin-top: 30px;
    margin-bottom: 30px;
    max-width: 55%;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.customer-info-box h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.customer-info-box p {
    margin: 4px 0;
    font-size: 15px;
    color: #444;
}
.pay-selected-btn {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bulk-paymanet-pagination {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

@media only screen and (max-width: 600px) {

    #invoice-table th,
    #invoice-table td {
        font-size: 12px;
        padding: 8px 6px;
    }

    .pay-now-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    form#invoice-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    form#invoice-search-form input[type="text"],
    form#invoice-search-form button {
        width: 100%;
    }

    #invoice-pagination .page-numbers {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 30px;
    }

    .customer-info-box {
        padding: 12px 16px;
    }

    .customer-info-box h3 {
        font-size: 16px;
    }

    .customer-info-box p {
        font-size: 14px;
    }
}

/*this css is used for email template for invoice product*/
.invoice-row {
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
    font-weight: bold;
}
.invoice-row .email-order-item-meta {
    font-size: 13px;
    color: #333;
}


/*this css is used on checkout page on add custom message*/
.custom-cart-table {
            width: 70%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        .custom-cart-table th,
        .custom-cart-table td {
            border: 1px solid #ccc;
            padding: 10px;
            vertical-align: top;
            text-align: left;
        }
        .custom-cart-table th {
            background-color: #f9f9f9;
            font-weight: 600;
        }
        .custom-cart-textarea {
            width: 100%;
            max-width: 100%;
            min-height: 60px;
            box-sizing: border-box;
            resize: vertical;
        }
/*tooltip rerlated css that is used on my account page under invoice tab*/

.invoice-message-popup {
    max-width: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grunion-field {
    background: #fff !important;
}
.pad5 button{
	padding:10px !important;
}
/*end css of tooltip*/