/************************************************************
 * 3DP Quick Quote – UI Styles
 * - Upload layout (single/two column)
 * - File list
 * - Preview panel & modal
 * - Global helpers & overlays
 * - Filters (pill selects + color swatch picker)
 * - Vendor cards & offers (grouped, collapsible)
 ************************************************************/

/* ==========================================================
   Upload / Layout
   ========================================================== */

/* Drag-and-drop area for local STL files */

.stl-dropzone {
  border: 2px dashed #d2d2d2;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #777;
  text-align: center;
  cursor: pointer;
  border-radius: 15px;
  margin-bottom: 10px;
}

.loading-offers {
  display:flex; gap:8px; align-items:center; justify-content:center;
  min-height:48px; padding:12px;
}

.loading-offers .dot {
  width:15px; height:15px; border-radius:50%;
  background:#D6D9DD; opacity:.5; transform:scale(.8);
  transition:opacity .25s ease, transform .25s ease, background-color .25s ease;
}

/* Stage highlights: only one active "dot" at a time */
.loading-offers.s1 .dot:nth-child(1),
.loading-offers.s2 .dot:nth-child(2),
.loading-offers.s3 .dot:nth-child(3) {
  opacity:.95; transform:scale(1);
  background:#BFC5CB;
}

.loading-offers.s4 .dot:nth-child(4) {
  opacity:1; transform:scale(1.15);
  background:#06AFF6;
}

#upload-container.single-column #upload-dropzone {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-direction: column;
}
.on-demand #upload-container.single-column #upload-dropzone {
  height: 250px;
}
#upload-container.single-column #upload-dropzone svg {
  width: 60px;
  height: 60px;
}

.woocommerce-js input[type=number] {
  max-width: 100%;
}

.loading-offers-wrapper {
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 160px;
}

.stl-dropzone:hover { background: #f9f9f9; }

/* Single-column: hide right panel entirely when .hidden is present */
#upload-container.single-column #right-panel.hidden { display: none; }

/* After first file, switch to two-column layout */
#upload-container.two-column { 
  display: flex; 
  gap: 40px;
}
#upload-container.two-column #left-panel {
  flex: 0 0 30%;
  min-width: 250px;
}
#upload-container.two-column #right-panel {
  width: 100%;
  min-width: 300px;
}
#dpq-quote-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.on-demand #dpq-quote-results {
  gap: 0px;
}

.notice.notice-warning {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #666666;
}
.notice.notice-warning p {
  margin-bottom: 10px;
}
.notice.notice-warning strong {
  font-size: 18px;
}

body .dokan-geolocation-location-filters input[type="range"].dokan-range-slider {
  background: none !important;
}

.dpq-results-controls-wrap {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: 20px;
  background: #F2F5F7;
  font-size: .9em;
  margin-bottom: 20px !important;
}
.dpq-results-controls-wrap.hidden {
  display: none;
}
#dpq-geo-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-direction: column;
}
#dpq-geo-filters.has-location #dpq_geo_clear_btn {
  display: block;
  white-space: nowrap;
  padding: 11px 11px 11px 15px ;
  border-radius: 999px 0 0 999px;
  background: #fff;
  color: red;
  border: 1px solid #D0D5DD;
}
#dpq-geo-filters.has-location #dpq_geo_clear_btn:hover {
  background: red;
  color: #fff;
}
#dpq-geo-filters #dpq_geo_clear_btn, #dpq-geo-filters .range-slider-container {
  display: none;
}
.dokan-range-slider-value {
  white-space: nowrap;
}
#dpq-geo-filters.has-location .range-slider-container {
  display: flex;
  gap: 20px;
}
.dokan-geo-filters-column {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#dpq-geo-filters .location-address {
  position: relative !important;
  display: flex;
  width: 100%;
}
#dpq-geo-filters .location-address input {
  border-radius: 999px;
  border: 1px solid #D0D5DD;
}
#dpq-geo-filters.has-location .location-address input {
  border-radius: 0 999px 999px 0;
  border: 1px solid #D0D5DD;
}
#dpq_locate_btn {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: -10px !important;
    cursor: pointer !important;
    background-size: contain !important;
}
#dpq-results-summary {
  margin-bottom: 0px;
  padding-bottom: 0px;
  font-weight: 700;
}
#dpq-results-summary-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 0px !important;
  justify-content: space-between;
}
.dpq-expand-all-toggle {
  padding: 0px;
  color: #000 !important;
  background: none !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
}
.dpq-expand-all-toggle:hover {
  color: #06AFF6 !important;
}
.dpq-expand-all-toggle:hover:after {
  content: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" focusable="false" viewBox="0 0 24 24"><path fill="%2306AFF6"  d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></svg>');
}
.dpq-expand-all-toggle:after {
  content: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" focusable="false" viewBox="0 0 24 24"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></svg>');
  display: block;
  width: 30px;
  height: 30px;
  }
