/* PRICE CALCULATOR */

.sac-box {
    width: 100%;
    background: #f6f6f6;
    border-radius: 7px;
    padding: 16px;
    margin: 0 0 20px;
    box-sizing: border-box;
    color: #575757;
}

.sac-heading {
    margin: 0 0 24px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #595959;
}

.sac-controls {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sac-input-wrapper {
    display: flex;
    align-items: stretch;
    height: 42px;
    background: #fff;
    border: 1px solid #b8bec5;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

.sac-input-wrapper:focus-within {
    border-color: #009447;
    box-shadow: 0 0 0 1px #009447;
}

.sac-box .sac-input {
    width: 52px;
    min-width: 52px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    outline: none;
    font-size: 14px;
    color: #555;
    box-sizing: border-box;
    appearance: textfield;
}

.sac-input::-webkit-inner-spin-button,
.sac-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.sac-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0 8px;
    border-left: 1px solid #b8bec5;
    background: #fafafa;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    box-sizing: border-box;
}

.sac-button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #009447;
    border-radius: 6px;
    background: #fff;
    color: #009447;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.sac-button:hover,
.sac-button:focus {
    background: #009447;
    color: #fff;
}

.sac-result {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin: 0 0 18px;
    border-radius: 6px;
    background: #fff;
    color: #565656;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    box-sizing: border-box;
}

.sac-result.is-error {
    color: #b42318;
}

.sac-total-label {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #595959;
}

.sac-total-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.sac-total-price {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    color: #5a5a5a;
}

.sac-total-calculation {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    text-align: right;
}

@media (max-width: 480px) {
    .sac-total-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .sac-total-calculation {
        text-align: left;
    }
}
