/* Cashback — view Meu Cashback (premium B2B, alinhado a Padrões) */

.portal-cashback-page {
  --cb-gold: rgba(255, 200, 90, 0.95);
  --cb-gold-muted: rgba(255, 210, 140, 0.55);
  --cb-surface: rgba(18, 14, 10, 0.72);
  --cb-border: rgba(255, 200, 90, 0.14);
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.portal-cashback-hero {
  position: relative;
  padding: 1.35rem 1.25rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--cb-border);
  background: linear-gradient(145deg, rgba(255, 180, 60, 0.12), var(--cb-surface));
  margin-bottom: 0.85rem;
}

.portal-cashback-hero__refresh {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 90, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: var(--cb-gold-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.portal-cashback-hero__refresh:hover:not(:disabled) {
  background: rgba(255, 180, 60, 0.16);
  border-color: rgba(255, 200, 90, 0.45);
  color: var(--cb-gold);
}

.portal-cashback-hero__refresh:disabled {
  opacity: 0.65;
  cursor: wait;
}

.portal-cashback-hero__refresh.is-spinning svg {
  animation: portal-cb-refresh-spin 0.7s linear infinite;
}

@keyframes portal-cb-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.portal-cashback-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-gold-muted);
}

.portal-cashback-hero__amount {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 600;
  color: var(--cb-gold);
  line-height: 1.1;
}

.portal-cashback-hero__sub {
  margin: 0.45rem 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(255, 236, 210, 0.78);
}

.portal-cashback-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 90, 0.35);
  background: rgba(255, 180, 60, 0.14);
  color: rgba(255, 244, 220, 0.95);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.portal-cashback-hero__cta:hover {
  background: rgba(255, 180, 60, 0.22);
  border-color: rgba(255, 200, 90, 0.5);
}

.portal-cashback-cards {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .portal-cashback-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.portal-cashback-card--muted {
  opacity: 0.72;
}

.portal-cashback-card--muted .portal-cashback-card__value {
  color: var(--text-secondary, rgba(255, 255, 255, 0.45));
}

.portal-cashback-card--saved {
  border-color: rgba(120, 220, 160, 0.28);
  background: linear-gradient(155deg, rgba(40, 90, 60, 0.22), var(--cb-surface));
}

.portal-cashback-card--saved .portal-cashback-card__value {
  color: rgba(150, 235, 185, 0.95);
}

.portal-cashback-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--cb-border);
  background: var(--cb-surface);
}

.portal-cashback-card--warn {
  border-color: rgba(255, 140, 80, 0.35);
  background: rgba(255, 100, 40, 0.08);
}

.portal-cashback-card__label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cb-gold-muted);
}

.portal-cashback-card__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 236, 210, 0.92);
}

.portal-cashback-card__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 230, 190, 0.62);
}

.portal-cashback-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.portal-cashback-section__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 236, 210, 0.88);
}

.portal-cashback-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  color: rgba(255, 200, 90, 0.85);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-cashback-table-wrap {
  border-radius: 12px;
  border: 1px solid var(--cb-border);
  overflow: hidden;
  background: var(--cb-surface);
}

.portal-cashback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.portal-cashback-table th,
.portal-cashback-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 200, 90, 0.08);
}

.portal-cashback-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cb-gold-muted);
  background: rgba(0, 0, 0, 0.15);
}

.portal-cashback-table tr:last-child td {
  border-bottom: none;
}

.portal-cashback-table__amount--pos {
  color: rgba(120, 220, 160, 0.95);
  font-variant-numeric: tabular-nums;
}

.portal-cashback-table__amount--neg {
  color: rgba(255, 160, 120, 0.95);
  font-variant-numeric: tabular-nums;
}

.portal-cashback-upcoming {
  margin-top: 1.15rem;
}

.portal-cashback-table-wrap--upcoming {
  border-style: dashed;
  border-color: rgba(255, 200, 90, 0.22);
  background: rgba(255, 180, 60, 0.04);
}

.portal-cashback-table--upcoming td {
  color: rgba(255, 236, 210, 0.78);
}

.portal-cashback-status {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 236, 210, 0.8);
}

.portal-cashback-status--pendente { color: rgba(255, 210, 100, 0.95); }
.portal-cashback-status--disponivel { color: rgba(120, 220, 160, 0.95); }
.portal-cashback-status--usado { color: rgba(180, 200, 255, 0.9); }
.portal-cashback-status--vencido,
.portal-cashback-status--cancelado { color: rgba(255, 150, 120, 0.9); }
.portal-cashback-status--estorno { color: rgba(255, 150, 120, 0.95); }
.portal-cashback-status--devolvido { color: rgba(120, 220, 160, 0.95); }

