/* TPS VIP on the store (docs/STORE-INTEGRATION.md 3.1): the earn block in the product summary, the shop-card pill and
   the boost strip. Store palette: navy #14263b, muted #5b6a78, brand blue #1f7bb6, gold #9c7a34 / #d4a843 / #f0d078,
   cash-back green #12694a. Inter is the site font already; nothing is loaded here. Mobile first.
   The VIP reward card (2026-09-25) is compact and ordered below the Add to cart button. */

/* ---------- the card ---------- */
.tpsvip-earn {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  margin: 14px 0;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, .32);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7, #ffffff);
  box-shadow: 0 5px 16px -10px rgba(160, 120, 20, .4);
  color: #33404d;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}
/* the gold hairline along the top */
.tpsvip-earn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4a843, #f0d078 50%, #d4a843);
}
/* sit below the Add to cart button in the product summary (the CRO template orders its own children at 50) */
.summary.entry-summary .tpsvip-earn {
  order: 5 !important;
}

/* ---------- mark + brand ---------- */
.tpsvip-earn-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.tpsvip-earn-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(150deg, #14263b, #0b1a2b);
  box-shadow: 0 2px 5px rgba(15, 23, 42, .25);
}
.tpsvip-earn-mark svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: #f0d078;
}
.tpsvip-earn-brand {
  color: #9c7a34;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- the hero earn figure ---------- */
.tpsvip-earn-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tpsvip-earn-coin {
  width: 19px;
  height: 19px;
  flex: none;
  color: #d4a843;
}
.tpsvip-earn-coin svg {
  display: block;
  width: 19px;
  height: 19px;
}
.tpsvip-earn-main {
  color: #3a4653;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
}
.tpsvip-earn-main b {
  color: #a9760a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.tpsvip-earn-unit {
  color: #8a6d1f;
  font-size: 13px;
  font-weight: 700;
}
.tpsvip-earn-back {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(18, 105, 74, .2);
  border-radius: 999px;
  background: #e6f6ed;
  color: #12694a;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- the member's own rate, filled by store-earn.js after /checkout/me (reserve the row) ---------- */
.tpsvip-earn-you {
  min-height: 17px;
  margin-top: 6px;
  color: #5b6a78;
  font-size: 12px;
  line-height: 17px;
}
.tpsvip-earn-you b {
  color: #9c7a34;
  font-weight: 700;
}

/* ---------- the link with its arrow ---------- */
.tpsvip-earn-link,
.summary .tpsvip-earn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: #1f7bb6;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.tpsvip-earn-link svg {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}
.tpsvip-earn-link:hover svg,
.tpsvip-earn-link:focus svg {
  transform: translateX(3px);
}
.tpsvip-earn-link:hover,
.tpsvip-earn-link:focus {
  color: #14639b;
}

/* ---------- the boost strip (store-earn.js prepends it as the block's first child) ---------- */
.tpsvip-earn-boost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 10px;
  color: #9c7a34;
  font-size: 12px;
  line-height: 1.3;
}
.tpsvip-earn-boost-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e6c988, #c39a53 55%, #f0d89a);
  color: #14263b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.tpsvip-earn-boost-left {
  font-variant-numeric: tabular-nums;
}

/* ---------- the shop-card pill ---------- */
.tpsvip-loop-pts {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 9px 3px 7px;
  border: 1px solid rgba(195, 154, 83, .5);
  border-radius: 999px;
  background: #fffdf8;
  color: #9c7a34;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.tpsvip-loop-pts::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  background: url(art/sym-coins.webp) center / contain no-repeat;
  vertical-align: -3px;
}
