.amount-currency-field {
  margin-bottom: 1rem;
}

.amount-currency-field--lg {
  margin-bottom: 1.25rem;
}

.amount-currency-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.amount-currency-field--lg .amount-currency-label {
  margin-bottom: 0.625rem;
  font-size: 1.5rem;
}

.amount-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 8px;
}

.amount-input-group:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.amount-currency-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 3.25rem;
  margin: 0;
  padding: 0 14px;
  background: #e9ecef;
  border: none;
  border-right: 1px solid #ced4da;
  border-radius: 0;
  color: #495057;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.amount-currency-field--lg .amount-currency-prefix {
  font-size: 1.35rem;
}

.amount-currency-input,
.amount-input-group .amount-currency-input,
.amount-input-group .amount-currency-input.form-control {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none;
  box-shadow: none !important;
  background: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  color: #2c3e50;
  -webkit-appearance: none;
  appearance: none;
}

.amount-currency-field--lg .amount-currency-input,
.amount-currency-field--lg .amount-input-group .amount-currency-input {
  padding: 15px 16px;
  font-size: 1.5rem;
}

.amount-currency-input:focus,
.amount-input-group .amount-currency-input:focus {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
}

.amount-currency-field--floating .amount-input-group {
  height: calc(3.5rem + 2px);
}

.amount-currency-field--floating .amount-currency-input {
  height: 100%;
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.amount-currency-field--floating > label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  color: rgba(33, 37, 41, 0.65);
}

.amount-currency-field--floating {
  position: relative;
}
