/**
 * Andes Rate Engine — minimal presentation only.
 *
 * Deliberately thin. All chrome (borders, colors, typography, spacing) is driven
 * by Elementor controls so nothing needs a CSS hack from outside. This file only
 * provides layout resets that Elementor cannot express, and it never hardcodes a
 * border or color that a control also sets.
 *
 * Design tokens: brand #2B59FF · Manrope headings / Inter body · max weight 500 ·
 * no gradients · no box-shadows · sentence case.
 */

/* ---- Rate Value ---- */
.andes-rate-value {
  display: inline-block;
}

.andes-rate-value__label {
  display: inline;
}

.andes-rate-value__number {
  display: inline;
  white-space: nowrap;
}

.andes-rate-value__disclosure {
  display: block;
  margin-top: 0.25em;
}

/* ---- Rate Table ---- */
.andes-rate-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.andes-rate-table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
}

.andes-rate-table th,
.andes-rate-table td {
  margin: 0;
  border: 0;
  background: transparent;
  vertical-align: top;
  text-align: right;
  white-space: nowrap;
}

/* Thead/tbody borders are applied to <tr> so Elementor width/color controls can
   target them; default to none here so an unstyled table has no stray chrome. */
.andes-rate-table thead tr,
.andes-rate-table tbody tr {
  border: 0 solid transparent;
}

/* Neutralize any theme-applied row striping (e.g. tbody tr:nth-child(even)) so an
   unstyled table is genuinely white/transparent. The Elementor row-color controls
   re-introduce colour with higher ({{WRAPPER}}) specificity when the user sets it. */
.andes-rate-table tbody tr,
.andes-rate-table tbody tr th,
.andes-rate-table tbody tr td,
.andes-rate-table tbody tr:nth-child(even),
.andes-rate-table tbody tr:nth-child(even) th,
.andes-rate-table tbody tr:nth-child(even) td {
  background-color: transparent;
}

.andes-rate-table .andes-col-product {
  text-align: left;
}

.andes-rate-table__disclosure {
  margin: 0.5em 0 0;
}

/* ---- Rate Strip ----
   Layout + the live-dot animation only. All colour, border, padding, radius
   and typography are Elementor-control-driven (with brand defaults set on the
   controls). The font declarations below are fallback defaults that the
   widget's typography controls override via higher specificity — they are not
   chrome a colour/border control also sets. */
.andes-strip__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.andes-strip__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 13px;
}

.andes-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.andes-strip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  animation: andes-strip-pulse 1.8s ease-in-out infinite;
}

.andes-strip__badge.is-stale .andes-strip__dot {
  animation: none;
}

@keyframes andes-strip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.82); }
}

.andes-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.andes-strip__link i {
  font-size: 0.8em;
}

.andes-strip__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.andes-strip__note {
  margin-top: 14px;
  font-size: 12px;
}

/* Type fallback defaults (overridden by widget typography controls). */
.andes-strip__title {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

.andes-strip__term {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.andes-strip__num {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 6px 0 2px;
}

.andes-strip__sub {
  font-size: 12.5px;
}

@media (prefers-reduced-motion: reduce) {
  .andes-strip__dot { animation: none; }
}

/* Quote CTA column (Andes Rate Table (Quote CTA) widget + shortcode) */
.andes-rate-table .andes-col-cta { text-align: right; white-space: nowrap; }
.andes-rate-table__cta {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  color: #2B59FF;
  text-decoration: none;
}
.andes-rate-table__cta:hover { text-decoration: underline; }
