/* ==========================================================================
   Loyalty Points — WayAcross EcomBoost
   Paleta: #87B13B (primary), #295441 (dark green), #FFA41C (accent)
   ========================================================================== */

/* ── SVG icon base ─────────────────────────────────────────────────────── */
.pv-lp-product .pv-icon,
.pv-lp-cart-earn .pv-icon,
.pv-lp-confirm .pv-icon,
.pv-lp-checkout .pv-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Product points badge (ficha de produto + listing) ─────────────────── */
.pv-lp-product {
  display: block;
  line-height: 1;
}

/* Versão completa na ficha de produto — pill proeminente */
.pv-lp-product--detail {
  margin-top: 10px;
}

.pv-lp-product__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  background: #295441;
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1px;
  user-select: none;
}

.pv-lp-product__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.pv-lp-product__label {
  opacity: 0.85;
  font-weight: 400;
}

.pv-lp-product__pts {
  font-weight: 700;
  font-size: 14px;
  color: #87B13B;
}

/* Versão compacta nos cards de listagem */
.pv-lp-product--listing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 11px;
  color: #87B13B;
  letter-spacing: 0.2px;
}

.pv-lp-product--listing strong {
  color: #295441;
  font-weight: 700;
}

/* ── Cart earn ("vais ganhar X pontos") ────────────────────────────────── */
.pv-lp-cart-earn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(135, 177, 59, 0.08);
  border-top: 1px solid rgba(135, 177, 59, 0.2);
  font-size: 12px;
  color: #295441;
}

.pv-lp-cart-earn strong {
  color: #87B13B;
  font-weight: 700;
}

/* ── Order confirmation ────────────────────────────────────────────────── */
.pv-lp-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin: 14px 0;
  background: rgba(135, 177, 59, 0.08);
  border: 1px solid rgba(135, 177, 59, 0.3);
  border-radius: 8px;
  font-size: 14px;
  color: #295441;
}

.pv-lp-confirm strong {
  color: #87B13B;
}

/* ── Checkout widget ───────────────────────────────────────────────────── */
.pv-lp-checkout {
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(41, 84, 65, 0.04);
  border: 1px solid rgba(41, 84, 65, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #282828;
}

.pv-lp-checkout__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #295441;
}

.pv-lp-checkout__title {
  font-weight: 700;
  font-size: 14px;
}

.pv-lp-checkout__balance {
  margin-bottom: 12px;
  color: #1e3d2a;
}

.pv-lp-checkout__value {
  color: #6a7a5a;
}

/* Presets (botões rápidos) */
.pv-lp-checkout__presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pv-lp-checkout__preset {
  padding: 6px 12px;
  border: 1px solid rgba(135, 177, 59, 0.5);
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #295441;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.3;
}

.pv-lp-checkout__preset:hover,
.pv-lp-checkout__preset.is-selected {
  background: #87B13B;
  border-color: #87B13B;
  color: #fff;
}

.pv-lp-checkout__preset small {
  font-weight: 400;
  opacity: 0.8;
}

/* Input + Apply */
.pv-lp-checkout__custom {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pv-lp-checkout__input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  max-width: 180px;
}

.pv-lp-checkout__input:focus {
  border-color: #87B13B;
  outline: none;
}

.pv-lp-checkout__btn {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.pv-lp-checkout__btn--apply {
  background: #295441;
  color: #fff;
}

.pv-lp-checkout__btn--apply:hover {
  background: #1e3d2a;
}

.pv-lp-checkout__btn--remove {
  background: #e8e8e8;
  color: #444;
}

.pv-lp-checkout__btn--remove:hover {
  background: #d0d0d0;
}

/* Active redemption */
.pv-lp-checkout__active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(135, 177, 59, 0.1);
  border-radius: 6px;
}

.pv-lp-checkout__applied strong {
  color: #295441;
}

/* Info text */
.pv-lp-checkout__info {
  margin: 0;
  font-size: 12px;
  color: #6a7a5a;
}

/* Earn preview */
.pv-lp-checkout__earn {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(41, 84, 65, 0.1);
  font-size: 12px;
  color: #87B13B;
  font-weight: 600;
}

