body {
  background: #f0f2f5;
}

.account-page {
  min-height: 100vh;
  background: #f0f2f5;
}

.account-page__main {
  padding: 18px var(--page-side) calc(110px + var(--safe-bottom));
}

body.account-security-flow-page,
body.account-modal-page,
body.account-delete-page {
  background: #f0f1f3;
}

.account-security-flow-page .account-page,
.account-modal-page .account-page,
.account-delete-page .account-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f0f1f3;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --account-flow-side: 15px;
  --account-flow-card-radius: 8px;
  --account-flow-card-gap: 12px;
  --account-flow-card-padding: 15px;
  --account-flow-row-height: 54px;
  --account-flow-label-width: 58px;
  --account-flow-title-size: 16px;
  --account-flow-value-size: 16px;
}

.account-security-flow-page .sub-header,
.account-delete-page .sub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 241, 243, 0.98);
  box-shadow: none;
}

.account-security-flow-page .sub-header__back,
.account-delete-page .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: transparent;
  font-size: 0;
}

.account-security-flow-page .sub-header__back::before,
.account-delete-page .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.account-security-flow-page .account-page__main,
.account-delete-page .account-page__main {
  padding: 8px var(--account-flow-side) calc(96px + var(--safe-bottom));
}

.account-security-flow-page .security-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.security-helper {
  margin: 10px 0 14px;
  color: #8f959d;
  font-size: 15px;
  line-height: 1.4;
}

.security-form-card,
.binding-info-card,
.delete-note-card {
  border-radius: var(--account-flow-card-radius);
  background: #fff;
}

.security-form-card {
  overflow: hidden;
}

.security-form-row {
  display: grid;
  grid-template-columns: var(--account-flow-label-width) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: var(--account-flow-row-height);
  padding: 0 16px;
}

.security-form-row + .security-form-row {
  border-top: 1px solid #eef0f2;
}

.security-form-row__label {
  color: #2f2f30;
  font-size: var(--account-flow-title-size);
  line-height: 1.25;
  font-weight: 500;
}

.security-form-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #2f2f30;
  font-size: var(--account-flow-value-size);
  line-height: 1.25;
}

.security-form-row input::placeholder {
  color: #b1b8c1;
}

.security-inline-action {
  flex: 0 0 auto;
  color: #006843;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
}

.security-inline-action.is-muted,
.security-inline-action:disabled {
  color: #a9afb7;
}

.security-alt-link {
  align-self: flex-start;
  margin-top: 16px;
  color: #006843;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  background: transparent;
}

.security-state {
  display: none;
}

.security-state.is-active {
  display: block;
}

.binding-info-card {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 24px 22px;
}

.binding-info-card__label {
  color: #8f959d;
  font-size: 15px;
  line-height: 1.4;
}

.binding-info-card__value {
  color: #2f2f30;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  word-break: break-all;
}

.binding-outline-button,
.delete-action--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--h5-secondary-button-height);
  padding: 0 34px;
  border: 1.5px solid #cfd2d7;
  border-radius: var(--h5-secondary-button-radius);
  background: #fff;
  color: #2f2f30;
  font-size: var(--h5-secondary-button-size);
  line-height: 1.2;
}

.binding-outline-button {
  justify-self: end;
  min-width: 160px;
}

.account-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px var(--account-flow-side) calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(10px);
}

.account-bottom-bar--hidden {
  display: none;
}

.account-bottom-bar__button {
  width: 100%;
  min-height: var(--h5-primary-button-height);
  border: 0;
  border-radius: var(--h5-primary-button-radius);
  background: #006843;
  color: #fff;
  font-size: var(--h5-primary-button-size);
  line-height: 1.2;
  font-weight: var(--h5-primary-button-weight);
}

.account-bottom-bar__button.is-danger,
.delete-action--danger {
  background: #ff2d2d;
}

.account-modal-page .account-page {
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: rgba(128, 128, 128, 0.96);
}

.account-unbind-dialog {
  width: min(100%, 355px);
  padding: 40px 26px 30px;
  border-radius: 10px;
  background: #fff;
}

.account-unbind-dialog h1 {
  color: #2f2f30;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 600;
  text-align: center;
}

.account-unbind-dialog p {
  margin-top: 44px;
  color: #2f2f30;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.account-unbind-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.account-unbind-dialog__actions button {
  min-height: var(--h5-dialog-action-height);
  border-radius: var(--h5-dialog-action-radius);
  font-size: 16px;
  line-height: 1.2;
}

.account-unbind-dialog__actions .delete-action--ghost {
  padding: 0 18px;
  border-color: #006843;
  color: #006843;
}

.account-delete-page .account-page__main {
  padding-bottom: calc(112px + var(--safe-bottom));
}

.delete-note-card {
  padding: 30px;
}

