/*
 * LaMilka 0.4.62 — final trust-row rendering contract.
 * Measured against the supplied Lovable desktop/mobile source.
 * This file intentionally uses explicit row height for single-line rows so
 * legacy theme padding cannot enlarge the components.
 */

.lamilka-detail__pills,
.lamilka-transfer__benefits {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: none !important;
}

/* Tour source: mt-2/space-y-1.5; md:mt-3/md:space-y-2. */
.lamilka-detail__pills {
  gap: 6px !important;
  margin: 8px 0 0 !important;
}

/* Transfer source sits closer to the price card inside its spaced stack. */
.lamilka-transfer__benefits {
  gap: 6px !important;
  margin: -8px 0 0 !important;
}

html body .lamilka-detail__pills > span,
html body .lamilka-detail__pills > span:nth-child(n),
html body .lamilka-detail__pills > span:last-child,
html body .lamilka-transfer__benefits > li,
html body .lamilka-transfer__benefits > li:nth-child(n),
html body .lamilka-transfer__benefits > li:last-child {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  gap: 6px !important;
  border: 1px solid rgba(15, 27, 61, 0.15) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #0f1b3d !important;
  box-shadow: 0 1px 0 rgba(15, 27, 61, 0.04) !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 17px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

html body .lamilka-detail__pills > span > span,
html body .lamilka-transfer__benefits > li > span:not(.lamilka-transfer__benefit-check) {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

html body .lamilka-detail__pills .lamilka-tour-information-icon,
html body .lamilka-detail__pills svg,
html body .lamilka-transfer__benefit-check,
html body .lamilka-transfer__benefit-check svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex: 0 0 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  .lamilka-detail__pills {
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .lamilka-transfer__benefits {
    gap: 8px !important;
    margin-top: -12px !important;
  }

  html body .lamilka-detail__pills > span,
  html body .lamilka-detail__pills > span:nth-child(n),
  html body .lamilka-detail__pills > span:last-child,
  html body .lamilka-transfer__benefits > li,
  html body .lamilka-transfer__benefits > li:nth-child(n),
  html body .lamilka-transfer__benefits > li:last-child {
    font-size: 13.5px !important;
    line-height: 18.5px !important;
  }
}

/* Allow a second line only on unusually narrow screens or long German copy. */
@media (max-width: 359px) {
  html body .lamilka-detail__pills > span,
  html body .lamilka-detail__pills > span:nth-child(n),
  html body .lamilka-transfer__benefits > li,
  html body .lamilka-transfer__benefits > li:nth-child(n) {
    height: auto !important;
    min-height: 38px !important;
    max-height: none !important;
    padding: 8px 10px !important;
    white-space: normal !important;
  }
}
