/* Buyer cabinet — page-specific extras. Shared chrome lives in stay-theme.css */

.db-note {
  display: none !important;
}

.share-box {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

textarea.share-text-edit {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
  color: #111827;
  background: #fff;
  cursor: text;
  user-select: text;
  pointer-events: auto;
}

.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
}

.bubble--guest {
  align-self: flex-end;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 1rem 1rem 0.25rem 1rem;
  padding: 0.65rem 0.85rem;
  white-space: pre-wrap;
}

.bubble--bot {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111827;
  border-radius: 1rem 1rem 1rem 0.25rem;
  padding: 0.65rem 0.85rem;
  white-space: pre-wrap;
}

.bubble--unknown {
  outline: 2px solid #fbbf24;
}

.check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.check .mark {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: #059669;
  min-width: 1.25rem;
  font-weight: 700;
}

.check .mark.is-todo {
  color: #9ca3af;
}

.hint {
  font-size: 0.85rem;
  color: #6b7280;
}

.flash-err {
  color: #b91c1c;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.map-frame {
  width: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  aspect-ratio: 16 / 10;
  min-height: 200px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cal-grid-head,
.cal-grid-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .cal-grid-head,
  .cal-grid-week {
    grid-template-columns: repeat(7, minmax(4.25rem, 1fr));
    gap: 0.35rem;
    min-width: 32rem;
  }
}

.cal-cell {
  min-height: 4rem;
  border: 1px solid #eef0f4;
  border-radius: 0.65rem;
  padding: 0.35rem;
  background: #fff;
  min-width: 0;
}

@media (min-width: 768px) {
  .cal-cell {
    min-height: 5rem;
  }
}

@media (max-width: 640px) {
  .cal-cell {
    min-height: 3.25rem;
    padding: 0.2rem;
  }
  .cal-chip {
    font-size: 0.5rem;
  }
}

.cal-dow {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  padding: 0.25rem;
}

.cal-cell--muted {
  background: #f9fafb;
  color: #9ca3af;
}

.cal-cell--today {
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 1px #3b82f6;
}

.cal-cell--busy {
  background: #eff6ff;
}

.cal-daynum {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cal-chip {
  font-size: 0.65rem;
  line-height: 1.25;
  background: #dbeafe;
  color: #1e3a8a;
  border-radius: 0.35rem;
  padding: 0.15rem 0.3rem;
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-more {
  font-size: 0.65rem;
  color: #6b7280;
}

.mono-soft {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .faq-table thead {
    display: none;
  }

  .faq-table,
  .faq-table tbody,
  .faq-table tr,
  .faq-table td {
    display: block;
    width: 100%;
  }

  .faq-table tr {
    padding: 1rem;
    border-bottom: 1px solid #eef0f4;
  }

  .faq-table tr:last-child {
    border-bottom: 0;
  }

  .faq-table td {
    padding: 0.2rem 0;
    white-space: normal;
  }

  .faq-table td:last-child {
    padding-top: 0.5rem;
    width: auto;
  }
}

.faq-answer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

@media (min-width: 768px) {
  .faq-table {
    table-layout: fixed;
    width: 100%;
  }

  .faq-table th:nth-child(1),
  .faq-table td:nth-child(1) {
    width: 16%;
  }

  .faq-table th:nth-child(2),
  .faq-table td:nth-child(2) {
    width: 28%;
  }

  .faq-table td:nth-child(2),
  .faq-table td.faq-answer {
    overflow-wrap: anywhere;
  }

  .faq-answer-row {
    flex-wrap: nowrap;
  }

  .faq-answer-row span {
    min-width: 0;
    flex: 1;
  }
}

.help-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.help-step-n {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.04em;
}

/* Login: one primary CTA; bot path is secondary disclosure */
.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.85rem;
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: lowercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.login-alt {
  border: 1px solid #eef0f4;
  border-radius: 0.85rem;
  background: #fafafa;
  overflow: hidden;
}

.login-alt__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  color: #4b5563;
  user-select: none;
}

.login-alt__summary::-webkit-details-marker {
  display: none;
}

.login-alt__summary::after {
  content: "";
  float: right;
  margin-top: 0.35rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid #9ca3af;
  border-bottom: 1.5px solid #9ca3af;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.login-alt[open] .login-alt__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.login-alt__body {
  padding: 0 0.9rem 0.9rem;
  border-top: 1px solid #eef0f4;
}

.login-alt__lead {
  margin: 0.75rem 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.login-alt__btn {
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #374151 !important;
  font-weight: 500;
}

.login-alt__btn:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

.login-wait-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.login-wait-pulse {
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.4rem;
  border-radius: 9999px;
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
  animation: login-pulse 1.6s ease-out infinite;
}

@keyframes login-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.login-wait-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.login-wait-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.35;
}

.login-wait-step__n {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  border: 1.5px solid #e5e7eb;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  background: #fff;
}

.login-wait-step.is-active {
  color: #111827;
  font-weight: 500;
}

.login-wait-step.is-active .login-wait-step__n {
  border-color: #3b82f6;
  color: #1d4ed8;
  background: #eff6ff;
}

.login-wait-step.is-done {
  color: #374151;
}

.login-wait-step.is-done .login-wait-step__n {
  border-color: #86efac;
  background: #ecfdf5;
  color: #15803d;
  font-size: 0;
}

.login-wait-step.is-done .login-wait-step__n::after {
  content: "✓";
  font-size: 0.7rem;
  font-weight: 700;
}

.login-wait-step.is-fail {
  color: #b91c1c;
}

.login-wait-step.is-fail .login-wait-step__n {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.login-tg-outline {
  background: #fff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  font-weight: 600;
}

.login-tg-outline:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

.login-wait-foot__sep {
  margin: 0 0.35rem;
  color: #d1d5db;
}

@media (prefers-reduced-motion: reduce) {
  .login-wait-pulse {
    animation: none;
  }
}

/* Share page redesign */
.share-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .share-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.75fr);
    align-items: start;
  }
}
.share-trust {
  font-size: 0.875rem;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
}
.share-preview__label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0 0 0.4rem;
}
.share-preview__bubble {
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 1rem 1rem 0.25rem 1rem;
  padding: 0.75rem 0.9rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 28rem;
}
.share-copy-field {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
}
.share-copy-field__input {
  flex: 1;
  min-width: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
.share-qr-wrap {
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
}
.share-qr {
  width: 180px;
  height: 180px;
  display: block;
}
.share-wa-soon {
  border: 1px dashed #d1d5db;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fafafa;
}
.text-success { color: #15803d; }

.metric-card--link {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.metric-card--link:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}
.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.preview-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: #374151;
  cursor: pointer;
}
.preview-chip:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}
a.cal-chip,
a.cal-more {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.cal-chip:hover,
a.cal-more:hover {
  text-decoration: underline;
}
tr.faq-row {
  cursor: pointer;
}
tr.faq-row:hover {
  background: #f8fafc;
}
tr.faq-row:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}
