/* The public Returns page (docs/33). The look IS the game's and the
   quiz's: this file only adds the form pieces on top of /p/game.css, so the
   shop's public pages can never drift apart visually. */

/* A form page: text must be selectable (the game turns it off for taps). */
body { -webkit-user-select: text; user-select: text; touch-action: auto; }

.card { text-align: left; }
.r-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px;
            font-size: 11px; font-weight: 600; margin: 0 0 6px; }
.r-h2 { font-size: 17px; margin: 22px 0 10px; }
.r-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.r-input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid #d6d6d3; background: #ffffff; color: var(--text);
  font: inherit; font-size: 16px;      /* 16px: no zoom on iOS */
}
textarea.r-input { min-height: 0; resize: vertical; line-height: 1.45; }
.r-input:focus { outline: 2px solid var(--text); outline-offset: -1px; }
.r-form .form-actions, .card .form-actions { margin-top: 16px; }
.btn-main { flex: 1; }
.form-actions .btn-plain { flex: 0 0 auto; padding: 0 18px; }
.form-note.bad { color: #a8322a; }

/* The two roads, and the two ways back: whole-width cards to tap. */
.r-choices { display: grid; gap: 10px; margin-top: 14px; }
.r-choice {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit;
  padding: 16px 18px; border-radius: 14px; border: 1px solid #d6d6d3;
  background: #ffffff; color: var(--text);
}
.r-choice strong { display: block; font-size: 16px; margin-bottom: 4px; }
.r-choice span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (hover: hover) { .r-choice:hover { border-color: var(--text); } }
.r-choice:disabled { opacity: 0.55; cursor: default; }

/* Items with their photo, ticked to include. */
.r-items { display: grid; gap: 8px; margin: 12px 0 4px; }
.r-item {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: #ffffff; border: 1px solid #e3e3e1; cursor: pointer;
}
.r-item.off { opacity: 0.55; cursor: default; }
.r-item input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.r-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
              background: var(--card); flex: none; }
.r-item .r-item-ph { width: 52px; height: 52px; border-radius: 8px; flex: none;
                     display: flex; align-items: center; justify-content: center;
                     background: #f1f1ef; color: #9a9a96; }
.r-item .r-item-text { flex: 1; min-width: 0; }
.r-item strong { display: block; font-size: 14px; }
.r-item span { display: block; color: var(--muted); font-size: 13px; }
.r-item select { min-height: 36px; border-radius: 8px; border: 1px solid #d6d6d3;
                 background: #fff; font: inherit; padding: 0 6px; }

/* Problems and wishes: radio pills. */
.r-problems, .r-wishes { display: grid; gap: 8px; margin-top: 10px; }
.r-radio {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  border-radius: 12px; border: 1px solid #d6d6d3; background: #fff;
}
.r-radio input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.r-radio strong { display: block; font-size: 14px; }
.r-radio span { display: block; color: var(--muted); font-size: 13px; }
.r-radio.on { border-color: var(--text); }

/* Photos: the guide, the previews and the add button. */
.r-guide { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: 13px;
           line-height: 1.6; }
.r-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r-photos:empty { display: none; }
.r-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
           background: var(--card); }
.r-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-photo button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px;
                  border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff;
                  cursor: pointer; font-size: 15px; line-height: 26px; padding: 0; }
.r-add { display: inline-flex; align-items: center; margin-top: 10px; cursor: pointer;
         height: 40px; padding: 0 16px; }

/* The summary of a withdrawal before the one confirmation. */
.r-summary { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr;
             gap: 6px 14px; font-size: 14px; }
.r-summary dt { color: var(--muted); }
.r-summary dd { margin: 0; }

.r-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.r-qr { display: block; width: 220px; max-width: 100%; margin: 6px auto 10px;
        background: #fff; border-radius: 12px; padding: 10px; }
.r-address { font-style: normal; font-size: 15px; line-height: 1.6; background: #fff;
             border-radius: 12px; padding: 12px 14px; }
.r-quiet { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.r-help { color: var(--muted); font-size: 13px; margin: 0; }
/* Room under the last line for the chat button in the lower left corner. */
footer.site { padding-bottom: 88px; }
.r-help a { color: var(--muted); text-decoration: underline; }
