input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

input[type=number] {
    -moz-appearance: textfield
}

.input-field {
    width: 100%;
    gap: 8px;
    padding: 9px 13px;
    position: relative;
    background-color: #fff
}

.input-field::after {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .0509803922);
    content: "";
    display: block;
    border: 1px solid #d1d5db;
    width: calc(100% - 1px);
    height: calc(100% - 2px);
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    transition: .3s ease
}

.input-field:focus-within::after {
    border-color: var(--primary-light);
    z-index: 1
}

.input-field__input {
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #111827
}

.input-field__text {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .875rem;
    line-height: 1.25rem;
    color: #111827;
    text-align: left
}

.input-field__hint {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #6b7280;
    white-space: nowrap
}

.input-field path[stroke-width],
.input-field path[stroke] {
    stroke: #9ca3af
}

.input-field path[fill] {
    fill: #9ca3af
}

.input-field svg {
    min-width: 20px;
    min-height: 20px;
    pointer-events: none
}

.input-field--error {
    z-index: 1
}

.input-field--error::after {
    border-color: #f87171
}

.input-field--error>.input-field__input {
    color: #f87171
}

.input-field--error>.input-field__input::-moz-placeholder {
    color: #f87171
}

.input-field--error>.input-field__input::placeholder {
    color: #f87171
}

html[dir=rtl] .input-field__text {
    text-align: right
}

.input-wrapper {
    align-items: flex-end
}

.input-wrapper .row {
    width: 100%
}

.input-wrapper--none-title .input {
    padding-top: 0
}

.input {
    gap: 4px;
    width: 100%;
    position: relative
}

.input__title {
    left: 0;
    top: 0;
    position: relative;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    min-height: 20px;
}

html[dir=rtl] .input__title {
    left: auto;
    right: 0
}

.input-button {
    font-size: .875rem;
    line-height: 1.25rem;
    padding: .5rem 1rem;
    text-align: left
}

.input-button:hover {
    background: #f3f4f6
}

.dropdown-wrapper {
    position: relative
}

.dropdown-wrapper .input-field {
    padding: 0
}

.dropdown-wrapper .input-field__text {
    padding: 9px 33px 9px 13px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none
}

.dropdown-wrapper .input-field::before {
    content: "";
    position: absolute;
    right: 13px;
    top: 9px;
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z' fill='%239CA3AF'%3E%3C/path%3E%3C/svg%3E")
}

.dropdown-wrapper select {
    cursor: pointer
}

.dropdown-content {
    position: absolute;
    top: 100%;
    z-index: 20;
    min-width: calc(100% + 1px);
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: .375rem;
    border: 1px solid #d1d5db;
    border-top-width: 0;
    border-bottom-width: 0;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    transition: .15s linear
}

.dropdown-select {
    display: flex;
    width: 100%;
    cursor: pointer;
    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: .875rem;
    line-height: 1.25rem;
    color: #6b7280;
    transition: .15s linear;
    align-items: center;
    gap: .5rem
}

.dropdown-select:hover {
    background-color: #f3f4f6
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s ease;
    position: relative;
    overflow: hidden
}

.button:disabled {
    opacity: .5;
    cursor: default
}

.button--primary__wrapper {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    align-items: center;
}

.button--primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff
}

.button--primary:hover:not(:disabled):not(:active) {
    background-color: var(--primary-light);
}

.button--primary:active {
    transition: 0s;
    background-color: var(--primary-color);
    border-color: var(--primary-color)
}

.calculator-settings {
    width: 100%
}

.calculator-setting {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .0588235294), 0 1px 3px 0 rgba(0, 0, 0, .1019607843);
    border-radius: 8px
}

@media only screen and (max-width:640px) {
    .calculator-setting {
        box-shadow: none;
        border-radius: 0
    }
}

.calculator-content {
    padding: 32px;
    background-color: var(--white);
    border: var(--border-color) solid 1px;
    gap: 20px 16px
}

.calculator-content--small {
    padding: 12px 32px
}

.calculator-content:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

@media only screen and (max-width:640px) {
    .calculator-content:first-child {
        border-radius: 0
    }
}

.calculator-content:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

@media only screen and (max-width:640px) {
    .calculator-content:last-child {
        border-radius: 0
    }
}

.calculator-content+.calculator-content,
script+.calculator-content {
    border-top: 1px solid #e5e7eb;
}

@media only screen and (max-width:768px) {
    .calculator-content {
        padding: 32px 16px;
    }

    .calculator-content--small {
        padding: 12px 16px;
    }
}