/*
 * Order page uploader (Uppy dashboard).
 *
 * Shared by the configurator (frontend_order.php) and the Bootstrap 3 one it
 * replaced (frontend_orderold.php) through inc/inc_orderdropzone.php. Only styles Uppy's
 * own markup, so it carries no assumptions about which Bootstrap the host page
 * runs.
 */

/* Container for Uppy */
#drag-drop-area {
  max-width: 520px;
  margin: 30px auto;
}

/* Card feel */
.uppy-Dashboard-inner {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  height: auto !important; /* override default fixed height */
}

.uppy-Dashboard-innerWrap {
  padding: 18px;
}

/* Title + SELECT FILE arranged vertically inside the card */
.uppy-Dashboard-AddFiles-title {
  display: flex;
  flex-direction: column; /* stack text + button */
  align-items: center;
  justify-content: center;
  gap: 10px; /* space between text and button */
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.uppy-Dashboard-AddFiles-info {
  font-size: 0.85rem;
}

/* Softer drop zone corners */
/* Tracks the type size above: at the old 180px the smaller prompt left the drop
   area looking half empty. */
.uppy-Dashboard-AddFiles {
  border-radius: 10px;
  min-height: 150px;
}

/* Style Uppy's built-in SELECT FILE button.
 *
 * Uppy renders it as <button class="uppy-u-reset uppy-c-btn uppy-Dashboard-browse">
 * and .uppy-u-reset carries `all: initial`, which blanks every property that is
 * not set by a stronger declaration — background and padding included. Matching
 * on the element as well as the class outranks that single-class reset, so the
 * button keeps its shape no matter which of the two stylesheets loads first.
 */
button.uppy-Dashboard-browse {
  display: inline-block;
  padding: 9px 24px;
  margin: 10px 0 0 0;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #000;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

button.uppy-Dashboard-browse:hover,
button.uppy-Dashboard-browse:focus {
  background: #222;
  color: #fff;
}

.uppy-ProgressBar {
  background-color: #f7d2e1 !important; /* light pink track */
}

/* Progress bar fill */
.uppy-ProgressBar-inner {
  background-color: #de256f !important; /* brand pink */
}

.uppy-ProgressBar,
.uppy-ProgressBar-inner {
  border-radius: 6px !important;
}

/* Status text under the card */
#descUploadStatus {
  text-align: center;
  margin-top: 12px;
}

#logUploadResult {
  text-align: center;
  margin-top: 4px;
  color: #a00;
}

/* Manual retry, revealed by the uploader only after a failure */
#uploadRetryWrap {
  display: none;
  text-align: center;
  margin: 10px 0;
}

/* Hide the manual Upload button (autoProceed = true) */
.uppy-Dashboard-upload {
  display: none !important;
}

/* RESPONSIVE MOBILE FIXES */
@media (max-width: 576px) {
  #drag-drop-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px auto;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .uppy-Root,
  .uppy-Dashboard,
  .uppy-Dashboard-inner,
  .uppy-Dashboard-innerWrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .uppy-Dashboard-innerWrap {
    padding: 12px;
  }

  .uppy-Dashboard-AddFiles {
    min-height: 170px; /* nice height without horizontal scroll */
  }

  .uppy-ProgressBar {
    height: 10px !important;
  }

  body {
    overflow-x: hidden;
  }
}
