/**
 *
 *      OClass receipt styling
 *
 */


.receipt td {
    background: none !important;
    border: none !important;
    padding: 10px;
    font-size: 12px;
    vertical-align: middle;
}

.receipt tr td:first-child {
    text-align: left;
}

.receipt tr td:last-child {
    text-align: right;
}

.receipt tr td img {
    max-width: 150px;
}

.receipt_total_div {
    display: flex;
    justify-content: right;
    background: #f7f7f7;
    padding: 15px;
}

.receipt_total {
    max-width: 350px;
    background: none;
    margin: 0px;

}

.receipt_total td {
    background: none !important;
    border: none !important;
    padding: 6px;
    font-size: 13px;
    text-align: right;
}

.receipt_header h4 {
    margin: 0px !important;
}

.receipt_header tr td:first-child img {
    display: none;
}

.download-receipt {
    font-size: 13px !important;
    float: right;
    background: var(--ocw-cta-bg-color) !important;
    color: var(--ocw-cta-color) !important;
    padding: 8px 25px;
    border: none;
    border-radius: 4px !important;
}

.download-receipt:hover,
.download-receipt:focus {
    background: var(--ocw-cta-bg-color) !important;
    color: var(--ocw-cta-color) !important;
}

.receipt th,
.receipt td {
    background: none !important;
    border: none !important;
    padding: 6px;
    font-size: 13px;
    color: black;
}

.receipt table:nth-child(8) tr td:last-child{
    text-align: left !important;
}

tfoot td{
    text-align: right !important;
}


@media (max-width: 767px) {


    .receipt_header tr td {
        display: block;
        text-align: left !important;
    }

    .receipt_header tr td:last-child img {
        display: none;
    }

    .receipt_header tr td:first-child img {
        display: block;
    }

    .receipt_details tr td:nth-child(2),
    .receipt_details tr td:nth-child(3) {
        display: none;
    }

    .receipt_total td,
    .receipt_items td {
        font-size: 11px;
    }

    .receipt .logo {
        width: auto !important;
    }

    .receipt img {
        max-width: 70px !important;
    }

    .receipt .full:nth-child(6) {
        margin-bottom: -25px;
    }

    .receipt .full:nth-child(10) {
        margin-bottom: -15px;
    }

    .receipt .full:nth-child(8) td {
        text-align: left !important;
        padding: 2px 6px !important;
    }

    .receipt .full:nth-child(8) tr td:last-child {
        width: 68%;
    }

    .receipt .full th {
        background: none !important;
    }

    .invoice-row,
    .invoice-item-row {
        border: none !important;
    }

    .receipt thead {
        background: none !important;
    }

    .receipt tfoot tr td:first-child {
        text-align: left !important;
    }

    .receipt tfoot {
        border-top: 1px solid #dee2e6 !important;
    }
}