/* Aika A3 — стили короткого клиентского пути. Добавочный файл, чтобы не менять
   общие launch.css/style.css и не конфликтовать с другими правками лендинга. */

.flow {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 32px 0 8px;
  border-top: 1px solid rgba(35, 32, 25, .14);
  padding-top: 26px;
}
/* .button{display:inline-block} перебивает браузерное [hidden]{display:none},
   поэтому скрытие кнопок/панелей задаём явно. */
.flow [hidden] { display: none !important; }
.flow-head, .flow-panel, .flow-status { max-width: 760px; }
.flow-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 4.6vw, 30px);
  line-height: 1.2;
}
.flow-ref { margin: 0 0 6px; font-size: 14px; }
.flow-note { margin: 0 0 18px; color: #6b6257; font-size: 14px; }
.flow-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #3c5566;
  font: 600 12px/1.6 system-ui, sans-serif;
  vertical-align: 1px;
}
.flow-badge-awaiting_payment { background: #fff3cd; color: #7a5b00; }
.flow-badge-paid_test, .flow-badge-delivered { background: #e3f4e5; color: #1f5c2c; }
.flow-badge-revoked, .flow-badge-cancelled { background: #f6e3e3; color: #7a2a2a; }

.flow-panel {
  margin: 0 0 18px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid #e6e0d4;
  border-radius: 16px;
}
.flow-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 18px;
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #65BDF2;
  color: #08222f;
  font: 700 14px/1 system-ui, sans-serif;
  flex: none;
}
.flow-panel p { margin: 0 0 10px; }
.flow-fine { color: #6b6257; font-size: 13px; line-height: 1.5; }

.flow-locked {
  border: 1px dashed #d8c98f;
  background: #fffbea;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.flow-consent { display: block; margin: 12px 0; }

.flow-file {
  display: block;
  position: relative;
  margin: 12px 0 6px;
  padding: 14px 16px;
  border: 1px dashed #b9c6cf;
  border-radius: 12px;
  background: #f7fafc;
  font: 600 15px/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.flow-file:focus-within { outline: 3px solid #d39057; outline-offset: 2px; }
.flow-file:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.flow-file input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}
.photo-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6e0d4;
}

.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.flow .button { min-height: 48px; }
.flow .button[disabled] { opacity: .5; cursor: not-allowed; }
.button-ghost {
  background: transparent;
  border: 1px solid #c9d6de;
  color: inherit;
}

.flow-invite {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef3f7;
  color: #33475a;
  font-size: 14px;
  line-height: 1.55;
}
.flow-invite-ok { background: #e3f4e5; color: #1f5c2c; }

#delivery-box { margin-top: 12px; }
#delivery-box p { margin: 0 0 8px; }

#invite-code {
  text-transform: uppercase;
  letter-spacing: .06em;
  font: 600 17px/1.3 ui-monospace, monospace;
}

.flow-status { min-height: 22px; margin: 6px 0 0; font-size: 14px; }
.flow-status-soft { color: #6b5a12; }
.flow-status-error { color: #8a2323; }
.flow-busy { cursor: progress; }

@media (max-width: 520px) {
  .flow-panel { padding: 16px 14px; border-radius: 14px; }
  .flow-actions .button, .flow .button { width: 100%; }
  .photo-item img { width: 72px; height: 72px; }
}