.dpq-expand-all-toggle:hover:after {
  content: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" focusable="false" viewBox="0 0 24 24"><path fill="%2306AFF6"  d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></svg>');
}
.dpq-expand-all-toggle[aria-pressed=true]:after {
  transform:rotate(180deg);
  }

/* Optional preview container skin (left panel live preview) */
#preview-container, #dpq-preview-canvas { background: #2E2A4D; border-radius: 20px; }

/* ==========================================================
   File List
   ========================================================== */

.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  margin-bottom: 15px;
  padding: 0 !important;
}

.file-list:first-child { margin-top: 0; }

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-content: center;
  gap: 20px;
  padding: 10px 15px;;
  border: 2px solid #F2F5F7;
  border-radius: 20px;
  cursor: pointer;
  background: #F2F5F7;
}
.file-list li canvas, .file-list li .thumb-canvas {background: #fff;border: none;}
.dpq-file-item.active canvas, .dpq-file-item.active .thumb-canvas { background: none;border: none;}
.file-info {
  flex-grow: 1;
  padding: 10px 0; /* fixed stray double semicolon */
}
.file-list .file-name {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 5px;
}
.file-list .file-details {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 5px;
}
.file-list .file-details span {
  padding: 0 10px;
  border-radius: 20px;
  background: #F2F5F7;
}

.file-list .active .file-details span {
  background: rgba(255,255,255, .8);
}

.file-list .delete-btn,
.file-list .preview-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 200px;
  background: #fff;
  padding: 0;
}
.file-list .delete-btn { color: red; }
.file-list .preview-btn { color: #2E2A4D; padding: 5px; }

/* Compact list items used elsewhere (kept for consistency with JS) */

.thumb-canvas {
  width: 82px; height: 82px; border: 1px solid #ddd; border-radius: 12px; object-fit: cover;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb-canvas img { max-width: 100%; max-height: 100%; object-fit: cover; }
.file-info { flex: 1; margin-left: 8px; }
.file-name { font-weight: 600; }
.file-details { font-size: 12px; color: #666; }
.dpq-file-item.active .file-details { color: #fff; opacity: .5; }
.file-buttons { display: flex; gap: 6px; align-items: center; flex-direction: column; }

.dpq-file-item.in-cart {
  border: none;
  background: #e8f4e9;
}
.dpq-file-item.active {
  background: #2E2A4D;
  color: #fff;
}


.dpq-file-item.in-cart .file-buttons:before {
  content: "✓";
  display: flex;
  width: 28px;
  height: 28px;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  background: #5cbc64;
  border-radius: 9999px;
  align-items: center;
}

.dpq-see-examples{
  font-size:13px;
  margin-top: 6px;
  text-decoration:underline;
  color:inherit;
  opacity:.8;
}
.dpq-see-examples:hover{ 
  opacity:1; 
}
.dpq-gallery-stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:60vh;
  max-height:720px;
}
.dpq-gallery-image{ 
  max-width:100%; 
  object-fit: cover;
  height:100%; 
}
.dpq-gallery-prev, .dpq-gallery-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:rgba(0,0,0,.35);
  color:#fff;
  display: block;
  padding: 0;
  padding-bottom: 4px;
  width:40px;
  height: 40px;
  font-size: 28px;
  line-height: 0;
  border-radius:999px;
  cursor:pointer;
}
.dpq-gallery-prev{ left:8px; } .dpq-gallery-next{ right:8px; }
.dpq-gallery-counter{ margin-top:8px; text-align:center; color:#666; font-size:12px; }

/* ==========================================================
   Preview (Left-panel stats card – legacy) 
   ========================================================== */

#stats-container {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 0;
  padding: 20px; margin: 10px 0 1rem;
  background: #F2F5F7; border-radius: 20px; cursor: pointer;
}
#stats-container h3 { color: #2E2A4D; margin: 0; }
#stats-container ul {
  display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 10px;
  list-style: none; padding: 0; text-indent: 0;
}
#stats-container li {
  padding: 0 10px; border-radius: 20px; background: rgba(255,255,255, .8);
}

