/* Passkey sign-in for the customer portal. Uses the portal's own colour tokens. */
.yatoon-pk-signin { margin: 4px 0 0; }
.yatoon-pk-signin .yatoon-pk-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.yatoon-pk-signin .yatoon-pk-login svg,
.yatoon-pk-badge svg { flex: 0 0 auto; display: block; }
.yatoon-pk-hint {
  margin: 8px 0 0;
  color: var(--portal-muted, #6b7280);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.yatoon-pk-signin .sbs-portal-login-divider { margin-top: 14px; }

.yatoon-pk-prompt,
.yatoon-pk-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--portal-border, #f0e6ee);
  border-radius: var(--portal-radius, 14px);
  background: var(--portal-upcoming, #fdf4ff);
  color: inherit;
  text-align: right;
}
.yatoon-pk-prompt { margin: 0 0 16px; }
.yatoon-pk-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--portal-primary, #ec4899);
  color: #fff;
}
.yatoon-pk-text { display: grid; gap: 4px; min-width: 0; }
.yatoon-pk-text strong { font-size: 15px; line-height: 1.3; }
.yatoon-pk-text > span:not(.sbs-portal-msg) { color: var(--portal-muted, #6b7280); font-size: 13px; line-height: 1.45; }
.yatoon-pk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.yatoon-pk-actions[hidden] { display: none !important; }
.yatoon-pk-text .sbs-portal-msg { margin: 2px 0 0; font-size: 13px; }
.yatoon-pk-text .sbs-portal-msg:empty { display: none; }

/* The offer after sign-in sits outside the portal card, so it carries its own button styles. */
.yatoon-pk-toast {
  position: fixed;
  right: 12px;
  left: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 99990;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.22);
}
.yatoon-pk-toast .yatoon-pk-actions button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.yatoon-pk-toast .yatoon-pk-add { border: 1px solid var(--portal-primary, #ec4899); background: var(--portal-primary, #ec4899); color: #fff; }
.yatoon-pk-toast .yatoon-pk-dismiss { border: 1px solid #d1d5db; background: transparent; color: #4b5563; }
.yatoon-pk-toast .sbs-portal-msg.success { color: #047857; font-weight: 600; }
.yatoon-pk-toast .sbs-portal-msg.error { color: #b91c1c; }

.yatoon-pk-section {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--portal-border, #f0e6ee);
}
.yatoon-pk-section h4 { margin: 0 0 4px; font-size: 16px; }
.yatoon-pk-section .yatoon-pk-hint { margin: 0 0 12px; text-align: right; }
.yatoon-pk-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.yatoon-pk-list:empty { display: none; }
.yatoon-pk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--portal-border, #f0e6ee);
  border-radius: 12px;
  background: var(--portal-bg, #fff);
}
.yatoon-pk-info { display: grid; gap: 2px; min-width: 0; }
.yatoon-pk-info strong { font-size: 14px; }
.yatoon-pk-info span { color: var(--portal-muted, #6b7280); font-size: 12px; }
.yatoon-pk-remove {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--portal-border, #f0e6ee);
  border-radius: 999px;
  background: transparent;
  color: var(--portal-danger, #ef4444);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.yatoon-pk-remove[data-confirm="1"] { background: var(--portal-danger, #ef4444); border-color: var(--portal-danger, #ef4444); color: #fff; }
.yatoon-pk-remove:disabled,
.yatoon-pk-add:disabled,
.yatoon-pk-login:disabled { opacity: 0.6; cursor: default; }
