/* Aceplan 全屏簽名 */
#identityConfirmationModal .signature-pad--body { border: 1.5px dashed #e2d6b0 !important; border-radius: 14px !important; background: #fffdf6; overflow: hidden; }
#identityConfirmationModal .signature-pad--body canvas { display: block; max-width: 100%; touch-action: none; }
#identityConfirmationModal .dispay-block, #identityConfirmationModal .display-block { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ap-esign-open {
  display: inline-flex !important; align-items: center; gap: 8px; margin-left: auto;
  background: linear-gradient(135deg, #fde047, #facc15 45%, #eab308) !important; border: 0 !important; color: #0a0a0a !important;
  font-weight: 700; border-radius: 999px !important; padding: 7px 16px !important; box-shadow: 0 8px 18px -10px rgb(234 179 8 / .9);
}
.ap-esign-note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: 13px; font-weight: 600; }
html.ap-esign-lock, html.ap-esign-lock body { overflow: hidden !important; overscroll-behavior: none; }

.ap-esign {
  position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column;
  background: radial-gradient(900px 400px at 100% -10%, rgb(250 204 21 / .22), transparent 60%), linear-gradient(180deg, #fbf8f0, #f3eedf);
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  font-family: inherit; color: #18181b;
}
.ap-esign[hidden] { display: none !important; }
.ap-esign__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; }
.ap-esign__title { display: flex; flex-direction: column; min-width: 0; }
.ap-esign__title strong { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.ap-esign__title strong::before { content: ""; width: 5px; height: 18px; border-radius: 999px; background: linear-gradient(135deg, #fde047, #eab308); }
.ap-esign__title span { font-size: 12.5px; color: #71717a; margin-top: 2px; }
.ap-esign__tools { display: flex; gap: 8px; flex: none; }
.ap-esign__btn {
  height: 38px; min-width: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #e4e4e7; background: #fff; color: #18181b;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13px;
}
.ap-esign__btn:active { transform: translateY(1px); }
.ap-esign__close { padding: 0; width: 38px; background: #0a0a0a; border-color: #0a0a0a; color: #facc15; }
.ap-esign__stage {
  position: relative; flex: 1 1 auto; min-height: 0; background: #fff; border-radius: 20px;
  box-shadow: 0 0 0 1px #ece8dc, 0 20px 50px -30px rgb(10 10 10 / .45); overflow: hidden; touch-action: none;
}
.ap-esign__stage canvas { position: absolute; inset: 0; display: block; touch-action: none; cursor: crosshair; z-index: 2; }
.ap-esign__line { position: absolute; left: 6%; right: 6%; bottom: 26%; border-bottom: 2px solid #e8dfc4; z-index: 1; pointer-events: none; }
.ap-esign__line b { position: absolute; left: 0; bottom: 6px; color: #d6c58f; font-size: 20px; font-weight: 700; }
.ap-esign__rotate { display: none; position: absolute; left: 0; right: 0; top: 14px; text-align: center; font-size: 12.5px; color: #a1a1aa; z-index: 1; pointer-events: none; margin: 0; }
.ap-esign.is-rotated { inset: auto; transform-origin: top left; transform: rotate(90deg);
  padding: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)); }
.ap-esign.is-rotated .ap-esign__rotate { display: block; }
.ap-esign__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 12px; }
.ap-esign__msg { margin-right: auto; color: #dc2626; font-weight: 700; font-size: 13px; }
.ap-esign__ghost { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #e4e4e7; background: #fff; font-weight: 600; color: #3f3f46; }
.ap-esign__done {
  height: 44px; padding: 0 24px; border-radius: 999px; border: 0; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #2a2a2e, #0a0a0a); color: #facc15; font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 22px -12px rgb(10 10 10 / .8);
}
.ap-esign.shake .ap-esign__stage { animation: ap-esign-shake .35s; }
@keyframes ap-esign-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 480px) and (orientation: landscape), (max-height: 480px) and (orientation: landscape) {
  .ap-esign__btn span { display: none; }
  .ap-esign__btn { padding: 0; width: 38px; }
  .ap-esign__ghost { display: none; }
  .ap-esign__done { flex: 1; justify-content: center; }
}
