/* ── section divider (label + rule) ──────────────────────── */
.section-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 0.75rem; }
.section-divider span { font-size: 0.9rem; font-weight: 600; color: #555; white-space: nowrap; }
.section-divider hr { flex: 1; border: none; border-top: 1px solid #e5e7eb; margin: 0; }
.section-divider-lg span { font-size: 1rem; }

.no-photo { width: 160px; height: 160px; border-radius: 8px; background: #f3f4f6;
            border: 1px dashed #d1d5db; display: flex; align-items: center;
            justify-content: center; font-size: 0.8rem; color: #9ca3af; }
.placeholder { width: 160px; height: 160px; border-radius: 8px; border: 2px dashed #ccc;
               display: flex; align-items: center; justify-content: center;
               font-size: 0.75rem; color: #aaa; text-align: center; padding: 0.5rem; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(129,140,248,0.25); }
  50%      { box-shadow: 0 0 0 5px rgba(129,140,248,0); }
}
.generating { animation: pulse 1.2s ease-in-out infinite; }
.thumb-placeholder .thumb {
  width: 160px; height: 160px; background: #f3f4f6; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  animation: glow 2s ease-in-out infinite;
}
.thumb-placeholder .thumb span { font-size: 0.75rem; color: #9ca3af; animation: pulse 1.2s ease-in-out infinite; }


/* ── upload slot ──────────────────────────────────────────── */
.upload-slot { width: 160px; height: 160px; border-radius: 8px; border: 2px dashed #ccc;
               display: flex; align-items: center; justify-content: center;
               cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.upload-slot:hover, .upload-slot.drag-over { border-color: var(--color-accent); background: #f5f3ff; }
.slot-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
                    color: #aaa; font-size: 0.75rem; text-align: center; pointer-events: none; }
.slot-up-icon { font-size: 1.5rem; color: #c4b5fd; line-height: 1; margin-bottom: 0.1rem; }

/* ── order detail table ───────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
td { padding: 0.15rem 0; vertical-align: middle; }
td:first-child { color: #555; width: 160px; }
tr + tr td { border-top: 1px solid #f3f4f6; }

/* ── form controls ────────────────────────────────────────── */
select { padding: 0.35rem 0.5rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem;
         font-family: inherit; background: #fff; color: #111; cursor: pointer; text-transform: capitalize; }
button[disabled] { opacity: 0.4; cursor: default; }

/* ── order pending notice ─────────────────────────────────── */
.order-pending { text-align: center; padding: 1.5rem 0 0.5rem; color: #6b7280; font-size: 0.9rem; }

/* ── layout helpers ───────────────────────────────────────── */
.action-row { margin-top: 0.5rem; display: flex; align-items: center; gap: 1rem; }
.action-row-split { justify-content: space-between; align-items: flex-start; }
.action-group { display: flex; flex-direction: column; align-items: flex-start; }
.action-group .action-row { margin-top: 0; }
.action-group-right { align-items: flex-end; }
.action-group-right .field-help { text-align: right; }
.support-intro { font-size: 0.95rem; color: #555; line-height: 1.6; margin: 0.4rem 0; }
.support-list { list-style: disc; padding-left: 1.25rem; margin: 0.3rem 0 0.75rem; line-height: 1.5; }
.action-msg { font-size: 0.82rem; color: #555; border-radius: 6px; }
.action-msg.error   { background: #fee2e2; color: #991b1b; padding: 0.35rem 0.75rem; }
.action-msg.success { background: #dcfce7; color: #166534; padding: 0.35rem 0.75rem; }
.header-meta { font-size: 0.85rem; color: #555; margin-bottom: 1.25rem; }

/* ── collapsible section toggle ──────────────────────────────── */
.section-toggle { cursor: pointer; user-select: none; }
.chevron { font-size: 0.75rem; margin-left: 0.35rem; }

/* ── garment guide requirements list ─────────────────────────── */
.requirements-list { list-style: disc; padding-left: 1.25rem; margin: 0.5rem 0 1.25rem; }
.requirements-list li { font-size: 0.9rem; color: #374151; line-height: 1.6; }

/* Same breakpoint duplicated in base.css and gallery.css — keep in sync. */
@media (max-width: 768px) {
  table {
    table-layout: fixed;
    width: 100%;
  }

  td:first-child {
    width: 90px;
  }

  td:last-child {
    word-break: break-word;
  }
}