.delete-note-card p {
  color: #2f2f30;
  font-size: 16px;
  line-height: 1.45;
}

.account-bottom-bar--dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.delete-action--ghost,
.delete-action--danger {
  min-height: var(--h5-primary-button-height);
  border-radius: var(--h5-primary-button-radius);
  font-size: var(--h5-primary-button-size);
  line-height: 1.2;
}

.delete-action--ghost {
  border-color: #006843;
  color: #006843;
}

@media (max-width: 359px) {
  .account-security-flow-page .account-page,
  .account-delete-page .account-page {
    --account-flow-side: 12px;
    --account-flow-card-gap: 10px;
    --account-flow-card-padding: 13px;
    --account-flow-row-height: 50px;
    --account-flow-label-width: 52px;
    --account-flow-title-size: 15px;
    --account-flow-value-size: 15px;
  }

  .account-security-flow-page .account-page__main,
  .account-delete-page .account-page__main {
    padding-inline: var(--account-flow-side);
  }

  .security-helper,
  .binding-info-card__label {
    font-size: 14px;
  }

  .binding-info-card {
    padding: 24px 18px;
  }

  .binding-outline-button {
    min-width: 152px;
    padding-inline: 28px;
  }

  .account-unbind-dialog {
    padding: 34px 20px 24px;
  }

  .account-unbind-dialog p {
    margin-top: 28px;
    font-size: 15px;
  }

  .account-unbind-dialog__actions {
    gap: 12px;
    margin-top: 30px;
  }

  .delete-note-card {
    padding: 24px 18px;
  }

  .delete-note-card p {
    font-size: 15px;
  }

  .account-bottom-bar--dual {
    gap: 12px;
  }
}

.page-intro {
  margin-bottom: 18px;
}

.page-intro h1 {
  color: #1f2937;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.page-intro p {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.panel-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel-card--padded {
  padding: 18px 16px;
}

.address-card {
  padding: 18px 16px 14px;
}

.address-card__head,
.payment-card__head,
.coupon-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.address-card__head strong,
.payment-card__head strong,
.coupon-card__head strong {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.address-card__phone,
.payment-card__meta,
.coupon-card__meta {
  color: #536171;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 138, 84, 0.1);
  color: #0c6c43;
  font-size: 12px;
  font-weight: 700;
}

.address-card__body {
  margin-top: 12px;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.card-actions a,
.card-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.card-actions .is-primary {
  border-color: rgba(15, 138, 84, 0.2);
  color: #0f8a54;
  background: rgba(15, 138, 84, 0.06);
}

.card-actions .is-danger {
  color: #ef4444;
}

.mini-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.mini-action.is-primary {
  border-color: rgba(15, 138, 84, 0.2);
  color: #0f8a54;
  background: rgba(15, 138, 84, 0.06);
}

.mini-action.is-danger {
  color: #ef4444;
}

.form-section {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.form-field label {
  color: #536171;
  font-size: 12px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  line-height: 1.6;
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

.toggle-row,
.security-row,
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 16px;
}

.toggle-row + .toggle-row,
.security-row + .security-row,
.service-row + .service-row {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.toggle-row__meta strong,
.security-row__meta strong,
.service-row__meta strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}

.toggle-row__meta p,
.security-row__meta p,
.service-row__meta p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.chevron-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.chevron-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.switch {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d3d9e2;
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.switch.is-on {
  background: #0f8a54;
}

.switch.is-on::after {
  transform: translateX(18px);
}

.fixed-submit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 15px calc(10px + var(--safe-bottom));
  background: rgba(240, 241, 243, 0.9);
  backdrop-filter: blur(10px);
}

.fixed-submit__inner {
  width: 100%;
  min-height: var(--h5-primary-button-height);
  border: 0;
  border-radius: var(--h5-primary-button-radius);
  background: linear-gradient(135deg, #0f8a54 0%, #0c6c43 100%);
  color: #fff;
  font-size: var(--h5-primary-button-size);
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(15, 138, 84, 0.12);
}

.coupon-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.coupon-tabs::-webkit-scrollbar {
  display: none;
}

.coupon-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e7ebef;
  color: #536171;
  font-size: 13px;
  font-weight: 700;
}

.coupon-tab.is-active {
  background: #0f8a54;
  color: #fff;
}

.coupon-panel {
  display: none;
}

.coupon-panel.is-active {
  display: grid;
}

.coupon-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 16px;
}

.coupon-card__value {
  color: #0f8a54;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.coupon-card__value small {
  font-size: 14px;
  font-weight: 700;
}

.coupon-card__body h2 {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.coupon-card__body p {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.payment-card {
  padding: 18px 16px;
}

.payment-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f5f7f9;
}

.payment-card__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.payment-card__head {
  justify-content: flex-start;
}

.payment-card__head > div:last-child {
  flex: 1;
  min-width: 0;
}

.payment-card__meta {
  display: block;
  margin-top: 4px;
}

.payment-default {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #0f8a54;
  font-size: 13px;
  font-weight: 700;
}

.payment-default::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
  background: #0f8a54;
  border: 1px solid rgba(15, 138, 84, 0.2);
}

.danger-card {
  padding: 18px 16px;
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 20px;
  background: #fff5f5;
}

.danger-card h2 {
  color: #b91c1c;
  font-size: 18px;
  font-weight: 700;
}

.danger-card p,
.danger-card li {
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.7;
}

.danger-card ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 18px;
}

@media (max-width: 359px) {
  .coupon-card {
    grid-template-columns: 1fr;
  }
}

body.address-page,
body.address-edit-page {
  background: #f0f1f3;
}

.address-page .account-page,
.address-edit-page .account-page {
  background: #f0f1f3;
}

.address-shell,
.address-edit-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.address-page .sub-header,
.address-edit-page .sub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 241, 243, 0.98);
  box-shadow: none;
}

