.kp-legacy-checkout__wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--kp-space-4);
}

.kp-legacy-checkout__settings-auth-list {
  display: grid;
  gap: 22px;
}

.kp-legacy-checkout__settings-auth-item {
  display: grid;
  gap: 14px;
}

.kp-legacy-checkout__settings-auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kp-legacy-checkout__settings-auth-copy {
  display: grid;
  gap: 8px;
}

.kp-legacy-checkout__settings-auth-copy h4 {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-auth-copy p {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-inline-state,
.kp-legacy-checkout__settings-inline-link {
  color: var(--kp-button-color);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-inline-link--verified {
  text-decoration: underline;
}

.kp-legacy-checkout__settings-inline-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 8px;
}

.kp-legacy-checkout__settings-inline-dot {
  color: var(--kp-muted-color);
  font-size: 13px;
  line-height: 1;
}

.kp-legacy-checkout__settings-inline-action,
.kp-legacy-checkout__settings-inline-change {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--kp-button-color);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.kp-legacy-checkout__settings-inline-change {
  flex-shrink: 0;
}

.kp-legacy-checkout__settings-code-target {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-alert-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--kp-input-color);
}

.kp-legacy-checkout__settings-alert-strip p {
  margin: 0;
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--kp-text-color);
  border-radius: 50%;
  color: var(--kp-text-color);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.kp-legacy-checkout__settings-device-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kp-legacy-checkout__settings-device-icon {
  position: relative;
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  border: 2px solid var(--kp-text-color);
  border-radius: 2px;
}

.kp-legacy-checkout__settings-device-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -6px;
  height: 2px;
  background: var(--kp-text-color);
}

.kp-legacy-checkout__settings-device-copy {
  display: grid;
  gap: 4px;
}

.kp-legacy-checkout__settings-device-copy strong {
  color: var(--kp-text-color);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-device-copy span {
  color: var(--kp-text-color);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 300;
  font-family: "PPRadioGrotesk-Light", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__settings-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kp-legacy-checkout__settings-subhead strong {
  color: var(--kp-text-color);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  font-family: "PPRadioGrotesk-Bold", "Helvetica Neue", Arial, sans-serif;
}

.kp-legacy-checkout__wallet-card {
  display: grid;
  gap: var(--kp-space-4);
  padding: 1.15rem;
  border: 1px solid var(--kp-border-color);
  border-radius: 18px;
  background: #fbfbfd;
}

.kp-legacy-checkout__wallet-card--full {
  grid-column: 1 / -1;
}

.kp-legacy-checkout__wallet-card--danger {
  background: #fff7f6;
  border-color: rgba(217, 48, 37, 0.18);
}

.kp-legacy-checkout__wallet-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--kp-space-4);
}

.kp-legacy-checkout__wallet-card-head h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.kp-legacy-checkout__wallet-form {
  display: grid;
  gap: var(--kp-space-4);
}

.kp-legacy-checkout__settings-form-stack {
  display: grid;
  gap: 18px;
  max-width: 100%;
}

.kp-legacy-checkout__wallet-actions,
.kp-legacy-checkout__wallet-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kp-space-3);
}

.kp-legacy-checkout__wallet-device {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--kp-border-color);
}

.kp-legacy-checkout__wallet-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kp-space-4);
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--kp-border-color);
}

.kp-legacy-checkout__wallet-toggle span {
  display: grid;
  gap: 0.25rem;
}

.kp-legacy-checkout__wallet-toggle small {
  color: var(--kp-muted-color);
}

.kp-legacy-checkout__wallet-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.kp-legacy-checkout__wallet-review-list {
  display: grid;
  gap: var(--kp-space-3);
}

.kp-legacy-checkout__wallet-methods {
  display: grid;
  gap: var(--kp-space-3);
}

.kp-legacy-checkout__wallet-method {
  display: grid;
  gap: var(--kp-space-3);
  padding: 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--kp-border-color);
}

.kp-legacy-checkout__wallet-method-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--kp-space-4);
}

.kp-legacy-checkout__wallet-method-head h5 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.kp-legacy-checkout__wallet-method-head p {
  margin: 0;
  color: var(--kp-muted-color);
}

.kp-legacy-checkout__wallet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.kp-legacy-checkout__wallet-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(19, 115, 51, 0.1);
  color: var(--kp-success-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kp-legacy-checkout__wallet-badge--default {
  background: rgba(145, 23, 242, 0.1);
  color: var(--kp-button-color);
}

.kp-legacy-checkout__wallet-badge--muted {
  background: rgba(17, 24, 39, 0.08);
  color: var(--kp-muted-color);
}

.kp-legacy-checkout__wallet-inline-panel {
  display: grid;
  gap: var(--kp-space-3);
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed var(--kp-border-color);
  background: rgba(255, 255, 255, 0.72);
}

.kp-legacy-checkout__wallet-form--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kp-legacy-checkout__settings-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.kp-legacy-checkout__wallet-otp {
  display: grid;
  gap: var(--kp-space-3);
  padding-top: var(--kp-space-2);
  border-top: 1px solid var(--kp-border-color);
}

.kp-legacy-checkout__wallet-session-list {
  display: grid;
  gap: var(--kp-space-3);
}

.kp-legacy-checkout__wallet-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kp-space-4);
  padding: 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--kp-border-color);
}

.kp-legacy-checkout__wallet-session-check {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--kp-muted-color);
  font-size: 0.92rem;
  font-weight: 600;
}

.kp-legacy-checkout__wallet-session-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.kp-legacy-checkout__wallet-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kp-space-4);
  padding: 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--kp-border-color);
}

.kp-legacy-checkout__wallet-review-copy {
  display: grid;
  gap: 0.3rem;
}

.kp-legacy-checkout__wallet-review-copy strong,
.kp-legacy-checkout__wallet-device strong {
  line-height: 1.3;
}

.kp-legacy-checkout__wallet-review-copy span {
  color: var(--kp-muted-color);
  font-size: 0.92rem;
}

.kp-legacy-checkout__wallet-form .kp-legacy-checkout__input.is-error {
  border-color: var(--kp-error-color);
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.12);
}

.kp-legacy-checkout__settings-toggle-card .kp-legacy-checkout__wallet-toggle {
  flex-shrink: 0;
}

.kp-legacy-checkout__settings-panel .kp-legacy-checkout__wallet-grid {
  margin: 0;
}

@media (max-width: 900px) {
  .kp-legacy-checkout__wallet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .kp-legacy-checkout__settings-auth-head,
  .kp-legacy-checkout__wallet-card-head,
  .kp-legacy-checkout__wallet-method-head,
  .kp-legacy-checkout__wallet-session-item,
  .kp-legacy-checkout__wallet-review-item,
  .kp-legacy-checkout__settings-device-strip,
  .kp-legacy-checkout__settings-subhead,
  .kp-legacy-checkout__wallet-toggle,
  .kp-legacy-checkout__settings-card-button,
  .kp-legacy-checkout__settings-row-button,
  .kp-legacy-checkout__settings-toggle-card {
    flex-direction: column;
    align-items: stretch;
  }

  .kp-legacy-checkout__wallet-form--inline {
    grid-template-columns: 1fr;
  }

  .kp-legacy-checkout__wallet-actions,
  .kp-legacy-checkout__wallet-inline-actions,
  .kp-legacy-checkout__settings-confirm-actions {
    flex-direction: column;
  }

  .kp-legacy-checkout__settings-confirm-actions .kp-legacy-checkout__button {
    min-width: 0;
    width: 100%;
  }
}