/* Feedback */
.pv-lp-checkout__feedback {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.pv-lp-checkout__feedback--success {
  background: rgba(135, 177, 59, 0.15);
  color: #295441;
}

.pv-lp-checkout__feedback--error {
  background: rgba(255, 164, 28, 0.15);
  color: #7a4a00;
}

/* ── Account link badge ────────────────────────────────────────────────── */
.pv-lp-badge {
  display: inline-block;
  background: #87B13B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Account page ──────────────────────────────────────────────────────── */
.pv-lp-account {
  color: #282828;
}

/* Balance card */
.pv-lp-account__balance-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #1e3d2a 0%, #295441 40%, #3a765c 100%);
  border-radius: 14px;
  color: #fff;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(41, 84, 65, 0.25);
  overflow: hidden;
}

.pv-lp-account__balance-deco {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(135, 177, 59, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pv-lp-account__balance-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  opacity: 0.9;
}

.pv-lp-account__balance-info {
  flex: 1;
  min-width: 0;
}

.pv-lp-account__balance-label {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pv-lp-account__balance-number {
  display: block;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.pv-lp-account__balance-number small {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 2px;
}

.pv-lp-account__balance-equiv {
  display: block;
  font-size: 14px;
  opacity: 0.6;
  margin-top: 4px;
  font-weight: 500;
}

.pv-lp-account__balance-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.pv-lp-account__balance-cta:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  text-decoration: none;
}

/* Info grid */
.pv-lp-account__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.pv-lp-account__info-block {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e8eed9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(41, 84, 65, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pv-lp-account__info-block:hover {
  box-shadow: 0 4px 16px rgba(41, 84, 65, 0.1);
  border-color: rgba(135, 177, 59, 0.35);
}

.pv-lp-account__info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(135, 177, 59, 0.15);
  color: #295441;
}

.pv-lp-account__info-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #295441;
  margin: 0;
}

.pv-lp-account__info-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.pv-lp-account__info-block li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pv-lp-account__info-block li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pv-lp-account__info-block li:first-child {
  padding-top: 0;
}

.pv-lp-account__li-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #f2f7e8;
  border-radius: 8px;
  color: #87B13B;
  margin-top: 1px;
}

.pv-lp-account__info-block--use .pv-lp-account__li-icon {
  background: #eef4f1;
  color: #295441;
}

.pv-lp-account__info-block li span:last-child {
  padding-top: 5px;
}

.pv-lp-account__info-block li strong {
  color: #295441;
  font-weight: 700;
}

/* History */
.pv-lp-account__history {
  background: #fff;
  border: 1px solid #e8eed9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(41, 84, 65, 0.06);
  padding: 22px;
}

.pv-lp-account__history-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(135, 177, 59, 0.15);
  color: #295441;
}

.pv-lp-account__history-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #295441;
  margin: 0;
}

.pv-lp-account__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pv-lp-account__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pv-lp-account__table thead {
  position: sticky;
  top: 0;
}

.pv-lp-account__table th {
  text-align: left;
  padding: 10px 14px;
  background: #f6f8f3;
  color: #6a7a5a;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8eed9;
}

.pv-lp-account__table th:first-child {
  border-radius: 8px 0 0 0;
}

.pv-lp-account__table th:last-child {
  border-radius: 0 8px 0 0;
}

.pv-lp-account__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2ed;
  vertical-align: middle;
}

.pv-lp-account__table tbody tr {
  transition: background 0.15s;
}

.pv-lp-account__table tbody tr:hover {
  background: rgba(135, 177, 59, 0.04);
}

.pv-lp-account__table tbody tr:last-child td {
  border-bottom: none;
}

.pv-lp-account__points {
  white-space: nowrap;
}

.pv-lp-account__points-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  min-width: 50px;
  text-align: center;
}

.pv-lp-row--earn .pv-lp-account__points-badge {
  background: rgba(135, 177, 59, 0.12);
  color: #5a8a1a;
}

.pv-lp-row--spend .pv-lp-account__points-badge {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.pv-lp-account__type-pill {
  display: inline-block;
  padding: 3px 10px;
  background: #f0f2ed;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
}

.pv-lp-row--earn .pv-lp-account__type-pill {
  background: rgba(41, 84, 65, 0.08);
  color: #295441;
}

.pv-lp-account__order-ref {
  display: inline-block;
  padding: 1px 6px;
  background: #f4f4f2;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin-left: 4px;
}

.pv-lp-account__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.pv-lp-account__empty svg {
  opacity: 0.3;
}

.pv-lp-account__empty p {
  margin: 0;
  font-size: 14px;
  color: #888;
}

/* Mobile */
@media (max-width: 768px) {
  .pv-lp-account__info-grid {
    grid-template-columns: 1fr;
  }

  .pv-lp-account__balance-card {
    flex-wrap: wrap;
    padding: 20px;
  }

  .pv-lp-account__balance-number {
    font-size: 30px;
  }

  .pv-lp-account__balance-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .pv-lp-account__history {
    padding: 16px;
  }

  /* Responsive table — cards on mobile */
  .pv-lp-account__table thead {
    display: none;
  }

  .pv-lp-account__table,
  .pv-lp-account__table tbody,
  .pv-lp-account__table tr,
  .pv-lp-account__table td {
    display: block;
    width: 100%;
  }

  .pv-lp-account__table tr {
    padding: 12px 0;
    border-bottom: 1px solid #f0f2ed;
  }

  .pv-lp-account__table tr:last-child {
    border-bottom: none;
  }

  .pv-lp-account__table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: none;
    font-size: 13px;
  }

  .pv-lp-account__table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6a7a5a;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .pv-lp-checkout__custom {
    flex-direction: column;
  }

  .pv-lp-checkout__input {
    max-width: 100%;
  }
}