.address-page .sub-header__back,
.address-edit-page .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: transparent;
  font-size: 0;
}

.address-page .sub-header__back::before,
.address-edit-page .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.address-page__main,
.address-edit-page__main {
  padding: 12px 15px calc(96px + var(--safe-bottom));
}

.address-list {
  display: grid;
  gap: 12px;
}

.address-item {
  padding: 18px 20px 16px;
  border-radius: 8px;
  background: #fff;
}

.address-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.address-item__head strong,
.address-item__phone {
  color: #2f2f30;
  font-size: 17px;
  line-height: 1.25;
}

.address-item__head strong {
  font-weight: 600;
}

.address-item__phone {
  font-weight: 500;
}

.address-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 5px;
  background: #fff1ea;
  color: #ff6a39;
  font-size: 12px;
  line-height: 1;
}

.address-item__body {
  margin-top: 14px;
  color: #676b71;
  font-size: 14px;
  line-height: 1.5;
}

.address-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.address-default-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a9afb7;
  font-size: 14px;
  line-height: 1.2;
  background: transparent;
}

.address-default-toggle__icon {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1.5px solid #d4d6da;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

.address-default-toggle.is-active {
  color: #8f959d;
}

.address-default-toggle.is-active .address-default-toggle__icon {
  border-color: #006843;
  background: #006843;
}

.address-default-toggle.is-active .address-default-toggle__icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.address-item__actions-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.address-item__actions-right a,
.address-item__actions-right button {
  position: relative;
  color: #006843;
  font-size: 15px;
  line-height: 1.2;
  background: transparent;
}

.address-item__actions-right button {
  padding-left: 22px;
}

.address-item__actions-right button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 1px;
  height: 18px;
  background: #e8eaed;
}

.address-submit-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-edit-tip,
.address-edit-form,
.address-default-card {
  border-radius: 8px;
  background: #fff;
}

.address-edit-tip {
  min-height: 96px;
  padding: 18px 20px 14px;
}

.address-edit-tip p {
  color: #b1b8c1;
  font-size: 13px;
  line-height: 1.6;
}

.address-edit-form,
.address-default-card {
  margin-top: 12px;
}

.address-edit-form {
  padding: 0 20px;
}

.address-edit-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  gap: 8px;
}

.address-edit-row + .address-edit-row {
  border-top: 1px solid #eef0f2;
}

.address-edit-row > span {
  color: #2f2f30;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}

.address-edit-row input,
.address-edit-row select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #2f2f30;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  appearance: none;
}

.address-edit-row input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-edit-row input::placeholder {
  color: #b1b8c1;
}

.address-edit-row select:invalid {
  color: #b1b8c1;
}

.address-edit-row--select select {
  padding-right: 16px;
}

.address-edit-row__chevron {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #2f2f30;
  border-right: 1.5px solid #2f2f30;
  transform: rotate(45deg);
}

.address-default-card {
  padding: 0 20px;
}

.address-default-radio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  color: #2f2f30;
  font-size: 16px;
  line-height: 1.25;
  background: transparent;
}

.address-default-radio__icon {
  width: 20px;
  height: 20px;
  border: 1.5px solid #d4d6da;
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff;
}

.address-default-radio.is-on .address-default-radio__icon {
  border-color: #006843;
  box-shadow: inset 0 0 0 4px #fff;
  background: #006843;
}

