/*
 * Design tokens shared by every component.
 *
 * Each component imports this itself. Component bundles are isolated on the
 * Webflow site (own React root, Shadow DOM), so there is no shared stylesheet
 * to rely on — importing here is what guarantees the tokens exist wherever the
 * component lands.
 */
:host,
:host {
  --batlab-color-fg: #101014;
  --batlab-color-bg: #ffffff;
  --batlab-color-muted: #6b6b76;
  --batlab-color-accent: #1a1aff;
  --batlab-color-border: #e3e3e6;

  --batlab-color-stripe: #f5f6f8;
  --batlab-color-rule: #e4e8ef;
  --batlab-color-ink: #101943;

  --batlab-space-sm: 0.5rem;
  --batlab-space-md: 1rem;
  --batlab-space-lg: 1.5rem;

  --batlab-radius: 0.5rem;

  /*
   * Body type is inherited, so the component adopts whatever the site sets.
   * UI chrome is specified as Inter in the design file — named here with a
   * fallback stack, since this library does not load fonts. The Webflow site
   * has to serve Inter for it to resolve; the stack keeps things sane if not.
   */
  --batlab-font: inherit;
  --batlab-font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/*
 * The themeable colours are deliberately NOT declared here.
 *
 * A declaration on :host beats a value inherited into the host, so declaring
 * them would mean the component's own default always won and a site-set
 * property could never reach it. Their defaults live at each use site as the
 * second argument to var(), which leaves the cascade intact:
 *
 *   1. a prop on the component sets the property inline — highest priority
 *   2. the site sets it anywhere up the tree and it inherits in
 *   3. neither, and the var() fallback applies
 *
 * Brand values: #00ff98 accent, #033d8d on it (7.67:1), #101943 header.
 */

/* src/components/BatBuyCard/BatBuyCard.css */

/*
 * Figma: 300px sidebar card. The card fills its container up to 300px so a
 * narrower Webflow column doesn't overflow. Px sizes are deliberate — the
 * design is pixel-precise and the host page's root size is not ours.
 */
.batlab-buycard {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  background: var(--batlab-color-bg, #ffffff);
  border: 2px solid #07081b;
  font-family: var(--batlab-font-ui);
  color: #07081b;
}

.batlab-buycard *,
.batlab-buycard *::before,
.batlab-buycard *::after {
  box-sizing: inherit;
}

.batlab-buycard__hero {
  height: 725px;
  background: linear-gradient(160deg, #10122a 8.49%, #07081b 91.51%);
  overflow: hidden;
}

/* Figma: the bat render fills the 296×725 hero frame edge to edge. */
.batlab-buycard__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.batlab-buycard__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.batlab-buycard__badge {
  padding-bottom: 15px;
}

/* Figma: the medal lockup renders at 200px wide (200×61.56 in the comp). */
.batlab-buycard__badge-img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

/*
 * Explicit color and letter-spacing: applyTagSelectors lets the host page's
 * h2 tag styles cascade in, and the name must stay Figma-exact regardless.
 */
.batlab-buycard__name {
  margin: 10px 0 0;
  font-family: "Acumin Pro Condensed", "Arial Narrow", var(--batlab-font-ui);
  font-weight: 900;
  font-size: 21px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #07081b;
}

.batlab-buycard__spec {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 19px;
  color: #5b7180;
}

.batlab-buycard__price {
  margin: 8px 0 0;
  font-family: "Acumin Pro Condensed", "Arial Narrow", var(--batlab-font-ui);
  font-weight: 900;
  font-size: 30px;
  line-height: 46px;
}

.batlab-buycard__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-weight: 600;
  text-decoration: none;
  color: #07081b;
  margin-top: 14px;
  padding: 15px 26px;
  font-size: 16px;
  line-height: 25px;
  background: var(--batlab-buycard-buy-bg, #00f092);
}

.batlab-buycard__empty {
  margin: 14px 0 0;
  padding: var(--batlab-space-lg);
  border: 1px dashed var(--batlab-color-border, #e3e3e6);
  border-radius: var(--batlab-radius);
  color: var(--batlab-color-muted, #6b6b76);
  font-size: 12px;
  line-height: 19px;
}

.batlab-buycard__disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  width: 100%;
  border-top: 1px solid var(--batlab-color-rule, #e4e8ef);
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
}

.batlab-buycard__disclaimer strong {
  font-weight: 700;
}

