/* guest_upload (templates/components/guest_upload.html): "Add your photos". */

.guest-upload { display: grid; gap: 12px; justify-items: center; text-align: center; }
.guest-upload__mark {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-text);
}
.guest-upload__title { margin: 0; }
.guest-upload__lead { margin: 0; max-width: 34em; color: var(--body); font-size: 15px; line-height: 1.5; }
.guest-upload[data-state="done"] .guest-upload__lead { color: var(--ink); font-weight: 600; }
.guest-upload[data-state="error"] .guest-upload__lead { color: var(--error); font-weight: 600; }
.guest-upload__form { display: grid; gap: 10px; width: 100%; max-width: 420px; }
/* The inputs stay in the form (and focusable) under their labels, which are the buttons. */
.guest-upload__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.guest-upload__file:focus-visible + .btn { outline: 3px solid var(--brand); outline-offset: 2px; }
.guest-upload__btn { gap: 8px; }
.guest-upload[aria-busy="true"] .guest-upload__btn { opacity: 0.6; pointer-events: none; }
.guest-upload__note { margin: 0; max-width: 34em; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (min-width: 640px) {
  .guest-upload__form { grid-template-columns: 1fr 1fr; }
  .guest-upload__send { grid-column: 1 / -1; }
}

/* The consent a device gives before its first upload: one line, required. */
.guest-upload__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  text-align: left;
}
.guest-upload__consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
