/* eInvoice360 R9 — Six equally balanced connected-services chips.
   Product-scoped; no shared site or eInvoice360 PricingHub state changes. */

/* Span both columns of the enterprise hero so six chips have usable width. */
#einv360-product .hero-grid > .hero-proof.einv360-integration-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: stretch;
  justify-items: stretch;
  gap: clamp(7px, .8vw, 12px);
  margin: clamp(7px, 1.3vw, 18px) 0 0;
  padding: 0;
  overflow: visible;
}

/* Do not inherit enlarged decorative pill metrics from site/global widgets. */
#einv360-product .hero-grid > .hero-proof.einv360-integration-row > span {
  box-sizing: border-box;
  min-width: 0;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: none;
  padding: 10px clamp(6px, .85vw, 13px);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.25;
  font-size: clamp(11px, 1.03vw, 15px);
  font-weight: 800;
  letter-spacing: -.012em;
  color: #20344e;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(20, 40, 65, .035);
}

/* When the content viewport is too narrow for 6 legible columns,
   use two perfectly even rows rather than an orphan on a second row. */
@media (min-width: 640px) and (max-width: 979px) {
  #einv360-product .hero-grid > .hero-proof.einv360-integration-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  #einv360-product .hero-grid > .hero-proof.einv360-integration-row > span {
    font-size: clamp(12px, 1.6vw, 14px);
    min-height: 44px;
  }
}

/* Mobile: a consistent 2 by 3 layout, not 5 + 1 or 3 + 2 + 1. */
@media (max-width: 639px) {
  #einv360-product .hero-grid > .hero-proof.einv360-integration-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
  }
  #einv360-product .hero-grid > .hero-proof.einv360-integration-row > span {
    min-height: 42px;
    padding: 8px 6px;
    font-size: clamp(11px, 2.85vw, 13px);
  }
}

/* Narrow viewport / large text zoom still fits two readable pills. */
@media (max-width: 360px) {
  #einv360-product .hero-grid > .hero-proof.einv360-integration-row {
    gap: 7px;
  }
  #einv360-product .hero-grid > .hero-proof.einv360-integration-row > span {
    min-height: 43px;
    font-size: 11px;
    padding-inline: 5px;
  }
}
