/**
 * Mismo lenguaje visual que .s-upsell/.upsell-card/.upsell-btn de la
 * calculadora (public/index.html) — colores calcados de sus variables CSS
 * (--azul: #1e73be, --azul-tinta: #17395c, --gris: #8f919e, --borde: #e3eaf2)
 * pero en valores fijos: esta hoja vive en el tema de WordPress, que no
 * define esas custom properties.
 */
.itc-upsell {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px dashed #e3eaf2;
  border-radius: 10px;
  background: #fbfcfe;
}
.itc-upsell-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #8f919e;
  margin: 0 0 10px;
}
.itc-upsell-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.itc-upsell-card + .itc-upsell-card { margin-top: 10px; }
.itc-upsell-txt { flex: 1 1 220px; min-width: 0; }
.itc-upsell-txt .t {
  font-size: 13.5px;
  font-weight: 700;
  color: #17395c;
  display: block;
}
.itc-upsell-txt .p {
  font-size: 12.5px;
  color: #8f919e;
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}
.itc-swatches {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
/* Bolita + nombre del color apilados — el nombre SIEMPRE visible, no solo en
   el `title` (tooltip): en móvil no hay hover, así que sin esto la bolita
   sola no dice qué color es (repro Abraham 29-ago-2026). */
.itc-swatch {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.itc-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.itc-swatch .chip {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e3eaf2;
}
.itc-swatch input:checked + .chip {
  box-shadow: 0 0 0 2px #1e73be;
}
.itc-swatch-name {
  font-size: 10.5px;
  color: #8f919e;
  line-height: 1.1;
}
.itc-swatch input:checked ~ .itc-swatch-name { color: #17395c; font-weight: 700; }
.itc-upsell-btn {
  flex: none;
  border: 1.5px solid #1e73be;
  background: #fff;
  color: #1e73be;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.itc-upsell-btn:hover:not(:disabled) { background: #1e73be; color: #fff; }
.itc-upsell-btn:disabled { opacity: .6; cursor: default; }
/* Tarjeta de un extra YA añadido — mismo layout que la de "+ Añadir" pero con
   dos botones apilados (Cambiar color / Quitar) en vez de uno. */
.itc-upsell-added { background: #f7fbf8; border-color: #cfe8d6; }
.itc-upsell-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
}
.itc-upsell-remove-btn {
  border-color: #a12727;
  color: #a12727;
}
.itc-upsell-remove-btn:hover:not(:disabled) { background: #a12727; color: #fff; }
.itc-upsell-msg {
  font-size: 12.5px;
  margin: 10px 0 0;
  font-weight: 600;
}
