/* Thread artwork drop — hosted on the worker at /drop/drop.css, loaded by the Shopify shell.
   Mobile-first: one big button, generous tap targets, nothing clever. Namespaced under
   .thread-drop so it cannot leak into the theme. */

.thread-drop {
  --td-ink: #1c1c1e;
  --td-ink-2: #4a4a4f;
  --td-line: #d9dde3;
  --td-surface: #ffffff;
  --td-surface-2: #f4f6f8;
  --td-accent: #12a9db;
  --td-accent-ink: #0b2530;
  --td-ok: #1f8f4e;
  --td-err: #c0392b;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  color: var(--td-ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.thread-drop-title {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.thread-drop-lede {
  margin: 0 0 1.25rem;
  color: var(--td-ink-2);
  font-size: 1.05rem;
}

.drop-card {
  background: var(--td-surface);
  border: 1px solid var(--td-line);
  border-radius: 14px;
  padding: 1rem;
  margin: 0 0 1rem;
}
.drop-card-title {
  margin: 0 0 .75rem;
  font-weight: 600;
  font-size: 1.05rem;
}

/* The button. Big enough to hit with a thumb, obvious enough to be the only thing to do. */
.drop-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  border: 2px dashed var(--td-accent);
  border-radius: 12px;
  background: #eaf7fc;
  color: var(--td-accent-ink);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.drop-pick:active { transform: scale(.995); }
.drop-pick--has { min-height: 5rem; }
.drop-pick-icon { font-size: 2rem; line-height: 1; }
.drop-pick-main { font-size: 1.25rem; font-weight: 700; }
.drop-pick-sub { font-size: .85rem; color: var(--td-ink-2); }

.drop-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.drop-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  border: 1px solid var(--td-line);
  border-radius: 10px;
  background: var(--td-surface-2);
}
.drop-item-thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--td-surface);
  border: 1px solid var(--td-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--td-ink-2);
}
.drop-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drop-item-meta { min-width: 0; display: flex; flex-direction: column; }
.drop-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.drop-item-size { font-size: .85rem; color: var(--td-ink-2); }
.drop-item-remove {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--td-ink-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.drop-item-remove:hover { background: var(--td-line); }

.drop-add-more {
  margin-top: .75rem;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--td-line);
  border-radius: 10px;
  background: var(--td-surface);
  color: var(--td-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.drop-field {
  display: block;
  margin: 0 0 .85rem;
  font-weight: 600;
}
.drop-field input,
.drop-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: .3rem;
  padding: .8rem .85rem;
  font: inherit;
  font-weight: 400;
  font-size: 1.05rem;         /* ≥16px stops iOS zooming the page on focus */
  color: var(--td-ink);
  background: var(--td-surface);
  border: 1px solid var(--td-line);
  border-radius: 10px;
}
.drop-field input:focus,
.drop-field textarea:focus {
  outline: none;
  border-color: var(--td-accent);
  box-shadow: 0 0 0 3px rgba(18, 169, 219, .25);
}
.drop-req { color: var(--td-err); }
.drop-hint { margin: -.35rem 0 .85rem; font-size: .9rem; color: var(--td-ink-2); }
.drop-hint-inline { font-weight: 400; color: var(--td-ink-2); font-size: .9rem; }

.drop-submit {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  margin-top: .5rem;
  border: 0;
  border-radius: 12px;
  background: var(--td-accent);
  color: var(--td-accent-ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}
.drop-submit:disabled { opacity: .6; cursor: default; }
.drop-fine { margin: .6rem 0 0; font-size: .85rem; color: var(--td-ink-2); text-align: center; }

.thread-drop-status { margin: 1rem 0 0; font-size: 1.05rem; }
.thread-drop-status:empty { display: none; }
.thread-drop-ok {
  padding: 1rem;
  border-radius: 12px;
  background: #e8f6ee;
  color: #14522f;
  border: 1px solid #b9e3c8;
  font-weight: 600;
}
.thread-drop-err {
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #fdecea;
  color: #7a1d15;
  border: 1px solid #f5c2bc;
}

.cf-turnstile { margin: .5rem 0; }

@media (min-width: 40rem) {
  .thread-drop { padding: 2rem 1rem 4rem; }
  .thread-drop-title { font-size: 2.1rem; }
}