.portal-cashback-faq {
  margin-top: 1.35rem;
}

.portal-cashback-faq__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 236, 210, 0.95);
  letter-spacing: 0.01em;
}

.portal-cashback-faq__sub {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 210, 140, 0.5);
}

.portal-cashback-faq__list {
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 90, 0.12);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.portal-cashback-faq__item {
  border-bottom: 1px solid rgba(255, 200, 90, 0.08);
}

.portal-cashback-faq__item:last-child {
  border-bottom: 0;
}

.portal-cashback-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 236, 210, 0.92);
  user-select: none;
}

.portal-cashback-faq__q::-webkit-details-marker {
  display: none;
}

.portal-cashback-faq__q::marker {
  content: "";
}

.portal-cashback-faq__chev {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid rgba(255, 200, 90, 0.65);
  border-bottom: 1.5px solid rgba(255, 200, 90, 0.65);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  opacity: 0.85;
}

.portal-cashback-faq__item[open] .portal-cashback-faq__chev {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.portal-cashback-faq__a {
  margin: 0;
  padding: 0 1rem 0.95rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 220, 170, 0.62);
}

/* Guided tour */
html.portal-cb-tour-lock,
html.portal-cb-tour-lock body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.portal-cb-tour-lock .client-panel__main.portal-cb-tour-lock-scroll {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.portal-cb-tour-shell {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.portal-cb-tour-panel {
  position: fixed;
  background: rgba(4, 3, 2, 0.84);
  pointer-events: auto;
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.portal-cb-tour-ring {
  position: fixed;
  z-index: 1;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px rgba(255, 200, 90, 0.72),
    0 0 0 4px rgba(255, 180, 60, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: top 0.18s ease, left 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.portal-cb-tour-highlight {
  position: relative;
  z-index: 12001 !important;
  isolation: isolate;
}

.portal-cb-tour-tip {
  position: fixed;
  z-index: 12002;
  max-width: min(340px, calc(100vw - 1.5rem));
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 90, 0.35);
  background: rgba(22, 16, 10, 0.98);
  color: rgba(255, 244, 220, 0.95);
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.portal-cb-tour-tip--mobile-bottom {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  max-width: none;
  width: 100%;
  border-radius: 16px 16px 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.42);
}

.portal-cb-tour-tip--mobile-top {
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: auto !important;
  max-width: none;
  width: 100%;
  border-radius: 0 0 16px 16px;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42);
}

.portal-cb-tour-tip__step {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 200, 90, 0.72);
}

.portal-cb-tour-tip__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 210, 100, 0.98);
}

.portal-cb-tour-tip__body {
  margin: 0;
}

.portal-cb-tour-tip__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  justify-content: flex-end;
}

.portal-cb-tour-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 90, 0.25);
  background: rgba(255, 180, 60, 0.12);
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.portal-cb-tour-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Padrões — linha cashback produto */
.portal-pad-product__cashback {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 200, 100, 0.82);
}

/* Carrinho — faixa estimativa (slot do desconto exclusivo) */
.portal-cart-cashback-strip {
  position: relative;
  margin: 14px 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 90, 0.16);
  background: linear-gradient(155deg, rgba(255, 180, 60, 0.07), rgba(18, 14, 10, 0.55));
  font-size: 0.72rem;
  color: rgba(255, 236, 210, 0.85);
  line-height: 1.5;
  text-align: center;
  overflow: visible;
}

.portal-cart-cashback-strip--upsell {
  padding: 0;
  border: none;
  background: none;
}

.portal-cart-cashback-strip__main {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 90, 0.16);
  background: linear-gradient(155deg, rgba(255, 180, 60, 0.07), rgba(18, 14, 10, 0.55));
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.portal-cart-cashback-strip__main.is-celebrate-flip {
  animation: portal-cb-main-flip-in 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  border-color: rgba(255, 210, 100, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 200, 90, 0.12), 0 8px 24px rgba(255, 180, 60, 0.14);
}

@keyframes portal-cb-main-flip-in {
  0% {
    transform: rotateX(-88deg) scale(0.94);
    opacity: 0.15;
  }
  55% {
    transform: rotateX(8deg) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: rotateX(0) scale(1);
    opacity: 1;
  }
}

