/* Toast + voice buddy styles for standalone pay pages (no full style.css). */
:root {
  --surface: #ffffff;
  --text: #12202a;
  --muted: #5a6d7a;
  --line: rgba(18, 50, 70, 0.12);
  --mint: #0a8f6c;
  --shadow: 0 8px 28px rgba(15, 40, 55, 0.12);
}

.libotp-notify-stack {
  position: fixed;
  top: calc(var(--pay-safe-top, 0px) + 0.65rem);
  right: max(0.7rem, env(safe-area-inset-right, 0px));
  left: auto;
  transform: none;
  z-index: 12080;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  width: min(320px, calc(100vw - 1.4rem));
  pointer-events: none;
}

.libotp-notify {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  max-width: 320px;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 40, 55, 0.16);
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.libotp-notify.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.libotp-notify__bar {
  width: 4px;
  align-self: stretch;
  min-height: 2.2rem;
  border-radius: 0 4px 4px 0;
  background: #7ad7ff;
}

.libotp-notify--ok .libotp-notify__bar {
  background: var(--mint);
}

.libotp-notify--error .libotp-notify__bar {
  background: #f87171;
}

.libotp-notify--info .libotp-notify__bar {
  background: #7ad7ff;
}

.libotp-notify__body {
  min-width: 0;
  padding: 0.05rem 0;
}

.libotp-notify__body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  line-height: 1.25;
}

.libotp-notify__body p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.libotp-notify__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  opacity: 0.75;
}

.libotp-buddy {
  position: fixed;
  left: 0.85rem;
  bottom: calc(5.5rem + var(--pay-safe-bottom, 0px));
  z-index: 10070;
  width: 86px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(28px) scale(0.7);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.libotp-buddy.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.libotp-buddy.is-hiding,
.libotp-buddy.is-gone {
  opacity: 0;
  transform: translateY(18px) scale(0.55);
}

.libotp-buddy__bubble {
  max-width: 150px;
  padding: 0.35rem 0.5rem;
  border-radius: 10px 10px 10px 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.libotp-buddy__bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.libotp-buddy__figure {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.libotp-buddy.is-talking .libotp-buddy__figure {
  animation: libotp-buddy-bounce 0.55s ease-in-out infinite;
}

@keyframes libotp-buddy-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.save-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(10, 143, 108, 0.35);
  background: linear-gradient(135deg, #e7f8f1 0%, #f0faf6 100%);
  box-shadow: 0 4px 16px rgba(10, 143, 108, 0.12);
}

.save-banner__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.save-banner__text strong {
  display: block;
  font-size: 0.95rem;
  color: #0a5c45;
  margin-bottom: 0.2rem;
}

.save-banner__text span {
  display: block;
  font-size: 0.82rem;
  color: #3d6b5c;
  line-height: 1.45;
}
