/* ── AlphaGen Order Fields ───────────────────────────────────────────────── */

/* Variables — mirror the synthwave theme palette */
:root {
  --ag-bg:        #0d0221;
  --ag-surface:   #1a0533;
  --ag-surface2:  #220640;
  --ag-border:    rgba(5, 217, 232, 0.25);
  --ag-border-hi: #05d9e8;
  --ag-primary:   #ff2a6d;
  --ag-text:      #f0e6ff;
  --ag-muted:     rgba(240, 230, 255, 0.5);
  --ag-cyan:      #05d9e8;
  --ag-focus:     rgba(5, 217, 232, 0.35);
}

.ag-order-fields {
  margin: 24px 0;
  border: 1px solid var(--ag-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ag-surface);
}

.ag-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ag-border);
}

.ag-section:last-child {
  border-bottom: none;
}

.ag-section-title {
  margin: 0 0 4px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ag-cyan);
}

.ag-section-hint {
  margin: 0 0 12px;
  font-size: 0.82em;
  color: var(--ag-muted);
}

.ag-required {
  color: var(--ag-primary);
}

/* ── Size matrix ─────────────────────────────────────────────────────────── */

.ag-size-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
}

.ag-size-matrix th,
.ag-size-matrix td {
  text-align: center;
  padding: 6px 4px;
  border: 1px solid var(--ag-border);
  min-width: 48px;
  color: var(--ag-text);
}

.ag-size-matrix thead th {
  background: var(--ag-surface2);
  font-weight: 600;
  color: var(--ag-cyan);
  letter-spacing: 0.04em;
}

.ag-size-matrix .ag-total-col {
  background: var(--ag-surface2);
  font-weight: 700;
  color: var(--ag-primary);
  min-width: 56px;
}

.ag-size-qty {
  width: 52px;
  text-align: center;
  padding: 4px 2px;
  background: var(--ag-bg) !important;
  color: var(--ag-text) !important;
  border: 1px solid var(--ag-border);
  border-radius: 3px;
  font-size: 1em;
  -moz-appearance: textfield;
}

.ag-size-qty::-webkit-inner-spin-button,
.ag-size-qty::-webkit-outer-spin-button {
  opacity: 1;
}

.ag-size-qty:focus {
  outline: none;
  border-color: var(--ag-border-hi);
  box-shadow: 0 0 0 2px var(--ag-focus);
}

.ag-size-total {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--ag-primary);
}

/* ── Print location ──────────────────────────────────────────────────────── */

.ag-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ag-location-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ag-surface2);
  border: 2px solid var(--ag-border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.88em;
  color: var(--ag-text);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.ag-location-option:hover {
  border-color: var(--ag-border-hi);
  background: rgba(5, 217, 232, 0.08);
}

.ag-location-option input[type="radio"] {
  accent-color: var(--ag-cyan);
}

.ag-location-option:has(input:checked) {
  border-color: var(--ag-cyan);
  background: rgba(5, 217, 232, 0.15);
  color: var(--ag-cyan);
}

/* ── Artwork upload ───────────────────────────────────────────────────────── */

.ag-artwork-input {
  /* Visually hidden but still accessible */
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.ag-artwork-label {
  display: inline-block;
  cursor: pointer;
}

.ag-artwork-placeholder {
  display: inline-block;
  padding: 8px 18px;
  background: var(--ag-surface2);
  border: 2px dashed var(--ag-border);
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--ag-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ag-artwork-label:hover .ag-artwork-placeholder,
.ag-artwork-input:focus + .ag-artwork-placeholder {
  background: rgba(5, 217, 232, 0.08);
  border-color: var(--ag-border-hi);
  color: var(--ag-cyan);
}

.ag-artwork-filename {
  margin-left: 10px;
  font-size: 0.82em;
  color: var(--ag-muted);
  word-break: break-all;
}

.ag-artwork-retention-note {
  margin: 8px 0 0;
  font-size: 0.78em;
  color: var(--ag-muted);
  font-style: italic;
}
