.route-map-main-actions {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 1px 1px 3px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.route-map-main-actions > .toolbar {
  display: contents;
}

.route-map-main-actions .btn {
  flex: 1 0 128px;
  min-height: 42px;
  padding: 9px 10px;
  white-space: nowrap;
}

.route-map-modal .modal-foot {
  display: none;
}

.btn.amount-edit {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #b4232f;
}

.btn.amount-edit:hover {
  border-color: #fda4af;
  background: #ffe4e6;
  color: #991b2b;
}

.amount-edit-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(5px);
  animation: amountLayerFade .16s ease-out;
}

.amount-edit-dialog {
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
  animation: amountDialogIn .2s ease-out;
}

.amount-edit-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 17px;
  border-bottom: 1px solid #edf0f4;
}

.amount-edit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff1f2, #ffe4e6);
  color: #be123c;
  box-shadow: inset 0 0 0 1px #fecdd3;
  font-size: 22px;
  font-weight: 950;
}

.amount-edit-head h3 {
  margin: 0;
  color: #172033;
  font-size: 19px;
  letter-spacing: -.03em;
}

.amount-edit-head p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.amount-edit-close {
  width: 34px;
  height: 34px;
  align-self: start;
  border: 0;
  border-radius: 10px;
  background: #f5f7fa;
  color: #667085;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.amount-edit-close:hover {
  background: #eaecf0;
  color: #344054;
}

.amount-edit-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.amount-current-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
}

.amount-current-row span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.amount-current-row strong {
  color: #344054;
  font-size: 18px;
}

.amount-input-field {
  display: grid;
  gap: 7px;
}

.amount-input-field label {
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid #f3a9b4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .07);
}

.amount-input-wrap:focus-within {
  border-color: #e94b63;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, .12);
}

.amount-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 8px 0 15px !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: #172033 !important;
  box-shadow: none !important;
  text-align: right;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .01em;
}

.amount-input-wrap span {
  padding-right: 15px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.amount-input-field small {
  color: #7b8493;
  font-size: 11px;
  line-height: 1.55;
}

.amount-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 9px;
  padding: 15px 20px 20px;
}

.amount-edit-actions .btn {
  min-height: 46px;
  border-radius: 11px;
  font-size: 14px;
}

.amount-edit-actions .amount-cancel {
  border-color: #d0d5dd;
  background: #fff;
  color: #475467;
}

.amount-edit-actions .amount-save {
  border-color: #e94b63;
  background: #e94b63;
  color: #fff;
  box-shadow: 0 8px 18px rgba(233, 75, 99, .24);
}

.amount-edit-actions .amount-save:hover {
  border-color: #d93650;
  background: #d93650;
}

@keyframes amountLayerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes amountDialogIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

body[data-theme='dark'] .amount-edit-dialog {
  border-color: #344054;
  background: #111827;
}

body[data-theme='dark'] .amount-edit-head {
  border-color: #29364c;
}

body[data-theme='dark'] .amount-edit-head h3,
body[data-theme='dark'] .amount-current-row strong,
body[data-theme='dark'] .amount-input-field label {
  color: #e5edf8;
}

body[data-theme='dark'] .amount-edit-head p,
body[data-theme='dark'] .amount-current-row span,
body[data-theme='dark'] .amount-input-field small {
  color: #98a2b3;
}

body[data-theme='dark'] .amount-current-row {
  border-color: #344054;
  background: #182235;
}

body[data-theme='dark'] .amount-edit-close {
  background: #1d2939;
  color: #cbd5e1;
}

body[data-theme='dark'] .amount-input-wrap {
  background: #0f1a2c;
}

body[data-theme='dark'] .amount-input-wrap input {
  color: #f8fafc !important;
}

@media (max-width: 560px) {
  .amount-edit-layer { padding: 12px; }
  .amount-edit-head { grid-template-columns: 42px minmax(0, 1fr) 32px; padding: 17px 16px 15px; }
  .amount-edit-icon { width: 42px; height: 42px; border-radius: 13px; }
  .amount-edit-body { padding: 17px 16px; }
  .amount-edit-actions { padding: 13px 16px 17px; }
}
