#wrapperMaqabCalc {
    margin: 0 0 30px 0;
}

.maqab-calc {
    padding-top: 30px;
    position: relative;
}

.maqab-calc-unit-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 0px;
    right: 10px;
    transform: translateY(-100%);
}

.maqab-calc[data-unit="mm"] .maqab-calc-table strong:not(:empty):after {
    content: ' mm';
}

.maqab-calc[data-unit="inches"] .maqab-calc-table strong:not(:empty):after {
    content: ' ″';
}

.maqab-calc-unit-wrapper select {
    background-position: center right 10px;
    padding: 10px 20px 10px 10px;
}

.page-id-4252 #hero h1 {margin-bottom: 0; /*Pushes .maqab-calc otherwise*/}

.maqab-calc-table {
    display: flex;
    flex-flow: column;
}

.maqab-calc-table input {
    width: 100px;
}

.maqab-calc-table input[type="number"] {
    border-radius: 6px;
}

.maqab-calc-table input[type="number"],
.maqab-calc-table input[type="number"]:hover {
    background: #545d62;
    border: none;
    color: #fff;
}

.maqab-calc-table input[type="number"]:focus {
    background: #677379;
}

.maqab-calc-table strong:not(:empty) {
    display: block;
    padding: 10px;
}

@media screen and (max-width: 781px) {
    .maqab-calc-unit-wrapper {
        position: static;
        transform: none;
    }

    .maqab-calc-table input[type="number"] {
        margin-top: 10px;
        max-width: 150px;
    }
}

.maqab-calc-stepnumber {
    background: #545d62;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: white;
    border-radius: 50%;
    padding: 1px;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    transition: background ease .25s;
}

.row:active .maqab-calc-stepnumber {
    background: #f36e36;
    color: #fff;
}

.row {
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px 0;
}

.row > div {
    display: flex;
}

@media screen and (max-width: 781px) {
    .maqab-calc-stepnumber {
        background: #f36e36;
        color: #fff;
        margin-bottom: 10px;
    }
    .row,
    .row > div {
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
    }
}

.results-row {
    background: #f0f0f0;
    padding: 10px;
}

.results-row.deviation {
    background: #f36e36;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #fff;
    margin-top: 10px;
}

.results-row.deviation h3 {
    margin: 0;
}
