/* =====================================================
   DESIGNR PRO CONFIGURATOR
   Middle column only
===================================================== */

.dp-product-middle .product_title,
.dp-product-middle .price,
.dp-product-middle .woocommerce-product-details__short-description {
  display: none !important;
}

/* Main wrapper */
.dp-product-configurator {
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid #dbe7fb !important;
  border-radius: 18px !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

.dp-config-section {
  margin-bottom: 26px !important;
}

.dp-config-title {
  margin: 0 0 16px !important;
  color: #111827 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.dp-options-section .dp-config-title::before {
  content: "1. " !important;
}

.dp-design-help-section .dp-config-title::before {
  content: "2. " !important;
}

.dp-placement-box .dp-config-title::before {
  content: "3. " !important;
}

.dp-artwork-section .dp-config-title::before {
  content: "4. " !important;
}

/* Option groups */
.dp-config-group {
  margin: 0 0 18px !important;
}

.dp-config-label {
  margin: 0 0 9px !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.dp-config-label span {
  color: #dc2626 !important;
}

/* Option pills */
.dp-pill-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}

.dp-product-configurator .dp-pill,
.dp-product-configurator button.dp-pill {
  min-height: 40px !important;
  padding: 9px 16px !important;
  border: 1px solid #d7dde8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-transform: none !important;
}

.dp-product-configurator .dp-pill:hover,
.dp-product-configurator .dp-pill.is-selected {
  border-color: #2f6df6 !important;
  color: #2f6df6 !important;
  box-shadow: inset 0 0 0 1px #2f6df6 !important;
}

.dp-product-configurator .dp-pill.is-readonly {
  cursor: default !important;
}

.dp-config-group[data-kind="size"] .dp-pill {
  min-width: 48px !important;
}

/* Color swatches */
.dp-config-group[data-kind="color"] .dp-pill {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 4px !important;
  border: 1px solid #dbe7fb !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.dp-config-group[data-kind="color"] .dp-pill:hover {
  border-color: #9fc3ff !important;
  background: #f7fbff !important;
  box-shadow: none !important;
}

.dp-config-group[data-kind="color"] .dp-pill.is-selected {
  border-color: #7fb0ff !important;
  background: #eef6ff !important;
  box-shadow: 0 0 0 1px #bcd7ff !important;
}

.dp-config-group[data-kind="color"] .dp-color-dot {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 7px !important;
  border: 1px solid #cbd5e1 !important;
  display: block !important;
}

.dp-config-group[data-kind="color"] .dp-pill span:not(.dp-color-dot) {
  display: none !important;
}

/* Design Help */
.dp-design-help-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.dp-design-help-card {
  min-height: 86px !important;
  padding: 14px 16px !important;
  border: 1px solid #d7dde8 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  display: grid !important;
  grid-template-columns: 22px 1fr !important;
  grid-template-areas:
    "radio title"
    "radio desc"
    "radio price" !important;
  column-gap: 10px !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.dp-design-help-card:hover,
.dp-design-help-card.is-selected {
  border-color: #2f6df6 !important;
  box-shadow: inset 0 0 0 1px #2f6df6 !important;
}

.dp-radio-dot {
  grid-area: radio !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  border-radius: 999px !important;
  border: 1.5px solid #94a3b8 !important;
  background: #ffffff !important;
}

.dp-design-help-card.is-selected .dp-radio-dot {
  border-color: #2f6df6 !important;
  background: radial-gradient(circle, #2f6df6 0 40%, transparent 45%) !important;
}

.dp-design-help-card strong {
  grid-area: title !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.dp-design-help-card small {
  grid-area: desc !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.dp-design-help-card em {
  grid-area: price !important;
  color: #2f6df6 !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

/* Print Placement */
.dp-placement-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
  gap: 12px !important;
}

.dp-placement-card {
  min-height: 124px !important;
  padding: 12px 10px !important;
  border: 1px solid #d7dde8 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.dp-placement-card:hover,
.dp-placement-card.is-selected {
  border-color: #2f6df6 !important;
  box-shadow: inset 0 0 0 1px #2f6df6 !important;
}

.dp-placement-card.is-locked {
  cursor: default !important;
}

.dp-placement-icon {
  font-size: 26px !important;
  line-height: 1 !important;
}

.dp-placement-card strong {
  color: #111827 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.dp-placement-card small {
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.dp-placement-check {
  width: 20px !important;
  height: 20px !important;
  border-radius: 5px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.dp-placement-card.is-selected .dp-placement-check {
  background: #2f6df6 !important;
  border-color: #2f6df6 !important;
  color: #ffffff !important;
}

/* Artwork / Text */
.dp-artwork-card {
  margin: 0 0 14px !important;
  padding: 14px !important;
  border: 1px solid #dbe7fb !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

.dp-artwork-card-title {
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.dp-artwork-card-title strong {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.dp-artwork-card-title span {
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: #eefbf3 !important;
  color: #15803d !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.dp-artwork-entry-row {
  display: grid !important;
  grid-template-columns: 180px 1fr !important;
  gap: 14px !important;
}

.dp-upload-box {
  min-height: 78px !important;
  padding: 12px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
  cursor: pointer !important;
}

.dp-upload-box input {
  display: none !important;
}

.dp-upload-box span {
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.dp-upload-box small {
  color: #64748b !important;
  font-size: 12px !important;
}

.dp-text-entry-box {
  display: grid !important;
  grid-template-columns: 1fr 90px !important;
  gap: 10px !important;
  align-items: end !important;
}

.dp-text-entry-title {
  grid-column: 1 / -1 !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.dp-artwork-input {
  height: 42px !important;
  width: 100% !important;
  padding: 9px 12px !important;
  border: 1px solid #d7dde8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.dp-color-picker-row {
  height: 42px !important;
  padding: 6px 8px !important;
  border: 1px solid #d7dde8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dp-color-picker-row span {
  display: none !important;
}

.dp-color-picker-row input[type="color"] {
  width: 34px !important;
  height: 30px !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
}

.dp-special-notes {
  width: 100% !important;
  min-height: 74px !important;
  margin: 4px 0 0 !important;
  padding: 12px !important;
  border: 1px solid #d7dde8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 14px !important;
  resize: vertical !important;
  box-shadow: none !important;
}

/* Configurator total */
.dp-total-box {
  margin-top: 18px !important;
  padding: 15px 17px !important;
  border-radius: 14px !important;
  background: #f1f7ff !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.dp-total-box span {
  color: #475569 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.dp-total-box strong {
  color: #111827 !important;
  font-size: 21px !important;
  font-weight: 650 !important;
}

/* Hide old wishlist/compare buttons inside middle column */
.dp-product-middle .yith-wcwl-add-to-wishlist,
.dp-product-middle .compare,
.dp-product-middle .single_add_to_wishlist,
.dp-product-middle .woosc-btn,
.dp-product-middle .woosw-btn {
  display: none !important;
}

/* Mobile */
@media (max-width: 640px) {
  .dp-product-configurator {
    padding: 18px !important;
  }

  .dp-design-help-grid,
  .dp-artwork-entry-row {
    grid-template-columns: 1fr !important;
  }

  .dp-placement-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .dp-text-entry-box {
    grid-template-columns: 1fr 70px !important;
  }

  .dp-product-configurator .dp-pill {
    min-height: 38px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
  }
}
.dp-product-configurator:not(.dp-ready)
.dp-option-pill[data-condition-kind]:not([data-condition-kind=""]) {
  display: none;
}
