.customer-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.customer-pin-reset-button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #e4c992;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #815713;
  background: #fff9ed;
  font-size: 8px;
  font-weight: 850;
}

.customer-pin-reset-button:hover,
.customer-pin-reset-button:focus-visible {
  border-color: #b78930;
  background: #fff3d9;
}

.customer-pin-reset-button svg,
.pin-reset-modal svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.pin-reset-open { overflow: hidden; }

.pin-reset-modal {
  z-index: 150;
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 30, 4, 0.75);
  backdrop-filter: blur(8px);
}

.pin-reset-dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 27px;
  border: 1px solid #d9e4d8;
  border-radius: 26px;
  color: #18221b;
  background: #fffefa;
  box-shadow: 0 35px 90px rgba(1, 30, 2, 0.38);
}

.pin-reset-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 1px solid #d9e4d8;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #18221b;
  background: #fff;
}

.pin-reset-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-right: 44px;
}

.pin-reset-heading > span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #815713;
  background: #fff0cf;
}

.pin-reset-heading > span svg { width: 21px; height: 21px; }
.pin-reset-heading p,
.pin-reset-success > p {
  margin: 0 0 4px;
  color: #025100;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pin-reset-heading h2,
.pin-reset-success h2 {
  margin: 0;
  font: 600 26px Georgia, serif;
}

.pin-reset-customer {
  margin: 22px 0 19px;
  padding: 14px 15px;
  border: 1px solid #d9e4d8;
  border-radius: 14px;
  background: #f7faf5;
}

.pin-reset-customer span,
.pin-reset-customer strong,
.pin-reset-customer small { display: block; }
.pin-reset-customer span { color: #7d8980; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pin-reset-customer strong { margin-top: 4px; font-size: 13px; }
.pin-reset-customer small { margin-top: 3px; color: #647168; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }

.pin-reset-form { display: flex; flex-direction: column; gap: 14px; }
.pin-reset-form label { display: flex; flex-direction: column; gap: 7px; color: #465249; font-size: 10px; font-weight: 800; }
.pin-reset-input {
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid #d9e4d8;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7d8980;
  background: #fff;
}
.pin-reset-input:focus-within { border-color: #025100; box-shadow: 0 0 0 3px rgba(2, 81, 0, .08); }
.pin-reset-input input { width: 100%; padding: 12px 0; border: 0; outline: 0; color: #18221b; background: transparent; letter-spacing: .2em; }
.pin-reset-reveal { align-self: flex-end; margin-top: -7px; padding: 5px 0; border: 0; display: inline-flex; align-items: center; gap: 6px; color: #025100; background: transparent; font-size: 9px; font-weight: 800; }
.pin-reset-reveal svg { width: 14px; height: 14px; }

.pin-reset-note {
  padding: 12px 13px;
  border-radius: 12px;
  color: #647168;
  background: #eef5ec;
  font-size: 9px;
  line-height: 1.55;
}

.pin-reset-error {
  padding: 11px 12px;
  border: 1px solid #efc7cc;
  border-radius: 11px;
  color: #a93d4c;
  background: #fff2f3;
  font-size: 10px;
  line-height: 1.45;
}

.pin-reset-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; margin-top: 2px; }
.pin-reset-actions button,
.pin-reset-finish { min-height: 46px; border-radius: 12px; font-size: 10px; font-weight: 850; }
.pin-reset-cancel { border: 1px solid #d9e4d8; color: #647168; background: #fff; }
.pin-reset-submit,
.pin-reset-finish { border: 0; color: #fff; background: #025100; }
.pin-reset-submit.loading::before { content: ""; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: pin-reset-spin .75s linear infinite; }
.pin-reset-submit { display: flex; align-items: center; justify-content: center; gap: 8px; }
@keyframes pin-reset-spin { to { transform: rotate(360deg); } }

.pin-reset-success { padding: 26px 5px 4px; text-align: center; }
.pin-reset-success-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #28764f; background: #e7f3eb; }
.pin-reset-success-icon svg { width: 29px; height: 29px; stroke-width: 2.4; }
.pin-reset-success > span:not(.pin-reset-success-icon) { display: block; margin: 11px auto 22px; max-width: 330px; color: #647168; font-size: 11px; line-height: 1.6; }
.pin-reset-finish { width: 100%; }

@media (max-width: 640px) {
  .customer-row-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .customer-row-actions .customer-open-button,
  .customer-pin-reset-button { width: 100%; min-height: 38px; }
  .pin-reset-dialog { padding: 23px 18px 20px; border-radius: 22px; }
  .pin-reset-heading h2 { font-size: 23px; }
  .pin-reset-actions { grid-template-columns: 1fr; }
  .pin-reset-cancel { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .pin-reset-submit.loading::before { animation-duration: 1.5s; }
}
