#potential-growth-tool {
    --brand-color: #00143F;
    --highlight-color: #4AD4FF;
    --bg-grey: #f0f2f5;
}

#potential-growth-tool input[type=text]:focus {
    outline: none;
}

#potential-growth-tool .small-title {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xxs-2);
}

#potential-growth-tool .prefix-input {
    font-family: var(--font-family-heading-1);
    font-size: 25px;
    line-height: 1;
    padding: var(--space-xxs-2) var(--space-xs);
    border: .05rem solid var(--brand-color);
    border-radius: var(--border-radius-m);
    background: #fff;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-m);
    display: flex;
    gap: var(--space-xxs);
    align-items: center;
}

#potential-growth-tool .prefix-input input {
    font: inherit;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #fff;
    flex:1;
}

#potential-growth-tool .years-invested-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#potential-growth-tool .years-invested-title-row p {
    margin-bottom: 0;
}

#potential-growth-tool .years-invested-title-row .slider-num {
    font-family: var(--font-family-heading-1);
    font-weight: var(--font-weight-bold);
    font-size: 25px;
    line-height: 1;
}

#potential-growth-tool .slidetag {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-m);
}

#potential-growth-tool .ending-amount-box {
    background-color: var(--highlight-color);
    border-radius: var(--border-radius-m);
    padding: var(--space-s) var(--space-xs);
    font-weight: var(--font-weight-bold);
}

#potential-growth-tool .ending-amount-box p {
    margin-bottom: var(--space-xxs);
    font-size: 16px;
}

#potential-growth-tool .ending-amount-box .ending-amount-result {
    font-family: var(--font-family-heading-1);
    color: var(--brand-color);
    font-size: 50px;
    line-height: 1;
    display: flex;
    gap: var(--space-xxs-2);
    align-items: center;
}

@media(max-width: 1199px) {
    #potential-growth-tool .ending-amount-box .ending-amount-result {
        font-size: 40px;
    }
}

#potential-growth-tool .ending-amount-box .ending-amount-result::before {
    content: "";
    border-style: solid;
    border-width: 20px 0 20px 15px;
    border-color: transparent transparent transparent #fff;
}

#potential-growth-tool .growth-chart-container {
    height: 280px;
}

@media screen and (min-width: 840px) {
    #potential-growth-tool .growth-chart-container {
        height: 520px;
    }
}

#potential-growth-tool .slidecontainer {
    --valuePercent: 100%;
    --slider-track-height: 4px;
    --slider-thumb-size: 18px;
    display: flex;
    height: 18px;
    width: 100%;
    margin: var(--space-xxs) 0;
}

#potential-growth-tool .slidecontainer .slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    width: 100%;
    margin: 0px;
    cursor: pointer;
}

/* Track */
#potential-growth-tool .slidecontainer .slider::-webkit-slider-runnable-track {
    max-width: 100%;
    border-radius: 2px;
    min-height: 1px;
    max-height: var(--slider-track-height);
    background-image: linear-gradient(var(--highlight-color), var(--highlight-color)), linear-gradient(var(--brand-color), var(--brand-color));
    background-size: var(--valuePercent) var(--slider-track-height), 100% 2px;
    background-repeat: no-repeat no-repeat;
    background-position: left;
    cursor: pointer;
}

#potential-growth-tool .slidecontainer .slider::-moz-range-track {
    width: 100%;
    border: 0;
    border-radius: 2px;
    height: var(--slider-track-height);
    background-image: linear-gradient(var(--highlight-color), var(--highlight-color)), linear-gradient(var(--brand-color), var(--brand-color));
    background-size: var(--valuePercent) var(--slider-track-height), 100% 2px;
    background-repeat: no-repeat no-repeat;
    background-position: left;
    cursor: pointer;
}

/* Thumb */
#potential-growth-tool .slidecontainer .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: var(--slider-thumb-size);
    width: var(--slider-thumb-size);
    margin-top: calc((var(--slider-track-height) - var(--slider-thumb-size)) / 2);
    border-radius: 100%;
    border: 3px solid var(--highlight-color);
    background-color: #fff;
    cursor: pointer;
}

#potential-growth-tool .slidecontainer .slider::-moz-range-thumb {
    height: var(--slider-thumb-size);
    width: var(--slider-thumb-size);
    border-radius: 100%;
    border: 3px solid var(--highlight-color);
    background-color: #fff;
    cursor: pointer;
}

#potential-growth-tool .growth-index {
    margin-bottom: var(--space-m);
}

#potential-growth-tool .ssmp-form-select__select {
    font-size: var(--font-size-base);
}

#potential-growth-tool .ssmp-form-select__select-activator {
    padding: var(--space-xs);
}

#potential-growth-tool .ssmp-form-select__select-optionlist__option {
    padding: var(--space-xs);
    border-radius: var(--border-radius-m);
}

#potential-growth-tool .ssmp-form-select__select-optionlist__option.selected {
    background-color: var(--bg-grey);
}