/* ============================================================
   FDU Artwork Upload — Styles
   Used on: WooCommerce thank-you page, My Account view-order,
            WooCommerce admin order meta box
   ============================================================ */

/* ── Section wrapper ── */
.fdu-artwork-section {
  margin: 2.25rem 0 1.5rem;
  padding: 1.6rem 1.75rem;
  background: #f0f5ff;
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fdu-artwork-heading {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1e3a8a !important;
  margin: 0 0 .6rem !important;
  padding: 0 !important;
  border: none !important;
}

.fdu-artwork-intro {
  font-size: .88rem;
  color: #4b5563;
  margin: 0 0 1.1rem;
  line-height: 1.55;
}

/* ── Existing file row ── */
.fdu-artwork-existing {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.fdu-artwork-check {
  font-size: 1.5rem;
  color: #059669;
  line-height: 1;
  flex-shrink: 0;
}

.fdu-artwork-existing__info {
  flex: 1;
  min-width: 0;
}

.fdu-artwork-existing__info strong {
  display: block;
  font-size: .88rem;
  color: #065f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fdu-artwork-existing__info small {
  font-size: .76rem;
  color: #6b7280;
}

.fdu-artwork-replace {
  flex-shrink: 0;
  padding: .28rem .7rem;
  background: #fff;
  border: 1px solid #9ca3af;
  border-radius: 5px;
  font-size: .75rem;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.fdu-artwork-replace:hover {
  border-color: #374151;
  color: #111827;
  background: #f9fafb;
}

/* ── Drop zone ── */
.fdu-artwork-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}

.fdu-artwork-dropzone:hover,
.fdu-artwork-dropzone.fdu-artwork--drag-over {
  border-color: #2563eb;
  background: #eff6ff;
  cursor: pointer;
}

.fdu-artwork-drop-inner {
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.fdu-artwork-drop-icon {
  font-size: 2.4rem;
  margin-bottom: .6rem;
  line-height: 1;
}

.fdu-artwork-drop-inner p {
  margin: .3rem 0;
  font-size: .92rem;
  color: #374151;
  line-height: 1.5;
}

.fdu-artwork-browse-link {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.fdu-artwork-hint {
  font-size: .75rem !important;
  color: #9ca3af !important;
  margin-top: .4rem !important;
}

.fdu-artwork-input {
  display: none !important;
}

/* ── Progress bar ── */
.fdu-artwork-progress {
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.fdu-artwork-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .55rem;
}

.fdu-artwork-fill {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  border-radius: 99px;
  transition: width .18s ease;
  width: 0%;
}

.fdu-artwork-pct {
  font-size: .8rem;
  color: #6b7280;
  font-family: inherit;
}

/* ── Status messages ── */
.fdu-artwork-msg {
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 600;
  margin-top: .75rem;
  line-height: 1.45;
}

.fdu-artwork-msg--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.fdu-artwork-msg--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ── Footer note ── */
.fdu-artwork-footer-note {
  margin: .85rem 0 0 !important;
  font-size: .78rem !important;
  color: #9ca3af !important;
  line-height: 1.5 !important;
}

.fdu-artwork-footer-note a {
  color: #2563eb;
  text-decoration: none;
}

.fdu-artwork-footer-note a:hover {
  text-decoration: underline;
}

/* ── Utility ── */
.fdu-artwork-hidden {
  display: none !important;
}

/* ── WooCommerce admin meta box overrides ── */
#fdu_artwork_box .inside {
  padding: 8px 12px !important;
}
