.amount-button-wrapper {
    display: flex;
    margin: 24px 0 0;
}

@media (max-width: 679px) {
    .amount-button-wrapper {
        margin-top: 16px;
        overflow-x: scroll;
    }
}


@media (max-width: 550px) {
    .amount-button-wrapper {
        transform: translateX(-32px);
        width: calc(100% + 64px);
        padding-left: 32px;
        padding-right: 32px;
        padding-bottom: 32px;
    }
}


@media (max-width: 460px) {
    .amount-button-wrapper {
        margin-top: 16px;
    }
}

/*кнопки выбора суммы подарка*/
.amount-button {
    width: 120px;
    min-width: 120px;
    height: 48px;
    border: 1px solid #058ffc;
    border: 2px solid var(--color-accent, #058ffc);
    border-radius: 24px;
    border-radius: var(--btn-amount-radius, 24px);
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #058ffc;
    color: var(--color-accent, #058ffc);
    margin: 0 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in;
    white-space: nowrap;
}

.amount-button:first-child {
    margin-left: 0;
}

.amount-button:hover {
    background-color: #0470C6;
    border-color: #0470C6;
    background-color: var(--color-accent-dark, #0470C6);
    border-color: var(--color-accent-dark, #0470C6);
    color: #ffffff;
}

.amount-button.selected {
    background-color: #058ffc;
    border: 1px solid #058ffc;
    background-color: var(--color-accent, #058ffc);
    border: 1px solid var(--color-accent, #058ffc);
    color: #ffffff;
}

.amount-button--currency {
    color: #058ffc;
    color: var(--color-accent, #058ffc);
}

.amount-button:hover .amount-button--currency {
    color: #ffffff;
}

.amount-button.selected .amount-button--currency {
    color: #ffffff;
}

.input-amount-wrapper {
    display: flex;
    margin-top: 16px;
    align-items: center;
}

.amount-input-group {
    display: flex;
    margin-left: 6px;
}

/*обертка поле суммы и стрелками управления*/
.input-amount-control {
    position: relative;
    display: flex;
    align-items: baseline;
}

/*поле ввода суммы*/
.input-amount {
    height: 46px;
    font-size: 32px;
    line-height: 32px;
    width: 120px;
    text-align: right;
    padding-bottom: 0;
    padding-right: 5px;
    margin-left: 6px;
    font-weight: bold;
}

.input-amount__currency {
    font-size: 31px;
    line-height: 32px;
    margin-left: 3px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/*стрелки управления суммой*/
.control-amount-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 34px;
    align-self: center;
    margin-left: 20px;
}

.control-amount {
    border: 0;
    height: 8px;
    background-image: url('../../img/menu-icon.svg');
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    outline: 0;
    cursor: pointer;
}

.control-amount-up {
    transform: rotate(180deg);
}

.amount__stretch {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    width: 130px;
    min-width: 130px;
    height: 48px;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    cursor: text;
    transition: none;
}

.amount__stretch > * {
    transition: none;
}

.amount__input {
    padding-left: 5px;
    min-width: 100%;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: var(--color-accent);
    border:none;
    background: transparent;
}

.amount__input::-webkit-input-placeholder {
    color: var(--color-accent);
    opacity: 1;
}
.amount__input::-moz-placeholder {
    color: var(--color-accent);
    opacity: 1;

}
.amount__input:-ms-input-placeholder {
    color: var(--color-accent);
    opacity: 1;

}
.amount__input::-ms-input-placeholder {
    color: var(--color-accent);
    opacity: 1;

}
.amount__input::placeholder {
    color: var(--color-accent);
    opacity: 1;
}

.amount__input.notEmpty,
.amount__input.notEmpty + .cur2 {
    color: #fff;
}

.amount__input.notEmpty {
    min-width: 20px;
}

.amount__input::-webkit-input-placeholder {
    color: var(--color-accent);
    font-size: 14px;
    opacity: 1;
}
.amount__input::-moz-placeholder {
    color: var(--color-accent);
    font-size: 14px;
    opacity: 1;
}
.amount__input:-ms-input-placeholder {
    color: var(--color-accent);
    font-size: 14px;
    opacity: 1;
}
.amount__input::-ms-input-placeholder {
    color: var(--color-accent);
    font-size: 14px;
    opacity: 1;
}
.amount__input::placeholder {
    color: var(--color-accent);
    opacity: 1;
}

.amount__input:focus {
    color: #ffffff;
    caret-color : #ffffff;
    background-color: var(--color-accent);
    min-width: 20px;
    width: 20px;
}

.amount__stretch.focused {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.amount__currency {
    opacity: 1;
}

.amount__input:not(:focus):not(.notEmpty) + .amount__currency{
    opacity: 0;
    display: none;
    color: transparent;
}

.amount__stretch.focused .amount-button--currency {
    color: #ffffff;
}

