/* Shared d-you CTA with local Face ID and a touch-ready demo PIN keypad. */
.dyou-wallet-confirmation {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
}
.dy-body > .dyou-wallet-confirmation,
.wi-sheet > .dyou-wallet-confirmation { margin-top: auto; }

.dy-cta.dyou-wallet-confirm {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 94px;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #1f6fe0, #0fa5a0);
  color: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 0 0 7px #1f6fe047;
  animation: none;
  transition: none;
  opacity: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.dy-cta.dyou-wallet-confirm:active { transform: none; }
.dy-cta.dyou-wallet-confirm:disabled { cursor: default; opacity: 1; }
.dy-cta.dyou-wallet-confirm.is-scanning { cursor: progress; }
.dy-cta.dyou-wallet-confirm:focus-visible { outline: 4px solid #5c2679; outline-offset: 10px; }

/* The readable request keeps its real, method-neutral action at the wallet's
   lower edge. A single one-second gesture targets that same button. */
.dyou-wallet-review.is-tapping .dyou-wallet-release {
  box-shadow: 0 0 0 7px #0fa5a05c, 0 0 0 13px #1f6fe01f;
  cursor: progress;
}
.dyou-wallet-tap-hand {
  position: absolute;
  z-index: 24;
  left: calc(76% - 54px);
  bottom: calc(50% - 7px);
  display: block;
  width: 128px;
  height: 168px;
  overflow: visible;
  filter: drop-shadow(0 8px 7px #17334b40);
  pointer-events: none;
  transform-origin: 54px 160px;
  animation: dyou-wallet-finger-tap 1s ease-in-out both;
}
.dyou-wallet-tap-ring {
  position: absolute;
  z-index: 23;
  left: 76%;
  top: 50%;
  width: 62px;
  height: 62px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #0d62894d;
  pointer-events: none;
  animation: dyou-wallet-tap-ripple 1s ease-out both;
}
.dyou-wallet-tap-cancel {
  position: absolute;
  z-index: 25;
  left: 0;
  bottom: calc(100% + 18px);
  min-height: 58px;
  max-width: 50%;
  padding: 10px 22px;
  border: 2px solid #a9bdd3;
  border-radius: 16px;
  background: #fff;
  color: #263e56;
  box-shadow: 0 3px 10px #162a4b10;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  cursor: pointer;
}
.dyou-wallet-tap-cancel:focus-visible { outline: 4px solid #1676eb; outline-offset: 4px; }
.dyou-wallet-tap-cancel:disabled { opacity: .5; cursor: default; }

.dyou-pin-cancel {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 94px;
  padding: 18px;
  border: 2px solid #a9bdd3;
  border-radius: 22px;
  background: #fff;
  color: #263e56;
  font: inherit;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  touch-action: manipulation;
  cursor: pointer;
}
.dyou-pin-cancel:active:not(:disabled) { background: #eaf0f7; }
.dyou-pin-cancel:focus-visible { outline: 4px solid #1676eb; outline-offset: 4px; }
.dyou-pin-cancel:disabled { opacity: .5; cursor: default; }

.dyou-wallet-confirm-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dyou-wallet-confirm-icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; }

/* After the visible tap, Face ID scans automatically. PIN opens directly and
   advances after the sixth digit. Both panels keep cancellation available. */
.dyou-face-id-panel,
.dyou-pin-panel {
  box-sizing: border-box;
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 294px;
  max-width: 100%;
  min-height: 254px;
  padding: 24px 24px 22px;
  border: 1px solid #dce3ec;
  border-radius: 34px;
  background: #f8f9fc;
  box-shadow: 0 18px 54px #162a4b30, 0 2px 8px #162a4b12;
  color: #17202c;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  animation: dyou-face-id-appear .18s ease-out both;
}

.dyou-pin-panel { width: 440px; min-height: 312px; pointer-events: auto; }
.dyou-pin-symbol { display: block; width: 54px; height: 54px; flex: 0 0 54px; color: #1676eb; }
/* Screenshot-based wallet sheets start below the status bar and clip overflow.
   Keep the complete PIN panel inside them without reducing touch key sizes. */
.wi-sheet .dyou-pin-panel { padding-top: 10px; padding-bottom: 12px; }
.wi-sheet .dyou-pin-symbol { width: 44px; height: 44px; flex-basis: 44px; }
.dyou-pin-title { margin-top: 10px; font-size: 28px; font-weight: 600; line-height: 1.2; }
.dyou-pin-hint { margin: 10px 0 16px; color: #626c7b; font-size: 21px; line-height: 1.35; }
.dyou-pin-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 80px;
  padding: 10px 10px 10px 21px;
  border: 2px solid #a6b6c9;
  border-radius: 16px;
  background: #fff;
  color: #17202c;
  font: inherit;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 11px;
  text-align: center;
  caret-color: #1676eb;
  appearance: none;
}
.dyou-pin-input:focus { border-color: #1676eb; outline: 3px solid #1676eb38; outline-offset: 3px; }
.dyou-pin-input[readonly] { cursor: default; }
.dyou-pin-caption { margin-top: 14px; color: #626c7b; font-size: 21px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dyou-pin-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 16px; }
.dyou-pin-key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #ccd8e7;
  border-radius: 20px;
  background: #fff;
  color: #173c58;
  box-shadow: 0 2px 3px #162a4b0d;
  font: inherit;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  cursor: pointer;
}
.dyou-pin-key:active:not(:disabled) { background: #dcecff; border-color: #1676eb; }
.dyou-pin-key:focus-visible { outline: 4px solid #1676eb; outline-offset: 3px; }
.dyou-pin-key:disabled { opacity: .5; cursor: default; box-shadow: none; }
.dyou-pin-delete { background: #eaf0f7; }
.dyou-pin-delete svg { display: block; width: 42px; height: 42px; }
[data-confirmation-state="confirmed"] .dyou-pin-symbol,
[data-confirmation-state="confirmed"] .dyou-pin-caption { color: #12866b; }
[data-confirmation-state="confirmed"] .dyou-pin-input { border-color: #12866b; color: #12866b; background: #f0faf6; }
.dyou-wallet-confirmation.is-confirmation-paused * { animation-play-state: paused !important; }

.dyou-face-id-symbol {
  display: block;
  width: 128px;
  max-width: 100%;
  height: 128px;
  flex: 0 0 128px;
  color: #1676eb;
}
.dyou-face-id-frame,
.dyou-face-id-face { opacity: 1; transition: opacity .15s ease; }
.dyou-face-id-frame { transform-origin: 48px 48px; }
.dyou-face-id-success { opacity: 0; color: #12866b; }
.dyou-face-id-ring { stroke-width: 2.6; }
.dyou-face-id-check { stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dyou-face-id-title {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.dyou-face-id-caption {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #626c7b;
}

[data-confirmation-state="scanning"] .dyou-face-id-frame {
  animation: dyou-face-id-recognize 1.2s ease-in-out both;
}
[data-confirmation-state="confirmed"] .dyou-face-id-frame,
[data-confirmation-state="confirmed"] .dyou-face-id-face { opacity: 0; }
[data-confirmation-state="confirmed"] .dyou-face-id-success {
  opacity: 1;
  transition: opacity .15s ease;
}
[data-confirmation-state="confirmed"] .dyou-face-id-check {
  animation: dyou-face-id-check .24s ease-out both;
}
[data-confirmation-state="confirmed"] .dyou-face-id-caption { color: #12866b; }

.dyou-wallet-confirm-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes dyou-face-id-appear {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes dyou-face-id-recognize {
  0%, 100% { opacity: 1; transform: scale(1); }
  28%, 70% { opacity: .48; transform: scale(.94); }
  48%, 88% { opacity: 1; transform: scale(1.025); }
}
@keyframes dyou-face-id-check {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes dyou-wallet-finger-tap {
  0% { opacity: 0; transform: translate(54px, -66px) rotate(12deg); }
  20% { opacity: 1; }
  42% { opacity: 1; transform: translate(0, -17px) rotate(-5deg); }
  58%, 66% { opacity: 1; transform: translate(0, 3px) rotate(-5deg); }
  88% { opacity: 1; transform: translate(8px, -22px) rotate(-2deg); }
  100% { opacity: 0; transform: translate(22px, -36px) rotate(4deg); }
}
@keyframes dyou-wallet-tap-ripple {
  0%, 45% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  57% { opacity: 1; transform: translate(-50%, -50%) scale(.65); }
  90%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .dyou-wallet-tap-hand { display: none; animation: none; }
  .dyou-wallet-tap-ring {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  .dyou-face-id-panel,
  .dyou-pin-panel,
  [data-confirmation-state="scanning"] .dyou-face-id-frame,
  [data-confirmation-state="confirmed"] .dyou-face-id-check { animation: none; }
  .dyou-face-id-frame,
  .dyou-face-id-face,
  [data-confirmation-state="confirmed"] .dyou-face-id-success { transition: none; }
}
