/* =========================================================
   COLOR: Remove dropdown visually (keep for Woo/variation logic)
========================================================= */
select[name="attribute_pa_color"],
select[name="attribute_pa_colour"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

select[name="attribute_pa_color"] + .select2,
select[name="attribute_pa_colour"] + .select2 {
  display: none !important;
}

/* =========================================================
   COLOR helper text under swatches (keep)
========================================================= */
.po-color-helper {
  margin-top: 6px;
  padding: 0;
  font-size: 14px;
  line-height: 1.2;
}

.po-color-helper .po-color-helper-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  font-style: italic;
}

.po-color-helper-arrow {
  width: 12px;
  height: 14px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: translateY(1px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 12 14'%3E%3Cpath d='M6 13V5' stroke='%23f0a000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M2.5 6.5L6 3l3.5 3.5' fill='none' stroke='%23f0a000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.po-color-helper-instruction { opacity: 0.85; }

.po-color-helper-check {
  color: #2e7d32;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}

.po-color-helper-label { opacity: 0.85; }

/* =========================================================
   Swatch selected overlay: ONLY a checkmark (no borders, no boxes)
========================================================= */
.filter-item-list li { overflow: visible !important; }

.po-swatch-selected-target {
  position: relative !important;
  overflow: visible !important;
}

.po-swatch-selected-target .po-swatch-check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;

  text-shadow: 0 0 2px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.25);
}

/* =========================================================
   SIZE STATUS: Fine-tuned padding to match WANTED
   - Top is OK (6px)
   - Bottom reduced to ~70% of previous (26px -> 18px)
========================================================= */
.po-size-status {
  display: block !important;

  margin-top: 6px !important;      /* keep (top OK) */
  margin-bottom: 18px !important;  /* reduced (≈70% of 26px) */

  padding: 0 !important;

  font-size: 14px;
  line-height: 1.2;
  opacity: 0.95;
  font-style: italic;
}

.po-size-status .po-size-num {
  color: #f0a000;
  font-weight: 800;
}