/* ==========================================================
   Cart State
   ========================================================== */

.dpq-offer.dpq-in-cart { border-color: #46b450; background: #f6fff6; }
.dpq-offer .dpq-add-to-cart.in-cart {
  background: #46b450; border-color: #46b450; color: #fff;
  cursor: pointer; /* still clickable to go to cart */
}

/* ==========================================================
   Global Helpers & Overlays
   ========================================================== */

.is-hidden { display: none !important; }

/* Drop-anywhere overlay shown on dragenter of files */
.dpq-drop-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.dpq-drop-overlay.is-open { display: flex; }
.dpq-drop-overlay__inner {
  pointer-events: none;
  border: 3px dashed rgba(255,255,255,.85);
  color: #fff; font-size: 20px; font-weight: 700; text-align: center;
  padding: 24px 32px; border-radius: 14px; backdrop-filter: saturate(1.1) blur(1px);
}

/* ==========================================================
   Filters (controls row, pill selects, swatch picker)
   ========================================================== */

/* Controls row container */
#dpq-results-controls, .dpq-results-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
}

/* Label + control pair (e.g., "Layer Height: [select]") */
.dpq-filter-group {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: #475467; /* neutral-600 */
}


/* Native selects styled as pills to match the swatch button */
.dpq-select.dpq-select--pill {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: #fff;
  border: 1px solid #D0D5DD;         /* neutral-300 */
  border-radius: 9999px;              /* pill */
  padding: 8px 34px 8px 12px;
  line-height: 1.2;
  font-size: 14px;
  height: 36px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05);
  cursor: pointer;

  /* caret */
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23677389' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
}
.dpq-select.dpq-select--pill:hover {
  border-color: #B8C2CC;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.dpq-select.dpq-select--pill:focus {
  outline: 2px solid transparent;
  border-color: #06AFF6;
  box-shadow: 0 0 0 3px rgba(6,175,246,.30);
}
.dpq-select.dpq-select--pill:disabled { opacity: .6; cursor: not-allowed; }

/* Min widths so row looks balanced */
#dpq_filter_tech.dpq-select--pill     { width: 80px; }
#dpq_filter_material.dpq-select--pill { width: 80px; }
#dpq_filter_infill.dpq-select--pill   { width: 80px; }
#dpq_sort.dpq-select--pill            { width: 180px;}
#dpq_filter_layer.dpq-select--pill    { width: 120px; }

/* Hide the real <select> when using custom swatch picker, but keep accessible */
.dpq-hidden-select {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
}

/* --- Color swatch picker (custom select UI) --- */

.dpq-swatch-select { 
  position: relative; 
  display: inline-block; 
 }

.dpq-swatch-button {
  display: inline-flex; 
  background: #fff; color: #000;
  border: 1px solid #ddd; 
  border-radius: 9999px; /* pill */
  height: 36px; 
  padding: 10px 12px; 
  cursor: pointer;
  width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 1em;
  color: rgb(71, 85, 105);

}