@media (max-width: 359px) {
  .address-page__main,
  .address-edit-page__main {
    padding-inline: 16px;
  }

  .address-item {
    padding: 18px 18px 16px;
  }

  .address-item__head strong,
  .address-item__phone {
    font-size: 16px;
  }

  .address-item__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .address-item__actions-right {
    width: 100%;
    justify-content: flex-end;
  }

  .address-edit-tip {
    min-height: 88px;
    padding: 16px 18px 12px;
  }

  .address-edit-form {
    padding: 0 18px;
  }

  .address-edit-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    min-height: 48px;
  }

  .address-edit-row > span,
  .address-edit-row input,
  .address-edit-row select,
  .address-default-radio {
    font-size: 15px;
  }

  .address-default-card {
    padding: 0 18px;
  }

  .address-default-radio {
    min-height: 48px;
    gap: 10px;
  }
}

body.payment-page,
body.payment-add-page {
  background: #f0f1f3;
}

.payment-page .account-page,
.payment-add-page .account-page {
  background: #f0f1f3;
}

.payment-shell,
.payment-add-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.payment-page .sub-header,
.payment-add-page .sub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 241, 243, 0.98);
  box-shadow: none;
}

.payment-page .sub-header {
  grid-template-columns: 48px 1fr 112px;
}

.payment-page .sub-header__back,
.payment-add-page .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: transparent;
  font-size: 0;
}

.payment-page .sub-header__back::before,
.payment-add-page .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.payment-header-action {
  justify-self: end;
  color: #2f2f30;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.payment-page__main {
  padding: 12px 15px 24px;
}

.payment-list {
  display: grid;
  gap: 12px;
}

.payment-item {
  padding: 18px 20px 16px;
  border-radius: 8px;
  background: #fff;
}

.payment-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-item__head strong,
.payment-item__phone {
  color: #2f2f30;
  font-size: 17px;
  line-height: 1.25;
}

.payment-item__head strong {
  font-weight: 600;
}

.payment-item__phone {
  font-weight: 500;
}

.payment-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 5px;
  background: #fff1ea;
  color: #ff6a39;
  font-size: 12px;
  line-height: 1;
}

.payment-item__body {
  margin-top: 14px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.48;
}

.payment-item__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.payment-item__info span,
.payment-item__info strong {
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.payment-item__info span {
  color: #7a8088;
}

.payment-item__info strong {
  color: #2f2f30;
  font-weight: 500;
  text-align: right;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.payment-default-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a9afb7;
  font-size: 14px;
  line-height: 1.2;
  background: transparent;
}

.payment-default-toggle__icon {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1.5px solid #d4d6da;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

.payment-default-toggle.is-active {
  color: #8f959d;
}

.payment-default-toggle.is-active .payment-default-toggle__icon {
  border-color: #006843;
  background: #006843;
}

.payment-default-toggle.is-active .payment-default-toggle__icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.payment-item__actions-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.payment-item__actions-right a,
.payment-item__actions-right button {
  position: relative;
  color: #006843;
  font-size: 15px;
  line-height: 1.2;
  background: transparent;
}

.payment-item__actions-right button {
  padding-left: 22px;
}

.payment-item__actions-right button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 1px;
  height: 18px;
  background: #e8eaed;
}

.payment-add-page__main {
  padding: 12px 15px calc(96px + var(--safe-bottom));
}

.payment-add-form {
  padding: 0 20px;
  border-radius: 8px;
  background: #fff;
}

.payment-add-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  gap: 8px;
}

.payment-add-row + .payment-add-row {
  border-top: 1px solid #eef0f2;
}

.payment-add-row > span {
  color: #2f2f30;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}

.payment-add-row input,
.payment-add-row select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #2f2f30;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  appearance: none;
}

.payment-add-row input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-edit-row select,
.payment-add-row select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-add-row input::placeholder {
  color: #b1b8c1;
}

.payment-add-row select:invalid {
  color: #b1b8c1;
}

.payment-add-row--select select {
  padding-right: 16px;
}

.payment-add-row__chevron {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #2f2f30;
  border-right: 1.5px solid #2f2f30;
  transform: rotate(45deg);
}

@media (max-width: 359px) {
  .payment-page__main,
  .payment-add-page__main {
    padding-inline: 16px;
  }

  .payment-page .sub-header {
    grid-template-columns: 48px 1fr 92px;
  }

  .payment-header-action {
    font-size: 12px;
  }

  .payment-item {
    padding: 18px 18px 16px;
  }

  .payment-item__head strong,
  .payment-item__phone {
    font-size: 16px;
  }

  .payment-item__info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 14px;
  }

  .payment-item__info strong {
    text-align: left;
    max-width: none;
  }

  .payment-item__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .payment-item__actions-right {
    width: 100%;
    justify-content: flex-end;
  }

  .payment-add-form {
    padding: 0 18px;
  }

  .payment-add-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    min-height: 48px;
  }

  .payment-add-row > span,
  .payment-add-row input,
  .payment-add-row select {
    font-size: 15px;
  }
}
