/* ==============================
   CARD LAYOUT (ALL DEVICES)
================================ */
.wd-variation-card {
  display: grid;
  grid-template-columns: clamp(64px, 18vw, 90px) 1fr auto;
  gap: clamp(10px, 2vw, 14px);
  align-items: center;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  padding: clamp(12px, 3vw, 14px);
  margin-bottom: 14px;
  background: #fff;
  position: relative;
  cursor: pointer;
}

.wd-variation-card.active {
  border-color: #2f7d5d;
  background: linear-gradient(0deg, #fff7d6, #fffdf4);
}

/* Image */
.wd-card-left {
  width: clamp(64px, 18vw, 90px);
  height: clamp(64px, 18vw, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-card-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Middle */
.wd-card-middle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wd-title-row strong {
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: #102a43;
}

.wd-save-badge {
  background: #2f7d5d;
  color: #fff;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.wd-subtext {
  font-size: clamp(13px, 3.5vw, 15px);
  color: #4a5568;
}

/* Right price */
.wd-card-right {
  text-align: right;
}

.wd-card-right del {
  font-size: clamp(12px, 3vw, 13px);
  color: #9aa5b1;
}

.wd-final {
  display: block;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  color: #102a43;
}

.wd-card-right small {
  font-size: clamp(12px, 3.5vw, 14px);
  color: #2f7d5d;
  font-weight: 600;
}

/* Badges */
.wd-pill {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #e5e7eb;
  color: #374151;
  font-size: clamp(10px, 3vw, 12px);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.wd-variation-card.active .wd-pill {
  background: #2f7d5d;
  color: #fff;
}

/* Selected price above CTA */
#wd-selected-price {
  margin: 14px 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: #102a43;
}

#wd-selected-price del {
  margin-left: 8px;
  font-size: 16px;
  color: #9aa5b1;
}

#wd-selected-price .wd-tax {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

/* Hide default Woo UI */
.variations,
.variations_form .label,
.variations_form select,
.quantity {
  display: none !important;
}
