/* Print request page. Builds on styleGallery.css (body, header, links). */

.prints {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 64px;
}

.intro {
  font-size: 20px;
  line-height: 1.5;
  max-width: 620px;
}

.prints h2 {
  font: 400 24px/1.3 "Unica One", sans-serif;
  text-transform: uppercase;
  margin: 32px 0 12px;
}

/* Photo picker */
.picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.pick {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.pick img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgb(225, 225, 225);
  outline: 3px solid transparent;
  outline-offset: -3px;
  transition: opacity 0.2s, outline-color 0.2s;
}

.pick span {
  display: block;
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.3;
}

.pick:hover img { opacity: 0.8; }

.pick[aria-pressed="true"] img {
  outline-color: rgb(17, 34, 51);
}

.pick[aria-pressed="true"]::after {
  content: "\2713";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgb(17, 34, 51);
  color: whitesmoke;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.pick:focus-visible {
  outline: 3px solid rgb(17, 34, 51);
  outline-offset: 3px;
}

/* Sticky jump to step 2 */
.jump {
  position: sticky;
  bottom: 12px;
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgb(17, 34, 51);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-size: 17px;
  z-index: 5;
}

.jump[hidden] { display: none; }

.jump:link,
.jump:visited,
.jump:hover { color: whitesmoke; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Selected photos */
.hint {
  color: rgb(90, 100, 110);
  font-size: 18px;
  margin: 0;
}

.selected {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.selected li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid rgb(220, 222, 225);
  padding: 10px;
}

.selected img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex: none;
}

.selected .fields {
  flex: 1;
  min-width: 0;
}

.selected strong {
  display: block;
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 6px;
}

.selected .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected .row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  margin: 0;
}

.selected .size { width: 150px; }
.selected .qty  { width: 64px; }

.remove {
  flex: none;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: rgb(90, 100, 110);
  cursor: pointer;
  padding: 4px 8px;
}

.remove:hover { color: rgb(17, 34, 51); }

/* Form fields */
.prints label {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.optional { color: rgb(90, 100, 110); }

.prints input,
.prints textarea {
  font-family: inherit;
  font-size: 17px; /* 16px+ stops iOS zooming in on focus */
  color: inherit;
  background: white;
  border: 1px solid rgb(190, 195, 200);
  border-radius: 4px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.prints > form > section > label input,
.prints textarea {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
}

.prints input:focus,
.prints textarea:focus {
  outline: 2px solid rgb(17, 34, 51);
  outline-offset: 1px;
}

.error {
  color: rgb(170, 30, 30);
  font-size: 18px;
}

.send,
.secondary {
  font: 400 20px/1 "Unica One", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 14px 28px;
  margin-top: 8px;
}

.send {
  background: rgb(17, 34, 51);
  color: whitesmoke;
  border: 0;
}

.send:hover { background: rgb(40, 60, 80); }

.secondary {
  background: none;
  color: rgb(17, 34, 51);
  border: 1px solid rgb(17, 34, 51);
  font-size: 16px;
  padding: 10px 18px;
}

.fallback {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgb(220, 222, 225);
}

.fallback { font-size: 18px; }
.fallback a { text-decoration: underline; text-transform: none; }

@media (max-width: 600px) {
  .picker { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pick span { display: none; }
  .send { width: 100%; }
  .selected .size { width: 130px; }
}
