/* reset input number styling */
.md-stand-cost-calculator input[type=number] {
    -moz-appearance: textfield;
}
.md-stand-cost-calculator input[type=number]::-webkit-inner-spin-button,
.md-stand-cost-calculator input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}
.md-stand-cost-calculator input[type=number]::-ms-clear {
    display: none;
}

.md-stand-cost-calculator {
    display: flex;
}

.md-stand-cost-calculator .md-stand-cost-calculator-form,
.md-stand-cost-calculator .md-stand-cost-calculator-result {
    flex: 1;
    padding: 20px;
    text-align: center;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form h4,
.md-stand-cost-calculator .md-stand-cost-calculator-result h4 {
    font-size: 140%;
    margin: 10px 0 20px 0;
}

.md-stand-cost-calculator .md-stand-cost-calculator-form {
    background-color: #ed0626;
    color: #fff;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form input {
    display: block;
    margin: 40px auto;
    font-size: 48px;
    line-height: 140%;
    border: 2px solid rgba(255, 255, 255, 1);
    background-color: #ed0626;
    color: #fff;
    text-align: center;
    width: 100%;

    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 2rem;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form input::-webkit-input-placeholder {
    color: #fff;
    opacity: 0.5;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form input:-ms-input-placeholder {
    color: #fff;
    opacity: 0.5;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form input::placeholder {
    color: #fff;
    opacity: 0.5;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form input:valid {
    background-image: url("data:image/svg+xml,%3Csvg width='45px' height='34px' viewBox='0 0 45 34' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg transform='translate%28-56.000000, -59.000000%29' fill='%23ffffff'%3E%3Cpolygon points='70.1468531 85.8671329 97.013986 59 100.58042 62.5664336 70.1468531 93 56 78.8531469 59.5664336 75.2867133'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}
.md-stand-cost-calculator .md-stand-cost-calculator-form input:invalid:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='30px' height='30px' viewBox='0 0 30 30' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg transform='translate%28-128.000000, -59.000000%29' fill='%23ffffff'%3E%3Cpolygon points='157.848404 61.9920213 145.980053 73.8603723 157.848404 85.7287234 154.856383 88.7207447 142.988032 76.8523936 131.119681 88.7207447 128.12766 85.7287234 139.996011 73.8603723 128.12766 61.9920213 131.119681 59 142.988032 70.8683511 154.856383 59'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}
.md-stand-cost-calculator .md-stand-cost-calculator-form button {
    display: inline-block;
    margin: 10px auto;
    padding: 8px 20px;
    border: none;
    background-color: #fff;
    color: #000;
    text-align: center;
    font-size: 120%;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form button:hover {
    background-color: #fff;
}
.md-stand-cost-calculator .md-stand-cost-calculator-form button:disabled {
    background-color: rgba(255, 255, 255, 0.75);
    color: rgba(0, 0, 0, 0.75);
    opacity: 1;
    cursor: not-allowed;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result {
    background-color: #0b2272;
    color: #fff;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result .md-stand-cost-calculator-hide {
    display: none;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result .md-stand-cost-calculator-opening-info {
    margin: 50px 20px 20px;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 80%;
    margin: 20px auto;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result table.md-stand-cost-calculator-inactive {
    display: none;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result table th,
.md-stand-cost-calculator .md-stand-cost-calculator-result table td {
    text-align: center;
    padding: 6px 8px;
    width: 4%;
    white-space: nowrap;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result table tr.md-stand-cost-calculator-inactive td {
    display: none;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result table th:first-child,
.md-stand-cost-calculator .md-stand-cost-calculator-result table td:first-child {
    text-align: right;
    width: 48%;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result table th:last-child,
.md-stand-cost-calculator .md-stand-cost-calculator-result table td:last-child {
    text-align: left;
    width: 48%;
}
.md-stand-cost-calculator .md-stand-cost-calculator-result table tr:last-child td {
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid #fff;
    border-bottom: 3px double #fff;
}

@media (max-width: 780px) {
    .md-stand-cost-calculator {
        display: block;
    }
}
