
.product-finance-modal .finance-header-buyline {
    display: inline-flex;
    align-items: center;

    width: auto;
    max-width: 100%;

    margin: 15px 15px 14px 15px;
    padding: 10px 16px;

    box-sizing: border-box;

    background-color: #23c5ed;
    background-image: linear-gradient(to right, #23c5ed, #223d76);

    border-radius: 10px;

    color: #fff;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.product-finance-modal {
    display: none;

    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 9999;

    overflow-y: auto;

    padding: 30px 15px;

    box-sizing: border-box;

    background-color: rgba(0, 0, 0, 0.72);

    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035) 0,
            rgba(255, 255, 255, 0.035) 2px,
            rgba(0, 0, 0, 0.035) 2px,
            rgba(0, 0, 0, 0.035) 6px
        );

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}


.product-finance-modal-dialog {
    position: relative;

    width: 100%;
    max-width: 620px;

    margin: 30px auto;

    box-sizing: border-box;

    background: #eee;

    border: 4px solid #555;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    color: #333;
}


.product-finance-modal-close {
    position: absolute;

    top: 6px;
    right: 8px;

    z-index: 3;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 0;

    border: 1px solid #aaa;
    border-radius: 50%;

    background: #fff;

    color: #000;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 22px;
    line-height: 26px;
    font-weight: normal;

    text-align: center;

    cursor: pointer;
}


/*
 * Buyline header.
 */
.product-finance-modal .finance-header-buyline {
    box-sizing: border-box;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}


.product-finance-modal .finance-header-buyline picture {
    display: block;

    flex: 0 0 auto;
}


.product-finance-modal .finance-header-buyline svg {
    display: block;

    width: 70px;
    height: 21px;

    fill: #fff;

    flex-shrink: 0;
}


/*
 * These two states are mutually exclusive.
 * JavaScript decides which one to show when the modal opens.
 */
.product-finance-modal-header-monthly,
.product-finance-modal-header-available {
    display: none;
}


.product-finance-modal-header-monthly {
    color: #fff;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}


.product-finance-modal-header-available {
    margin: 0;

    color: #fff;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}


.product-finance-modal-header-monthly p,
.product-finance-modal-header-available p {
    margin: 0;

    color: #fff;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}


/*
 * Main modal body.
 */
.product-finance-modal-content {
    padding: 16px;

    box-sizing: border-box;

    background: #f1f1f1;
}


.product-finance-modal-monthly,
.product-finance-modal-available,
.product-finance-modal-common {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/*
 * Finance option selector.
 */
.product-finance-modal-options {
    width: 100%;

    margin: 0 0 14px 0;

    border-collapse: collapse;

    background: #fff;

    border: 1px solid #ccc;
}


.product-finance-modal-options th,
.product-finance-modal-options td {
    padding: 7px 9px;

    border-bottom: 1px solid #ddd;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
    line-height: 17px;
}


.product-finance-modal-options tr:last-child th,
.product-finance-modal-options tr:last-child td {
    border-bottom: 0;
}


.product-finance-modal-options th {
    width: 35%;

    text-align: left;

    font-weight: normal;
}


.product-finance-modal-options td {
    text-align: right;
}


.product-finance-modal-options select {
    width: 100%;
    max-width: 320px;

    box-sizing: border-box;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
}


/*
 * Finance calculation table.
 */
.product-finance-modal-table {
    width: 100%;

    margin: 0 0 14px 0;

    border-collapse: collapse;

    background: #fff;

    border: 1px solid #ccc;
}


.product-finance-modal-table th,
.product-finance-modal-table td {
    padding: 7px 9px;

    border-bottom: 1px solid #ddd;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
    line-height: 17px;
}


.product-finance-modal-table tr:last-child th,
.product-finance-modal-table tr:last-child td {
    border-bottom: 0;
}


.product-finance-modal-table th {
    width: 55%;

    text-align: left;

    font-weight: normal;
}


.product-finance-modal-table td {
    text-align: right;

    font-weight: bold;
}


/*
 * Generic finance-available message.
 */
.product-finance-modal-available {
    padding: 10px 12px;

    margin: 0 0 14px 0;

    background: #fff;

    border: 1px solid #ccc;
}


.product-finance-modal-available p {
    margin: 0 0 8px 0;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
    line-height: 18px;
}


.product-finance-modal-available p:last-child {
    margin-bottom: 0;
}


/*
 * Common application / eligibility information.
 */
.product-finance-modal-common {
    padding: 0;
}


.product-finance-modal-common p {
    margin: 0 0 12px 0;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
    line-height: 18px;
}


.product-finance-modal-common p:last-child {
    margin-bottom: 0;
}


.product-finance-modal-calculation-note {
    font-size: 11px !important;

    line-height: 16px !important;
}


/*
 * Preserve the expected site-style pointer behaviour.
 */
.product-finance-modal button,
.product-finance-modal select,
.product-finance-modal a {
    cursor: pointer;
}


/*
 * Mobile.
 */
@media (max-width: 640px) {

    .product-finance-modal {
        padding: 10px;
    }


    .product-finance-modal-dialog {
        margin: 10px auto;

        border-width: 3px;
    }


    .product-finance-modal-content {
        padding: 12px;
    }


    .product-finance-modal .finance-header-buyline {
        padding-right: 42px !important;
    }


    .product-finance-modal-options th,
    .product-finance-modal-options td,
    .product-finance-modal-table th,
    .product-finance-modal-table td {
        padding: 6px;

        font-size: 12px;
    }


    .product-finance-modal-options th {
        width: 32%;
    }


    .product-finance-modal-table th {
        width: 52%;
    }

}