.alm-iframe-calculator {
    --alm-iframe-background: #4e72ea;
    --alm-iframe-text-color: #fff;
    --alm-iframe-button-bg: var(--global-palette1, #ff9800);
    --alm-iframe-button-text: #fff;
    --alm-iframe-slider-active: #fff;
    --alm-iframe-slider-inactive: rgba(255, 255, 255, 0.45);
    --alm-iframe-border-color: transparent;
    --alm-iframe-value-bg: #fff;
    --alm-iframe-value-text: #5f7192;
    --alm-iframe-font-family: 'Nunito Sans', sans-serif;

    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    background: var(--alm-iframe-background);
    border: 1px solid var(--alm-iframe-border-color);
    color: var(--alm-iframe-text-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    font-family: var(--alm-iframe-font-family);
}

.alm-iframe-calculator *,
.alm-iframe-calculator *::before,
.alm-iframe-calculator *::after {
    box-sizing: border-box;
}

.alm-iframe-calculator__banner {
    background: #fff;
    color: var(--alm-iframe-value-text);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
}

.alm-iframe-calculator__field {
    min-width: 0;
}

.alm-iframe-calculator__field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    color: var(--alm-iframe-text-color);
}

.alm-iframe-calculator__value {
    flex: 0 0 auto;
    min-width: 118px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--alm-iframe-value-bg);
    color: var(--alm-iframe-value-text);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.alm-iframe-calculator .alm-slider-container {
    margin-top: 18px;
}

.alm-iframe-calculator .alm-custom-slider {
    height: 9px;
    background: var(--alm-iframe-slider-inactive);
}

.alm-iframe-calculator .alm-slider-progress {
    background: var(--alm-iframe-slider-active);
}

.alm-iframe-calculator .alm-slider-handle {
    width: 42px;
    height: 42px;
    background: var(--alm-iframe-slider-active);
    box-shadow: none;
}

.alm-iframe-calculator .alm-slider-handle img {
    display: none;
}

.alm-iframe-calculator .alm-slider-handle::before,
.alm-iframe-calculator .alm-slider-handle::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.alm-iframe-calculator .alm-slider-handle::before {
    border-right: 6px solid var(--alm-iframe-value-text);
    margin-right: 3px;
}

.alm-iframe-calculator .alm-slider-handle::after {
    border-left: 6px solid var(--alm-iframe-value-text);
    margin-left: 3px;
}

.alm-iframe-calculator .alm-slider-values {
    color: var(--alm-iframe-text-color);
}

.alm-iframe-calculator__button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 12px 30px;
    background: var(--alm-iframe-button-bg);
    color: var(--alm-iframe-button-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.alm-iframe-calculator__button:hover,
.alm-iframe-calculator__button:focus {
    filter: brightness(0.95);
}

@media (min-width: 720px) {
    .alm-iframe-calculator__button {
        width: auto;
        min-width: 150px;
        justify-self: start;
    }

    .alm-iframe-calculator--horizontal {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 24px;
    }
}

@media (max-width: 420px) {
    .alm-iframe-calculator__field label {
        align-items: flex-start;
        flex-direction: column;
    }

    .alm-iframe-calculator__value {
        width: 100%;
    }
}
