/* Foot banner — SRS Part12 §Foot banner (Tables 69-77)
   Desktop tokens: Figma node 3171:44461 (916x195)
   Mobile  tokens: Figma node 3171:54546 (353x430)
   Flat prefixed selectors only — no bare child class names. */

.uiw-foot-banner {
  display: block;
}

/* --- card ------------------------------------------------------------- */
.uiw-foot-banner-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 916px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
}

/* image + text group. Figma 3171:44462 declares NO gap -> 0px (gap A4). */
.uiw-foot-banner-main {
  display: flex;
  align-items: center;
  gap: 0px;
  flex: 1 1 auto;
  min-width: 0;
}

/* S2: absent -> element not rendered at all, so the text block simply expands. */
.uiw-foot-banner-image {
  flex: 0 0 auto;
  width: 180px;
  height: 135px;
  border-radius: 8px;
  object-fit: contain;
}

.uiw-foot-banner-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
  /* Figma applies opacity .8 over black on the desktop text wrapper; expressed as a
     colour so computed-style can actually measure it. */
  color: rgba(0, 0, 0, 0.8);
}

.uiw-foot-banner-title {
  margin: 0;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.28px;
  text-align: left;
  overflow-wrap: break-word;
}

.uiw-foot-banner-desc {
  margin: 0;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.2px;
  text-align: left;
  overflow-wrap: break-word;
}

/* title/description are rich text (gap A2): strip the leading/trailing margin the
   browser gives an authored <p>/<ul>/<h*> so it cannot break the flex gaps above. */
.uiw-foot-banner-title > :first-child,
.uiw-foot-banner-desc > :first-child { margin-top: 0; }
.uiw-foot-banner-title > :last-child,
.uiw-foot-banner-desc > :last-child { margin-bottom: 0; }

/* --- CTA -------------------------------------------------------------- */
.uiw-foot-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 14px 24px;
  margin: 0px;
  border-radius: 24px;
  background: #ff7300;
  color: #ffffff;
  font-family: 'Unbeatable','Arial','Helvetica Neue','Helvetica',sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.18px;
  text-decoration: none;
  white-space: nowrap;
}

/* btnstyle = 'White Button' — no Figma frame exists for it (gap A3).
   The Foot banner card is ALWAYS white (SRS Table 72), so a white fill with no outline made the
   button visually vanish on the live page. Outline added 2026-08-03 per the user's decision on A3.
   `inset box-shadow` rather than `border`: a real border would grow this variant by 2px and break
   geometry parity with the Figma-verified orange button. */
.uiw-foot-banner-cta-white {
  background: #ffffff;
  color: #ff7300;
  box-shadow: inset 0 0 0 1px #ff7300;
}

/* --- mobile ----------------------------------------------------------- */
@media (max-width: 768px) {
  .uiw-foot-banner-card {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    max-width: 353px;
    overflow: hidden;
  }

  /* dissolve the wrapper so image/text/CTA become siblings and can be reordered */
  .uiw-foot-banner-main { display: contents; }

  .uiw-foot-banner-text {
    order: 1;
    width: 100%;
    gap: 2px;
    color: #000000;
  }

  .uiw-foot-banner-title {
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.24px;
    text-align: center;
  }

  .uiw-foot-banner-desc {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0px;
    text-align: center;
  }

  /* card gap is 10px; +2px here reproduces the 12px gap of Figma node 3171:54547 */
  .uiw-foot-banner-cta {
    order: 2;
    margin: 2px 0px 0px 0px;
    padding: 8px 16px;
    font-size: 16px;
    letter-spacing: 0px;
  }

  .uiw-foot-banner-image {
    order: 3;
    width: 271px;
    height: 203px;
  }
}
