/*
 * Trotter S.A. - Etiqueta "Recibe hoy"
 * @author    Trotter S.A./ClaudeGPT
 * @version   0.8.0
 *
 * Los colores y el formato del texto llegan como variables CSS en el atributo style de cada
 * etiqueta (--trh-*), según la configuración del módulo. Los valores de aquí son los de respaldo.
 */
.trotter-recibehoy {
  display: flex;
  flex-direction: row;
  align-items: center;                                /* centrado vertical */
  justify-content: var(--trh-justify, center);        /* centrado horizontal */
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--trh-bg, #e8f1fa);
  color: var(--trh-fg, #1f4e79);
  font-family: var(--trh-font, 'Montserrat', sans-serif);
  font-size: var(--trh-fs, 13px);
  font-style: normal;
  line-height: 1.3;
  text-align: var(--trh-align, center);
  letter-spacing: normal;
}

.trotter-recibehoy__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  align-self: center;
}

.trotter-recibehoy__msg {
  display: block;
  min-width: 0;
  text-align: var(--trh-align, center);
}

.trotter-recibehoy .trotter-recibehoy__label {
  font-family: inherit;
  font-weight: var(--trh-lw, 700);
  text-transform: var(--trh-label-tt, none);
}

.trotter-recibehoy .trotter-recibehoy__text,
.trotter-recibehoy .trotter-recibehoy__sep {
  font-family: inherit;
  font-weight: var(--trh-tw, 400);
}

/* Espacio reservado en miniaturas que no califican: mismo alto que la etiqueta, sin fondo ni texto visible. */
.trotter-recibehoy.trotter-recibehoy--empty {
  background: transparent;
  visibility: hidden;
  pointer-events: none;
}

/* Ficha de producto */
/* En la ficha el aviso se ajusta a su contenido (mismo ancho aproximado que la línea del precio). */
.trotter-recibehoy.trotter-recibehoy--sheet {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: 8px 0 12px;
  padding: 8px 12px;
  font-size: var(--trh-fs-sheet, 14px);
}

.trotter-recibehoy--sheet .trotter-recibehoy__icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 575px) {
  .trotter-recibehoy {
    font-size: var(--trh-fs-m, 12px);
    padding: 6px 8px;
  }
}