.dpq-swatch-button__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* padding-right: inherit; */
}
.dpq-swatch-button .chip {
  width: 20px; height: 20px; border: 1px solid #bbb; border-radius: 200px;
  background: var(--dpq-chip-bg, linear-gradient(45deg,#eee,#ccc));
}
.dpq-swatch-button__caret {
  display: none;
}

/* Popover attached to button; JS toggles .is-open */
.dpq-swatch-pop {
  position: absolute; z-index: 20; top: 100%; left: 0;
  min-width: 220px; margin-top: 6px; background: #fff; color: #000;
  border: 1px solid #ddd; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 10px;
  display: none; /* hidden by default */
}
.dpq-swatch-pop.is-open { display: block; }

.dpq-swatch-grid {
  display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 8px;
}
.dpq-swatch-opt {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px;
  border: 1px solid #eee; border-radius: 6px;
  background: #fff; cursor: pointer;
  color: #000;
}
.dpq-swatch-opt .chip {
  width: 14px; height: 14px; border: 1px solid #bbb; border-radius: 4px;
  background: var(--dpq-chip-bg, linear-gradient(45deg,#eee,#ccc));
}
.dpq-swatch-opt .name {
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dpq-results-controls .button {
    height: 36px;
    padding: 5px 20px;
}

/* ==========================================================
   Vendor Cards & Offers (grouped, collapsible)
   ========================================================== */

/* Card shell (each vendor group) */
#dpq-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.on-demand #dpq-results {
  margin-top: 0px !important;
  gap: 0;
}
.on-demand button.dpq-expand-all-toggle {
  margin: 0px;
  padding: 0px;
}
.dpq-vendor-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border-radius: 15px;
}

#dpq-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner-style header with optional background image set via --dpq-vendor-banner */
.dpq-vendor-head {
  position: relative;
  padding: 0px;
  overflow: hidden;
  background-color: var(--banner-average-color);
  cursor: pointer;
}
.dpq-vendor-head[aria-expanded="true"] {
  border-radius: 12px 12px 0 0;
}
.dpq-vendor-head[aria-expanded="true"] .dpq-vendor-bestprice, .dpq-vendor-head[aria-expanded="true"] .dpq-vendor-quoteturnaround {
  display: none;
}
.dpq-vendor-head__bg {
  position: absolute;
  inset: 0;
  background-image: var(--dpq-vendor-banner);
  background-size: cover;
  background-position: center;
}
.banner-light .dpq-vendor-head__bg {
  opacity: .8;
}
.dpq-vendor-head__bg:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--banner-average-color, rgba(255,255,255,.5)) 20%, rgba(0,0,0,0) 100%);
}
.dpq-vendor-head__bg:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: .9;
  background: linear-gradient(0deg, var(--banner-average-color, rgba(255,255,255,.5)) 30%, rgba(0,0,0,0) 100%);
}

/* Foreground content row */
.dpq-vendor-head__content {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px 14px;
  min-height: 150px;
  x: 100%;
  padding: 20px;
  justify-content: space-between;
}
.dpq-vendor-head__content__left {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 10px;
  gap: 10px 14px;
  /* padding: 15px 0; */
}
.dpq-vendor-head__content__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
  gap: 10px 14px;
  justify-content: space-between;
}
.dpq-vendor-bestprice {
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0px 10px var(--banner-average-color), 0 0px 20px var(--banner-average-color);
}
.dpq-vendor-head.banner-light .dpq-vendor-bestprice {
  color: #000;
} 
.dpq-vendor-bestprice strong {
  font-weight: 900;
  font-size: 24px;
}
.dpq-vendor-quoteturnaround {
  font-size: .8em;
}
.dpq-vendor-head__lower__right {
  display: flex;
  gap: 15px;
  align-items: center;
}
/* Distance pill (JS sets --banner-average-color; optional .banner-dark/.banner-light on head) */
.dpq-vendor-head__upper__right {
  overflow: hidden;
  display: inline-flex;
  border-radius: 10px;
  font-size: .8em;
  background: var(--banner-average-color, rgba(255,255,255,.8));
}
.dpq-vendor-rating {
  padding: 5px 10px 5px 10px;
}

