:root,
.light-style {
  --awc-bg: #ffffff;
  --awc-border: #ced4da;
  --awc-prefix-bg: #e9ecef;
  --awc-prefix-color: #495057;
  --awc-text: #2c3e50;
  --awc-label: #2c3e50;
  --awc-focus-border: #86b7fe;
  --awc-focus-shadow: rgba(13, 110, 253, 0.25);
}

.dark-style,
[data-bs-theme="dark"] {
  --awc-bg: #2a2a2a;
  --awc-border: #333333;
  --awc-prefix-bg: #1e1e1e;
  --awc-prefix-color: #d0d0d0;
  --awc-text: #d0d0d0;
  --awc-label: #d0d0d0;
  --awc-focus-border: #f80000;
  --awc-focus-shadow: rgba(248, 0, 0, 0.2);
}

.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: var(--awc-label);
}

.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: var(--awc-bg);
  border: 1px solid var(--awc-border);
  border-radius: 8px;
}

.amount-input-group:focus-within {
  border-color: var(--awc-focus-border);
  box-shadow: 0 0 0 0.25rem var(--awc-focus-shadow);
}

.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: var(--awc-prefix-bg);
  border: none;
  border-right: 1px solid var(--awc-border);
  border-radius: 0;
  color: var(--awc-prefix-color);
  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: var(--awc-bg) !important;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  color: var(--awc-text) !important;
  -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;
  background: var(--awc-bg) !important;
  color: var(--awc-text) !important;
}

.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: var(--bs-secondary-color, rgba(33, 37, 41, 0.65));
}

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