.payment-calculator {
    background-color: #fafafa;
    min-height: 100%;
    padding: 1em;
    width: 100%;
}

.payment-calculator__title {
    font-weight: normal;
    font-size: 1.2em;
    margin: 0;
    text-align: center;
}

.payment-calculator__result-wrapper {
    background-color: white;
    margin: 0.8em auto;
    padding: 1em;
}

.payment-calculator .result-wrapper__result {
    display: block;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.payment-calculator__disclaimer {
    color: #808080;
    display: block;
    text-align: center;
    width: 100%;
}

.payment-calculator__row {
    display: flex;
    flex-wrap: wrap;
    margin: 1em 0;
}

/* Label */
.payment-calculator .row__label {
    margin: 5px 0;
    width: 100%;
}
.payment-calculator .row__label--inline {
    display: inline;
    vertical-align: middle;
}

/* Input */
.payment-calculator .row__input {
    color: rgba(0, 0, 0, 0.87);
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: .5em;
    height: 42px;
    outline: none;
    width: calc(100% - 40px);
}
.payment-calculator .row__input:not([disabled]):hover { border-color: #888; }
.payment-calculator .row__input:not([disabled]):focus {
    border-color: #aaa;
    -webkit-box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
    box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
    color: #222;
    outline: none;
}
.payment-calculator .row__input[disabled] {
    color: #7a7a7a;
    cursor: not-allowed;
}

/* Select */
.payment-calculator .row__select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%33000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
    border: 1px solid #e0e0e0;
    border-radius: .5em;
    box-sizing: border-box;
    color: #444;
    display: block;
    height: 42px;
    line-height: 1.3;
    margin: 0;
    max-width: 100%;
    padding: .6em 1.4em .5em .8em;
    width: calc(100% - 40px);
}
.row__select::-ms-expand {
     display: none;
 }
.row__select:not([disabled]):hover {
     border-color: #888;
 }
.row__select:not([disabled]):focus {
    border-color: #aaa;
    box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
    color: #222;
    outline: none;
}

.row__select[disabled] {
    color: #9d9d9d;
    cursor: not-allowed;
}

option {
    font-weight:normal;
}

/* Inner Row */
.payment-calculator__row .row--inner {
    margin-bottom: 1em;
    width: 100%;
}

/* Hidden Row */
.payment-calculator__row .row--hidden {
    width: 100%;
    background: #f7f7f7;
    border: 1px solid #f2f2f2;
    border-radius: 3px;
    display: none;
    margin: 0;
    padding: 10px 0 10px 15px;
}
.extended .row--hidden { display: block; }
.material-design__form .extended .row--hidden {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top-width: 0;
    margin-top: 0;
    width: calc(100% - 40px);
}
.material-design__form--outlined .extended .row--hidden {
    background: none;
    border-color: rgba(0, 0, 0, .38);
}
.material-design__form--filled .extended .row--hidden {
    background: #f7f7f7;
    border: none;
}

/* APR Row */
.row--apr {
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
}
.row--apr select,
.row--apr input[type=text] { width: 100%; }
.row--apr .row__label-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 5px;
}
.row--apr .label--inner {
    font-size: 12px;
}
.row--apr .material-icons { margin-right: 5px; }
@media all and (min-width:768px) {

    .row--apr {
        flex-direction: row;
        align-items: center;
    }
}

/* Column */
.row__column {
    flex: 1;
    margin-bottom: 10px;
}
@media all and (min-width:768px) {

    .row__column { margin-bottom: 0; }
    .row__column:first-child {
        margin-right: 20px;
        flex: 2;
    }
}

/* Icons */
.payment-calculator__icon {
    cursor: pointer;
    display: inline-block;
    margin-left: 5px;
    position: relative;
    vertical-align: middle;
    z-index: 3;
}
.payment-calculator__icon.icon--minus { display: none; }
.material-design__form--outlined .payment-calculator__icon { vertical-align: top; }
.material-design__form .state--has-value:not(.extended) .icon--plus { display: inline-block; }
.material-design__form .state--has-value.extended .icon--minus { display: inline-block; }
.extended .icon--plus { display: none; }
.extended .icon--minus { display: inline-block; }

#down_payment.extended {
    border:none;
    box-shadow:none;
}

/* Tooltips */
.field-info-wrapper {
    display: inline-block;
    vertical-align: middle;
    width: 40px;
}
.field-info {
    align-items: center;
    display: flex;
    height: 42px;
    justify-content: center;
}
.tooltip.tooltip--active .tooltip-content {
     visibility: visible;
     opacity: 100;
     z-index: 5;
}
.field-info__content {
    background-color: #fff;
    border: 1px solid #c7c7c7;
    border-radius: 3px;
    box-shadow: 1px 1px 5px #333;
    font-size: .875rem;
    left: 5%;
    line-height: 1.5em;
    max-width: 80vw;
    max-height: 100vh;
    opacity: 0;
    padding: 15px;
    position: absolute;
    top: 25%;
    visibility: hidden;
    width: 90%;
    z-index: 10;
}
.field-info__content strong {
    display: block;
    margin-bottom: 5px;
}
.field-info__close {
    cursor: pointer;
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 5;
}
.field-info__close:hover svg { fill: red; }
.field-info__icon-wrapper { line-height: 0; }
.field-info__icon-wrapper.tooltip--active {
    padding: 0;
    text-align: center;
    width: 100%;
}
.field-info__icon-wrapper:hover svg {
    cursor: pointer;
    fill: #333;
}
/* Active Field Info */
.field-info--active .field-info__content {
    opacity: 1;
    visibility: visible;
}
.field-info-overlay {
    background: rgba(0,0,0,.7);
    display: block;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: all .2s;
    visibility: hidden;
    width: 100%;
    z-index: 3;
}
.payment-calculator--overlaid .field-info-overlay {
    opacity: 1;
    visibility: visible;
}
