.paywhirl_invoice * {
    transition:
        all 1s ease-in-out,
        opacity 0.5s ease-in-out,
        font-size 1s ease-in-out;
}
.paywhirl_invoice {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #e2e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 4px 5px 10px 0px rgba(26, 26, 67, 0.1);
    background: #fff;
    overflow: visible;
}

.paywhirl_invoice .invoice_title {
    text-align: center;
    padding: 10px;
    font-size: 22px;
    position: relative;
    top: -25px;
    font-weight: bold;
}

.paywhirl_invoice .invoice_subtitle {
    color: #bbb;
    font-size: 12px;
    text-align: center;
    position: relative;
    top: -35px;
}

.paywhirl_invoice .invoice_icon {
    text-align: center;
    position: relative;
    top: -30px;
}

.paywhirl_invoice .invoice_icon .fa-stack-2x {
    color: #fff;
    text-shadow: -2px 2px 10px #e2e2e2;
}

.paywhirl_invoice .invoice_icon .fa-stack-1x {
    color: #3ecf8e;
}

.paywhirl_invoice .invoice_items {
    padding: 0px 20px;
    position: relative;
    top: -20px;
    overflow: hidden;
}

.paywhirl_invoice .invoice_title_row {
    font-size: 10px;
    font-weight: bold;
    border-bottom: 2px solid #bbb;
    text-align: left;
}

.paywhirl_invoice .invoice_item_row {
    font-size: 14px;
    font-weight: normal;
    border-bottom: 1px solid #e2e2e2;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: right;
    position: relative;
    background: #fff;
}
.paywhirl_invoice .invoice_item_row .col-6 {
    text-align: left;
}

.paywhirl_invoice .total_row {
    text-align: right;
    font-weight: bold;
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    border-top: 2px solid #bbb;
    padding-top: 10px;
}

.invoice_paid {
    color: #3ecf8e;
    border: 3px solid #3ecf8e;
    border-radius: 5px;
    padding: 2px 10px;
    font-size: 20px;
    text-align: center;
    width: 100px;
    position: absolute;
    right: 30px;
    top: 25px;
    transform: rotate(12deg);
    opacity: 0;
}

#invoice_div {
    width: 440px;
    height: 550px;
    margin: auto;
}

@media (max-width: 950px) {
    #invoice_div {
        width: 320px;
        height: 400px;
        margin: auto;
        margin-left: -5px;
    }

    .paywhirl_invoice .invoice_item_row {
        font-size: 10px;
        padding: 3px;
    }
}

@media (min-width: 880px) {
    .paywhirl_invoice {
        transform: scale(1.05) perspective(2910px) rotateY(12deg) rotateX(3deg)
            rotate(-2deg);
        box-shadow:
            -1px -1px 5px 0 rgba(26, 26, 67, 0.05),
            -12px 20px 125px -25px rgba(50, 50, 93, 0.5),
            -18px 20px 75px -37.5px rgba(0, 0, 0, 0.6);
    }

    body.ios-safari .paywhirl_invoice {
        transform: scale(1.05);
    }
}