.portal-cart-cashback-upsell.is-exiting-down {
  animation: portal-cb-upsell-exit-down 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.portal-cart-cashback-upsell.is-exiting-down .portal-cart-cashback-upsell__bar-shimmer::after {
  animation: none;
  opacity: 0;
}

@keyframes portal-cb-upsell-exit-down {
  0% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
  100% {
    transform: translateY(22px) scaleY(0);
    opacity: 0;
  }
}

.portal-cb-confetti {
  position: absolute;
  inset: -12px 0 auto;
  height: 96px;
  overflow: visible;
  pointer-events: none;
  z-index: 6;
}

.portal-cb-confetti__piece {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 6px;
  height: 9px;
  border-radius: 1px;
  opacity: 0;
  animation: portal-cb-confetti-burst var(--cb-d, 1.35s) cubic-bezier(0.16, 0.78, 0.22, 1) var(--cb-delay, 0s) forwards;
}

.portal-cb-confetti__piece--wide {
  width: 9px;
  height: 5px;
  border-radius: 2px;
}

@keyframes portal-cb-confetti-burst {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--cb-x, 0), var(--cb-y, -40px)) rotate(var(--cb-r, 180deg)) scale(0.55);
    opacity: 0;
  }
}

.portal-cart-cashback-strip--upsell .portal-cart-cashback-strip__main {
  margin-bottom: 0.55rem;
}

.portal-cart-cashback-upsell {
  padding: 0.75rem 0.85rem 0.7rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 200, 90, 0.32);
  background: linear-gradient(155deg, rgba(255, 180, 60, 0.1), rgba(18, 14, 10, 0.72));
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.portal-cart-cashback-upsell--await {
  opacity: 0;
  pointer-events: none;
}

.portal-cart-cashback-upsell.is-entering {
  pointer-events: auto;
  animation: portal-cb-upsell-slide-in 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.portal-cart-cashback-upsell.is-bar-ready:not(.is-entering):not(.is-exiting-down) {
  animation: none;
  transform: none;
  opacity: 1;
}

@keyframes portal-cb-upsell-slide-in {
  0% {
    transform: translateY(-22px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-cart-cashback-upsell--await {
    opacity: 1;
    pointer-events: auto;
  }

  .portal-cart-cashback-upsell.is-entering,
  .portal-cart-cashback-upsell.is-exiting-down {
    animation: none;
  }

  .portal-cart-cashback-upsell.is-bar-ready {
    opacity: 1;
  }

  /* Destaque estático do valor — sem flip 3D */
  .portal-cart-cashback-strip__main.is-celebrate-flip {
    animation: none;
    border-color: rgba(255, 210, 100, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 200, 90, 0.2), 0 0 28px rgba(255, 180, 60, 0.28);
    background: linear-gradient(155deg, rgba(255, 180, 60, 0.18), rgba(18, 14, 10, 0.62));
  }

  /* Estouro estático (peças já espalhadas) — antes ficavam opacity:0 e “sumiam” */
  .portal-cb-confetti--static .portal-cb-confetti__piece {
    animation: none;
    opacity: 0.95;
    transform: translate(var(--cb-x, 0), var(--cb-y, -40px)) rotate(var(--cb-r, 180deg)) scale(0.75);
  }

  .portal-cb-confetti:not(.portal-cb-confetti--static) .portal-cb-confetti__piece {
    animation: none;
    opacity: 0;
  }
}

.portal-cb-celebrate-badge {
  position: absolute;
  left: 50%;
  top: -0.15rem;
  transform: translate(-50%, -100%);
  z-index: 7;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #1a1408;
  background: linear-gradient(135deg, #ffe08a, #ffb84a);
  box-shadow: 0 4px 14px rgba(255, 180, 60, 0.35);
  pointer-events: none;
}

.portal-cart-cashback-upsell__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 196, 100, 0.62);
}

.portal-cart-cashback-upsell__title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 236, 210, 0.92);
}

.portal-cart-cashback-upsell__title strong {
  color: rgba(255, 210, 100, 0.98);
  font-weight: 600;
}

.portal-cart-cashback-upsell__bar {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  --cb-progress: 0%;
}

.portal-cart-cashback-upsell__bar-fill {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: var(--cb-progress);
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, rgba(255, 180, 60, 0.55), rgba(255, 210, 100, 0.95));
  transform: scaleY(0);
  transform-origin: top center;
  transition: none;
}

.portal-cart-cashback-upsell.is-entering:not(.is-bar-ready):not(.is-exiting-down) .portal-cart-cashback-upsell__bar-fill {
  animation: portal-cb-bar-fill-down 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s forwards;
}

