/* Base: evitar que el theme nos rompa */
.ic-packs,
.ic-packs * { box-sizing: border-box; }

.ic-packs__header {
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  gap: 15px;
}
.ic-packs__header::before,
.ic-packs__header::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #404E30;
}

/* ===== TIERS (packs) ===== */
.ic-packs__tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ic-packs__tier {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.ic-packs__tier:hover { border-color: #d6d6d6; }

.ic-packs__tier.is-active {
  border-color: #c8a36a;
  box-shadow: 0 0 0 2px rgba(200,163,106,.18);
  background: #fcfaf6;
}

/* Importante: VamTam suele tocar label y grid => forzamos flex */
.ic-packs__tier-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin: 0;
  cursor: pointer;
}

/* Radio a la izquierda */
.ic-packs__tier-inner input[type="radio"]{
  margin: 0 10px 0 0 !important;
  flex: 0 0 auto;
  pointer-events: auto;
}

/* Izquierda: título + badge */
.ic-packs__tier-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.ic-packs__tier-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.15;
}

.ic-packs__tier-sub {
  font-size: 12px;
  opacity: .85;
  line-height: 1.25;
}

.ic-packs__tier-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

/* Derecha: precio */
.ic-packs__tier-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  flex: 0 0 auto;
}

.ic-packs__tier-price {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
}

.ic-packs__tier-old {
  margin: 0 !important;
  font-size: 12px;
  opacity: .65;
}

/* ===== LÍNEAS (selección por unidad) ===== */
.ic-packs__lines {
  margin-top: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ic-packs__line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
}

.ic-packs__line.is-invalid {
  border-color: #d9534f;
}

.ic-packs__line-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #f3f3f3;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic-packs__line-img span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfcfcf;
}

.ic-packs__line-img.has-img span { display: none; }

.ic-packs__line-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.ic-packs__field {
  min-width: 160px;
  flex: 1 1 160px;
}

.ic-packs__field label {
  display: block !important;
  font-size: 12px;
  opacity: .85;
  margin: 0 0 6px !important;
}

.ic-packs__field select {
  width: 100% !important;
  padding: 10px 10px !important;
  border-radius: 10px !important;
  border: 1px solid #e6e6e6 !important;
  background: #fff !important;
}

.ic-packs__line-price {
  margin-left: auto;
  font-weight: 800;
  white-space: nowrap;
  padding-left: 6px;
}

/* Botón */
.ic-packs__add {
  width: 100%;
  margin-top: 12px;
  padding: 14px 12px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Mensaje */
.ic-packs__notice {
  margin-top: 10px;
  font-size: 13px;
}
.ic-packs__notice.is-error { color: #b02a37; }

/* Mobile */
@media (max-width: 520px) {
  .ic-packs__tier-inner { 
      padding: 12px 12px;
  }
  .ic-packs__line { 
      flex-wrap: wrap;
      align-items: flex-start; 
  }
  .ic-packs__line-img {
    order: 1;
  }
  .ic-packs__line-fields {
    order: 2;
    flex: 1 1 calc(100% - 66px);
    min-width: 0;
  }
  .ic-packs__field { 
      min-width: 0;
      flex: 1 1 140px;
  }
  .ic-packs__line-price { 
      order: 3;
      flex: 0 0 100%;
      width: 100%;
      text-align: right;
      margin-top: 6px;
  }
}
