/* Saldo da loja (crédito) e Promoções.
 *
 * Mora aqui, e não num <style> do template, por dois motivos:
 *  - pages/checkout.html tem teto de 64 KiB e estourou (422 no sync);
 *  - o layout serve Tailwind PRÉ-COMPILADO (<% tailwindcss inline %>), então
 *    classe utilitária que o tema nunca usou não existe no CSS entregue, e o
 *    styles/core.css não é linkado por ninguém.
 * Carregada pelo layout, gated por rota, igual a order.css/roleta.css.
 */
/* ---- Saldo da loja e Promoções -------------------------------------------
   CSS próprio de propósito: o layout serve Tailwind PRÉ-COMPILADO
   (<% tailwindcss inline %>), então classe utilitária que o tema nunca usou
   não existe no CSS entregue — e o styles/core.css não é linkado por ninguém.
   ------------------------------------------------------------------------ */
.lz-credit-divider { height: 1px; width: 100%; background: rgba(255,255,255,.1); margin: 10px 0; }

.lz-credit-block {
  align-items: center; gap: 12px; padding: 12px; cursor: pointer; margin-top: 10px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  background: rgba(255,255,255,.03); transition: border-color .15s ease, box-shadow .15s ease;
}
.lz-credit-block:not(.hidden) { display: flex; }
.lz-credit-block:hover { border-color: rgba(255,255,255,.22); }
.lz-credit-block[data-active="true"] { border-color: #002BFF; box-shadow: 0 0 0 2px rgba(0,43,255,.35); }

.lz-credit-icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; background: rgba(255,255,255,.05); color: #a1a1aa; transition: all .15s ease;
}
.lz-credit-icon[data-active="true"] { background: rgba(0,43,255,.15); color: #ffffff; }

.lz-credit-texts { min-width: 0; flex: 1; }
.lz-credit-title { display: block; font-size: .875rem; font-weight: 500; color: #ffffff; }
.lz-credit-hint { display: block; font-size: .75rem; color: #a1a1aa; margin-top: 2px; }

.lz-credit-check {
  display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: transparent; transition: all .15s ease;
}
.lz-credit-check[data-active="true"] { border-color: #002BFF; background: #002BFF; color: #ffffff; }

.luckzs-pricing-list .credit-value { color: #22c55e; }

.lz-promo-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 43, 255, 0.55);
  background: #0a0a0a;
  padding: 20px;
  margin-bottom: 16px;
}

.lz-promo-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.lz-promo-head__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #002BFF;
  background: rgba(0, 43, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lz-promo-head__text { min-width: 0; }

.lz-promo-head__text h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 900;
}

.lz-promo-head__text p {
  margin: 7px 0 0;
  color: #9ca3af;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.lz-promo-head__text strong { color: #7DA2FF; }

.lz-promo-bar-wrap { margin-top: 18px; }

.lz-promo-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #222222;
  overflow: hidden;
}

.lz-promo-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #002BFF 0%, #4B6BFF 100%);
  transition: width 0.35s ease;
}

.lz-promo-bar-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lz-promo-bar-meta > span:first-child {
  color: #9ca3af;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.lz-promo-badge {
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1.5px solid #7DA2FF;
  color: #7DA2FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.lz-promo-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }

.lz-promo-badge--soft {
  border-color: rgba(125, 162, 255, 0.35);
  color: #9ca3af;
  font-weight: 500;
  gap: 5px;
}
.lz-promo-badge--soft strong { color: #7DA2FF; font-weight: 800; }

.lz-promo-levels { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.lz-promo-levels.hidden { display: none; }

.lz-promo-level { display: flex; align-items: center; gap: 10px; }

.lz-promo-level__num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(125, 162, 255, 0.4);
  color: #9ca3af;
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.lz-promo-level__num.is-done { border-color: #7DA2FF; background: rgba(0, 43, 255, 0.18); color: #ffffff; }

.lz-promo-level__text {
  flex: 1;
  color: #9ca3af;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.lz-promo-level__text strong { color: #7DA2FF; }

/* Cards de recompensa dentro da oferta */
.lz-promo-rewards { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 280px; overflow-y: auto; }

.lz-promo-reward { display: flex; align-items: center; gap: 12px; }

.lz-promo-reward__thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 43, 255, 0.55);
  background: rgba(0, 43, 255, 0.1);
  color: #7DA2FF;
}
.lz-promo-reward__thumb img { width: 100%; height: 100%; object-fit: cover; }

.lz-promo-reward__info { min-width: 0; flex: 1; }
.lz-promo-reward__name { margin: 0; font-family: "Geist", sans-serif; font-size: 13px; font-weight: 700; color: #ffffff; overflow-wrap: break-word; }
.lz-promo-reward__from { margin: 4px 0 0; font-family: "Geist", sans-serif; font-size: 12px; color: #9ca3af; }
.lz-promo-reward__prices { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.lz-promo-reward__old { font-family: "Geist", sans-serif; font-size: 12px; line-height: 1; text-decoration: line-through; color: #6b7280; }
.lz-promo-reward__final { margin: 4px 0 0; font-family: "Geist", sans-serif; font-size: 14px; font-weight: 800; color: #ffffff; }

.lz-promo-add {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(90deg, #002BFF 0%, #4B6BFF 100%);
  color: #ffffff;
  font-family: "Geist", sans-serif;
  font-size: 12px;
  font-weight: 800;
  transition: opacity 0.15s ease;
}
.lz-promo-add:hover { opacity: 0.88; }

.lz-item-old { display: block; font-size: .6875rem; font-weight: 500; line-height: 1; text-decoration: line-through; color: rgba(255,255,255,.45); margin-bottom: 2px; }
.lz-item-badge { margin-left: 6px; vertical-align: middle; display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid #7DA2FF; color: #7DA2FF; padding: 0 6px; font-size: 11px; font-weight: 800; }

/* ---- Página do produto ---- */
.lz-cashback { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px;
  border: 1px solid rgba(0,43,255,.35); border-radius: 12px; background: rgba(0,43,255,.12); }
.lz-cashback__icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 9px; background: rgba(0,43,255,.25); color: #ffffff; }
.lz-cashback__text { font-size: .875rem; line-height: 1.25; color: #ffffff; }
.lz-cashback__text strong { font-weight: 700; }
.lz-cashback__text span { display: block; font-size: .75rem; color: #a1a1aa; margin-top: 2px; }
.lz-promo-list { margin-top: 12px; }