.portal-cart-cashback-upsell.is-bar-ready .portal-cart-cashback-upsell__bar-fill {
  transform: scaleY(1);
  transition: width 0.25s ease;
}

@keyframes portal-cb-bar-fill-down {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}

.portal-cart-cashback-upsell__bar-shimmer {
  position: absolute;
  z-index: 2;
  top: 0;
  left: var(--cb-progress);
  right: 0;
  height: 100%;
  border-radius: 0 999px 999px 0;
  overflow: hidden;
  background: rgba(255, 200, 90, 0.07);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portal-cart-cashback-upsell.is-bar-ready:not(.is-exiting-down) .portal-cart-cashback-upsell__bar-shimmer {
  opacity: 1;
}

.portal-cart-cashback-upsell__bar-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 210, 100, 0.2) 35%,
    rgba(255, 235, 160, 0.65) 50%,
    rgba(255, 210, 100, 0.2) 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: none;
}

.portal-cart-cashback-upsell.is-bar-ready:not(.is-exiting-down) .portal-cart-cashback-upsell__bar-shimmer::after {
  animation: portal-cb-bar-shimmer 2.1s linear infinite;
}

.portal-cart-cashback-upsell.is-exiting-down .portal-cart-cashback-upsell__bar-fill {
  transform: scaleY(1);
  animation: portal-cb-bar-exit-down 0.45s cubic-bezier(0.455, 0.03, 0.515, 0.955) forwards;
  transform-origin: 50% 50%;
  transition: none;
}

@keyframes portal-cb-bar-exit-down {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0) translateY(6px);
    opacity: 0;
  }
}

@keyframes portal-cb-bar-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-cart-cashback-upsell.is-entering:not(.is-bar-ready) .portal-cart-cashback-upsell__bar-fill,
  .portal-cart-cashback-upsell.is-exiting-down .portal-cart-cashback-upsell__bar-fill {
    animation: none;
  }

  .portal-cart-cashback-upsell.is-bar-ready .portal-cart-cashback-upsell__bar-fill {
    transform: scaleY(1);
  }

  .portal-cart-cashback-upsell.is-bar-ready:not(.is-exiting-down) .portal-cart-cashback-upsell__bar-shimmer {
    opacity: 1;
  }

  .portal-cart-cashback-upsell__bar-shimmer::after {
    animation: none;
    transform: translateX(40%);
    opacity: 0.45;
  }
}

.portal-cart-cashback-strip strong {
  color: rgba(255, 210, 100, 0.98);
}

/* Checkout — bloco toggle compacto */
.portal-cart-cashback-block {
  margin: 0.65rem 0;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 200, 90, 0.28);
  background: linear-gradient(155deg, rgba(255, 180, 60, 0.08), rgba(18, 14, 10, 0.68));
}

.portal-cart-cashback-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.portal-cart-cashback-block--active .portal-cart-cashback-block__use {
  animation: portal-cb-checkout-use-in 0.22s ease both;
}

@keyframes portal-cb-checkout-use-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-cart-cashback-block__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.portal-cart-cashback-block__info-wrap {
  position: relative;
  flex-shrink: 0;
}

.portal-cart-cashback-block__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 200, 90, 0.12);
  color: rgba(255, 210, 120, 0.82);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.portal-cart-cashback-block__info:hover,
.portal-cart-cashback-block__info:focus-visible,
.portal-cart-cashback-block__info-wrap.is-open .portal-cart-cashback-block__info {
  background: rgba(255, 200, 90, 0.22);
  color: rgba(255, 230, 160, 0.98);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 200, 90, 0.18);
}

.portal-cart-cashback-block__tip {
  position: absolute;
  z-index: 24;
  left: 0;
  bottom: calc(100% + 7px);
  top: auto;
  padding: 0.32rem 0.52rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(255, 244, 228, 0.96);
  background: rgba(10, 8, 6, 0.97);
  border: 1px solid rgba(255, 200, 90, 0.38);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.portal-cart-cashback-block__tip::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 7px;
  top: auto;
  width: 7px;
  height: 7px;
  background: rgba(10, 8, 6, 0.97);
  border-right: 1px solid rgba(255, 200, 90, 0.38);
  border-bottom: 1px solid rgba(255, 200, 90, 0.38);
  transform: rotate(45deg);
}

.portal-cart-cashback-block__info-wrap.is-open .portal-cart-cashback-block__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .portal-cart-cashback-block__info-wrap:hover .portal-cart-cashback-block__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
}

