/* Cards under Mona's bubbles, and the two full-screen sheets they open. */

.card {
  align-self: flex-start;
  max-width: 82%;
  width: 300px;
  background: var(--wa-in);
  border-radius: 8px;
  padding: 8px 8px 9px;
  box-shadow: 0 1px .5px rgba(11,20,26,.13);
  animation: pop .16s ease-out;
}
.card-url {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--wa-muted);
  margin-bottom: 4px;
}
.card-url svg { width: 12px; height: 12px; fill: var(--wa-green); flex-shrink: 0; }
.card-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.card-body { font-size: 13px; color: #54656f; line-height: 1.35; margin: 3px 0 8px; }
.card-btn {
  width: 100%;
  border: 0; border-radius: 6px;
  background: var(--wa-green); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card-btn:active { background: var(--wa-green-dark); }
.card.done .card-btn { background: #e9edef; color: #54656f; cursor: default; }
.card.done .card-btn::before { content: "\2713  "; }

.event {
  align-self: center;
  background: #fff;
  color: #54656f;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 8px;
  margin: 4px 0;
  text-align: center;
  box-shadow: 0 1px .5px rgba(11,20,26,.13);
  display: flex; align-items: center; gap: 6px;
  animation: pop .16s ease-out;
}
.event svg { width: 13px; height: 13px; fill: var(--wa-green); flex-shrink: 0; }

/* Sheets: a fake in-app browser page inside the phone frame. */
.page {
  position: absolute; inset: 0;
  background: #f5f6f8;
  z-index: 20;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page.open { display: flex; }
.page .bar {
  position: sticky; top: 0; z-index: 1;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: calc(var(--sat) + 10px) 12px 10px;
  display: flex; align-items: center; gap: 10px;
}
.page .bar .close {
  background: none; border: 0; padding: 4px; cursor: pointer;
  font-size: 22px; line-height: 1; color: #54656f;
  -webkit-tap-highlight-color: transparent;
}
.page .bar .addr {
  flex: 1;
  background: #eef0f3; border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px; color: #111b21;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.page .bar .addr svg { width: 13px; height: 13px; fill: #16a34a; flex-shrink: 0; }
.page .content { padding: 18px 16px calc(var(--sab) + 24px); }
.page h1 { font-size: 20px; margin: 0 0 4px; }
.page .lead { font-size: 13.5px; color: #54656f; margin: 0 0 16px; line-height: 1.4; }
.page .brand { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--wa-green); font-weight: 700; margin-bottom: 6px; }

.row { margin-bottom: 12px; }
.row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.row input, .row select {
  width: 100%;
  border: 1px solid #d1d5db; border-radius: 8px;
  background: #fff;
  font: inherit; font-size: 16px;
  padding: 11px 12px;
  color: var(--wa-text);
}
.row input:focus { outline: 2px solid var(--wa-green); outline-offset: -1px; border-color: transparent; }
.row .hint { font-size: 12px; color: #6b7280; margin-top: 4px; min-height: 14px; }
.row.invalid input { border-color: #dc2626; }
.row.invalid .hint { color: #dc2626; }
.row.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.row.check input { width: 20px; height: 20px; margin: 1px 0 0; padding: 0; flex-shrink: 0; }
.row.check.invalid { color: #dc2626; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.primary {
  width: 100%;
  border: 0; border-radius: 10px;
  background: var(--wa-green); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 14px; cursor: pointer; margin-top: 6px;
  -webkit-tap-highlight-color: transparent;
}
.primary:active { background: var(--wa-green-dark); }
.secure-note {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; color: #6b7280; line-height: 1.4;
  margin-top: 14px;
}
.secure-note svg { width: 14px; height: 14px; fill: #16a34a; flex-shrink: 0; margin-top: 1px; }
.demo-tag {
  display: inline-block;
  background: #fff7ed; color: #9a3412;
  border: 1px solid #fed7aa; border-radius: 6px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 8px; margin-bottom: 14px;
}

/* Registration: the submitted state swaps the form for a tick. */
.page .state { display: none; text-align: center; padding: 48px 16px; }
.page .state .tick {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--wa-green); color: #fff;
  font-size: 34px; line-height: 64px;
  margin: 0 auto 16px;
}
.page .state h2 { font-size: 19px; margin: 0 0 6px; }
.page .state p { font-size: 14px; color: #54656f; margin: 0 0 20px; line-height: 1.4; }
.page .ref { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: #fff; border: 1px dashed #d1d5db; border-radius: 8px; padding: 10px; margin: 0 0 20px; }
#regSheet.submitted .content { display: none; }
#regSheet.submitted .state { display: block; }

/* Payment */
.amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 2px; }
.slot { font-size: 14px; color: #111b21; margin: 0 0 4px; font-weight: 600; }
.policy { font-size: 12.5px; color: #6b7280; margin: 0 0 18px; line-height: 1.4; }
.applepay {
  width: 100%;
  border: 0; border-radius: 10px;
  background: #000; color: #fff;
  font: inherit; font-size: 17px; font-weight: 600;
  padding: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.applepay svg { width: 40px; height: 18px; fill: #fff; }
.or { display: flex; align-items: center; gap: 10px; color: #9ca3af; font-size: 12px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
#paySheet.processing .primary, #paySheet.processing .applepay { opacity: .6; pointer-events: none; }
#paySheet.processing .primary::after { content: "  \2026"; }
#paySheet.success .content { display: none; }
#paySheet.success .state { display: block; }