.dpq-vendor-rating:empty {
  padding: 0px;
}
.dpq-vendor-distance {
  text-decoration: none !important;
  padding: 5px 10px 5px 10px;
  border-left: 1px solid #fff;
}
.dpq-vendor-distance:hover {
  background: #fff;
  color: #000 !important;
}
.dpq-vendor-distance:empty {
  padding: 0px;
  border: none;
}
.dpq-vendor-rating:empty + .dpq-vendor-distance {
  border: none;
}
.banner-dark .dpq-vendor-distance { color: #fff; }
.banner-light .dpq-vendor-distance { color: #000; }

/* Vendor avatar */
.dpq-vendor-avatar {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.12);
  transition: all ease .5s;
}
.dpq-vendor-avatar-link:hover .dpq-vendor-avatar {
    filter: saturate(0) !important;
    transform: scale(1.1);
}

/* Title block */
.dpq-vendor-title { min-width: 0; }
.dpq-vendor-name {
  display: inline-block;
  font-weight: 700; font-size: 26px; line-height: 1.2;
  color: #000 !important; text-decoration: none !important;
}
.dpq-vendor-sub { font-size: 18px !important; color: #000; }
.dpq-vendor-head.banner-dark .dpq-vendor-name,
.dpq-vendor-head.banner-dark .dpq-vendor-sub { color: #fff !important; }

/* Toggle button sits at bottom-right of the head content */
.dpq-toggle {
    padding: 6px 7px;
}
.dpq-toggle:hover, .dpq-vendor-head:hover:not(:has(.dpq-vendor-rating:hover, .dpq-vendor-distance:hover, .dpq-vendor-avatar-link:hover )) .dpq-toggle {
    background: #fff !important;
    border: 2px solid #fff !important;
    fill: #000;
}
.dpq-in-cart-flag {
  display: flex;
  width: 49px;
  height: 49px;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: #5cbc64;
  border-radius: 9999px;
  align-items: center;
}
.dpq-toggle {
  cursor: pointer;
  border: 2px solid #fff !important;
  background: transparent !important;
  display: flex !important;
  align-items: center;
  fill: #fff;
}
.banner-light .dpq-toggle {
  border: 2px solid #000 !important;
  fill: #000;
}
.dpq-toggle svg, .dpq-printer-toggle svg {
  height: 30px;
  width: 30px;
}
.dpq-printer-toggle {
  cursor: pointer;
  background: transparent !important;
  padding: 0px;
  color: #000 !important;
  display: flex !important;
  gap: 8px;
  align-items: center;
}
.dpq-printer-toggle svg {
  border: 2px solid #000;
  border-radius: 999px;
}
.dpq-printer-options:hover, .dpq-printer-head:hover  .dpq-printer-options{
  color: #06AFF6 !important;
  fill: #06AFF6;
}
.dpq-printer-toggle:hover svg {
  border: 2px solid #06AFF6;
}
.dpq-printer-head:hover .dpq-printer-toggle svg {
  border: 2px solid #06AFF6;
} 
.dpq-printer-head {
  cursor: pointer;
}
.dpq-printer-sub {
  font-size: 18px;
}
/* Collapsible body (JS toggles .is-open) */
.dpq-vendor-body { display: none; }
.dpq-printer {
  padding: 0px 15px;
}
.dpq-showcase-title {
  margin-top: 20px;
}
.on-demand .dpq-printer {
  padding: 0px;
}
.dpq-printer:first-child {
  padding-top: 10px;
}
.on-demand .dpq-printer:first-child {
  padding-top: 0px;
}
.dpq-printer:last-child {
  padding-bottom: 10px;
}
.dpq-vendor-body.is-open { 
  display: flex; 
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 0 0 15px 15px;
}
.dpq-printer-body { display: none; }
.dpq-printer-body.is-open { display: flex; flex-direction: column; }


/* Printer rows inside a vendor group */
.dpq-printer-head {
  /* border: 1px solid #ddd; */
  background: #f2f5f7;
  border-radius: 6px;
  padding: 20px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dpq-printer-head.in-cart {
  border: 1px solid #5cbc64;
  background: #F6FFF6;
}
.dpq-printer-head__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dpq-printer-head__left__upper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.dpq-printer-head__right {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.dpq-printer-head__turn {
  font-size: .8em;
}
.dpq-offer-printer-and-filament-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.dpq-offer-price-wrapper {
  text-align: right;
}
.dpq-offer-price {
  font-size: 26px;
}
.dpq-offer-printer {
  font-size: 20px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-weight: 900;
}
.dpq-offer-line {}
.dpq-offer-cta {
  margin-top: 6px; font-size: 15px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.dpq-offer button {
    margin-top: 0px !important;
    padding: 15px 20px !important;
}
.dpq-offer-meta { opacity: .75; font-size: 12px; margin-top: 4px; }
.dpq-add-to-cart.in-cart { opacity: .9; }
.dpq-offer-printer-and-filament {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Color badge in offer line (single or gradient dot + names) */
.dpq-offer-filament {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  font-weight: 500;
  font-size: 14px;
}

/* Offer rows inside a vendor group */
.dpq-offer {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dpq-offer:last-child {
    border-bottom: 0px;

}
.dpq-offer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dpq-offer-right {
  display: flex;
  align-self: stretch;
  gap: 30px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.dpq-offer-printer-and-filament-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}
.dpq-offer-printer-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 15px;
}
.dpq-printer-showcase .dpq-offer-printer-thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
}
.dpq-printer-options {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dpq-printer-options strong {
  font-size: 24px;
  font-weight: 900;
}
.dpq-offer-price-wrapper {
  text-align: right;
}
.dpq-offer-price {
  font-size: 26px;
}
.dpq-offer-printer {
  font-size: 20px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-weight: 900;
}
.dpq-offer-printer span {
  text-transform: uppercase;
  background: #fff;
  color: #616d76;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
}
.dpq-offer-line {}
.dpq-offer-cta {
  margin-top: 6px; font-size: 15px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.dpq-offer-filament-wrapper {
  padding: 4px 15px;
  display: flex;
  border-radius: 5px;
  flex-direction: column;
}

.dpq-color {
  display: flex; 
  align-items: center;
  gap: 6px;
  font-size: 18px;
}
.dpq-color-dot {
  display: inline-block; width: 24px; height: 24px;
  border: 1px solid #bbb; border-radius: 50%;
  background: var(--dpq-chip-bg, #fff);
}

.dpq-color-names { 
  margin-left: 4px; 
}
.material-title {
    background: #f2f5f7;
    color: #616d76;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
}
.dpq-vendor-rating { 
  display:inline-flex; 
  align-items:center; 
  gap:.35rem; 
  color: #fff; 
}
.dpq-vendor-rating:hover { 
  background: #fff;
}
.dpq-vendor-rating:hover a {
    color: #000; 
}
.dpq-vendor-rating a { 
  color: #fff; 
  display:inline-flex; 
  align-items:center; 
  gap:.35rem; 
  text-decoration:none !important; 
}
.dpq-stars { 
  position:relative; 
  display:inline-block; 
  line-height:1; 
}
.dpq-stars-bg, .dpq-stars-fill { 
  font-size:14px; 
  letter-spacing:1px; 
}
.dpq-stars-fill {
  color: #fff;
  position:absolute;
  left:0;
  top:0;
  white-space:nowrap;
  overflow:hidden;
  }
.dpq-vendor-rating:hover .dpq-stars-fill {
    color: #000;
}
.dpq-vendor-head.banner-light .dpq-stars-fill, .dpq-vendor-head.banner-light .dpq-vendor-rating a {
    color: #000;
}
.dpq-vendor-head.banner-light .dpq-stars-bg {
  color:#ffffff52;
}
.dpq-vendor-head.banner-dark .dpq-stars-bg, .dpq-vendor-head.banner-light .dpq-vendor-rating:hover .dpq-stars-bg  {
  color:#00000052;
}
.dpq-rating-num { 
  font-size:12px; 
  opacity:1; 
}
.dpq-rating-count { 
  font-size:12px; 
  opacity:1; 
}

/* ==========================================================
   Preview Modal (full-size 3D preview)
   ========================================================== */

.dpq-preview-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.65);
}
.dpq-preview-modal.is-open { display: flex; }
.dpq-preview-box {
  position: relative; width: 100%; max-width: 900px;
  background:#fff; border-radius: 8px; padding: 12px;
}
.dpq-preview-close { 
  position: absolute; 
  display: block;
  top: -20px; 
  right: -20px;
  padding: 0px;
  width: 40px;
  height: 40px;
  background: #000;
}
.dpq-preview-canvas { width: 100%; height: 540px; }
.dpq-preview-stats {display: flex;gap: 10px;margin-top: 8px;color:#444;font-size: 14px;flex-wrap: wrap;}
.dpq-preview-stats div {
  padding: 0 10px;
  border-radius: 20px;
  background: rgb(232 232 232 / 80%);
}
.dpq-preview-fallback { padding: 10px; }
.dpq-preview-bar {
  position: absolute; top: 30px; right: 30px; z-index: 10; display: flex; gap: 6px;
}
.dpq-preview-bar button {
  background: #fff;
  color: #000;
  font-size: .8em;
  padding: 10px 15px;
}

/* ==========================================================
   Dark Mode polish
   ========================================================== */

@media (prefers-color-scheme: dark) {
  .dpq-select.dpq-select--pill {
    background: #111827; color: #E5E7EB; border-color: #374151;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23C7D2FE' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .dpq-select.dpq-select--pill:focus {
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56,189,248,.35);
  }
}

@media only screen and (max-width: 1000px) {
  #upload-container {
    display: flex;
    flex-direction: column !important;
  }
}

@media only screen and (max-width: 760px) {
  #upload-container {
    display: flex;
    flex-direction: column !important;
  }
  #dpq-results-summary-wrapper {
    margin-bottom: 0px !important;
}
  .dpq-expand-all-toggle {
    display: none !important;
  }
   .dpq-vendor-bestprice {
    text-align: right;
}
}
@media only screen and (max-width: 600px) {
    .dpq-vendor-head__content {
      flex-direction: column;
      align-items: flex-start;
  }
  .dpq-vendor-head__content__right {
    flex-direction: row;
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 10px 14px;
  }
  .dpq-vendor-head__lower__right {
    display: flex;
    gap: 15px;
    align-items: center;
}
  .dpq-vendor-bestprice {
    text-align: right;
}

}