
/* =========================================================
   RYTE VALUE BAR MODULE
   ========================================================= */

.ryte-value-bar {
  position: relative;
  width: 100%;
  background: var(--ryte-white);
  color: var(--ryte-navy);
  border-top: 1px solid rgba(16, 35, 61, 0.06);
  border-bottom: 1px solid rgba(16, 35, 61, 0.08);
}

/* =========================================================
   VALUE BAR GRID
   ========================================================= */

.ryte-value-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

/* =========================================================
   INDIVIDUAL ITEM
   ========================================================= */

.ryte-value-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 10px 24px;
  border-right: 1px solid rgba(16, 35, 61, 0.16);
}

.ryte-value-bar__item:last-child {
  border-right: none;
}

/* =========================================================
   ICONS
   ========================================================= */

.ryte-value-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: var(--ryte-navy);
}

.ryte-value-bar__icon svg {
  display: block;
  width: 38px;
  height: 38px;
}

/* =========================================================
   TEXT
   ========================================================= */

.ryte-value-bar__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.ryte-value-bar__heading {
  display: block;
  font-family: var(--ryte-font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ryte-navy);
}

.ryte-value-bar__subheading {
  display: block;
  font-family: var(--ryte-font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ryte-muted);
}

/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .ryte-value-bar__item {
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .ryte-value-bar__icon {
    width: 36px;
    height: 36px;
  }

  .ryte-value-bar__icon svg {
    width: 34px;
    height: 34px;
  }

}

/* =========================================================
   TABLET — TWO COLUMNS
   ========================================================= */

@media (max-width: 900px) {

  .ryte-value-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .ryte-value-bar__item {
    justify-content: flex-start;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid rgba(16, 35, 61, 0.12);
  }

  .ryte-value-bar__item:nth-child(odd) {
    border-right: 1px solid rgba(16, 35, 61, 0.12);
  }

  .ryte-value-bar__item:nth-last-child(-n+2) {
    border-bottom: none;
  }

}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .ryte-value-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .ryte-value-bar__item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 18px 8px;
    text-align: center;
  }

  .ryte-value-bar__content {
    align-items: center;
  }

  .ryte-value-bar__heading {
    font-size: 10px;
  }

  .ryte-value-bar__subheading {
    font-size: 9px;
  }

}

/* =========================================================
   OPTIONAL: SUPPORT VARIABLE ITEM COUNTS
   ========================================================= */

@supports (grid-template-columns: repeat(4, 1fr)) {

  .ryte-value-bar__grid:has(> :only-child) {
    grid-template-columns: 1fr;
  }

  .ryte-value-bar__grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ryte-value-bar__grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ryte-value-bar__grid:has(> :nth-child(5):last-child),
  .ryte-value-bar__grid:has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 900px) {

  .ryte-value-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

}

@media (max-width: 480px) {

  .ryte-value-bar__grid:has(> :only-child) {
    grid-template-columns: 1fr !important;
  }

}