.portal-cart-cashback-block__title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 236, 210, 0.92);
}

.portal-cart-cashback-block__saldo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.portal-cart-cashback-block__chip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 200, 90, 0.12);
  perspective: 320px;
}

.portal-cart-cashback-block__chip-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 210, 140, 0.58);
  white-space: nowrap;
}

.portal-cart-cashback-block__chip-value {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 230, 190, 0.92);
  white-space: nowrap;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.portal-cart-cashback-block__chip-value.rotate-vert-center {
  animation: portal-cb-chip-rotate-y 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
}

@keyframes portal-cb-chip-rotate-y {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.portal-cart-cashback-block__chip-value.is-limit-pulse {
  animation: portal-cb-liberado-limit-pulse 0.58s ease both;
}

@keyframes portal-cb-liberado-limit-pulse {
  0%,
  100% {
    transform: translateX(0);
    text-shadow: none;
    color: rgba(255, 230, 190, 0.92);
  }
  18% {
    transform: translateX(-1.5px);
  }
  36% {
    transform: translateX(1.5px);
    text-shadow: 0 0 10px rgba(255, 200, 90, 0.42);
    color: rgba(255, 244, 210, 1);
  }
  54% {
    transform: translateX(-1px);
    text-shadow: 0 0 8px rgba(255, 200, 90, 0.32);
  }
  72% {
    transform: translateX(0.75px);
    text-shadow: 0 0 6px rgba(255, 200, 90, 0.22);
  }
}

.portal-cart-cashback-block__amount {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.portal-cart-cashback-block__amount.is-disabled {
  opacity: 0.45;
}

.portal-cart-cashback-block__currency {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 210, 120, 0.72);
  flex-shrink: 0;
}

.portal-cart-cashback-block__bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  --cb-progress: 0%;
}

.portal-cart-cashback-block__bar-fill {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: var(--cb-progress);
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, rgba(255, 180, 60, 0.55), rgba(255, 210, 100, 0.95));
  transition: width 0.22s ease;
}

.portal-cart-cashback-block__bar-shimmer {
  position: absolute;
  z-index: 2;
  top: 0;
  left: var(--cb-progress);
  right: 0;
  height: 100%;
  border-radius: 0 999px 999px 0;
  overflow: hidden;
  background: rgba(255, 200, 90, 0.07);
  opacity: 1;
}

.portal-cart-cashback-block__bar-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 210, 100, 0.2) 35%,
    rgba(255, 235, 160, 0.65) 50%,
    rgba(255, 210, 100, 0.2) 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: portal-cb-bar-shimmer 2.1s linear infinite;
}

.portal-cart-totals--checkout {
  margin-top: 0.35rem;
}

.portal-cart-totals__row--earn {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(110, 212, 138, 0.22);
}

.portal-cart-totals__row--earn span:first-child {
  font-size: 0.68rem;
  color: rgba(140, 230, 170, 0.78);
}

.portal-cart-totals__row--earn span:last-child {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(110, 212, 138, 0.95);
}

.portal-cart-cashback-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.portal-cart-cashback-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.portal-cart-cashback-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.15s ease;
}

.portal-cart-cashback-toggle input:checked + .portal-cart-cashback-toggle__track {
  background: rgba(255, 180, 60, 0.55);
}

.portal-cart-cashback-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.portal-cart-cashback-toggle input:checked + .portal-cart-cashback-toggle__track::after {
  transform: translateX(18px);
}

.portal-cart-cashback-block__meta {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  color: rgba(255, 230, 190, 0.68);
  line-height: 1.4;
}

.portal-cart-cashback-block__input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 90, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 244, 220, 0.95);
  font: inherit;
  font-size: 0.82rem;
}

.portal-cart-cashback-block__input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.portal-cart-cashback-block__hint {
  margin: 0.35rem 0 0;
  font-size: 0.65rem;
  color: rgba(255, 210, 140, 0.55);
}

.portal-cart-cashback-block__warn {
  margin: 0.35rem 0 0;
  font-size: 0.65rem;
  color: rgba(255, 160, 120, 0.95);
}

@media (max-width: 420px) {
  .portal-cart-cashback-block__saldo-row {
    gap: 0.35rem;
  }

  .portal-cart-cashback-block__chip {
    padding: 0.32rem 0.42rem;
  }

  .portal-cart-cashback-block__chip-value {
    font-size: 0.68rem;
  }
}

.portal-cart-success__cashback {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 210, 100, 0.9);
}
