/* Carrinho + checkout — Padrões (drawer lateral) */

.portal-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.2);
  background: rgba(255, 200, 90, 0.06);
  color: rgba(255, 210, 140, 0.85);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portal-cart-trigger:hover {
  background: rgba(255, 200, 90, 0.12);
  border-color: rgba(255, 210, 120, 0.35);
  color: rgba(255, 228, 170, 0.98);
}

.portal-cart-trigger svg {
  width: 20px;
  height: 20px;
}

.portal-cart-trigger__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e53935;
  border: 2px solid rgba(12, 10, 8, 0.95);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  color: #fff;
  text-align: center;
}

.portal-cart-trigger__badge:empty,
.portal-cart-trigger__badge[hidden] {
  display: none;
}

.portal-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.portal-cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.portal-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 210;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 12, 8, 0.99), rgba(8, 6, 5, 1));
  border-left: 1px solid rgba(255, 210, 120, 0.14);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-cart-drawer.is-open {
  transform: translateX(0);
}

.portal-cart-drawer__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  padding-top: max(16px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 210, 120, 0.1);
}

.portal-cart-drawer__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 236, 210, 0.95);
}

.portal-cart-drawer__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 210, 120, 0.16);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 210, 140, 0.7);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.portal-cart-steps {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
}

.portal-cart-step {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 210, 120, 0.12);
}

.portal-cart-step.is-done,
.portal-cart-step.is-active {
  background: rgba(255, 200, 90, 0.65);
}

.portal-cart-drawer__body {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px 16px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  perspective: 900px;
}

.portal-cart-empty {
  padding: 32px 8px;
  text-align: center;
  color: rgba(255, 210, 140, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.portal-cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 120, 0.1);
  background: rgba(255, 200, 90, 0.03);
  min-width: 0;
  max-width: 100%;
}

.portal-cart-line--blocked {
  border-color: rgba(229, 57, 53, 0.35);
  background: rgba(229, 57, 53, 0.06);
}

.portal-cart-validation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
}

.portal-cart-validation--loading {
  color: rgba(255, 210, 140, 0.75);
  background: rgba(255, 200, 90, 0.06);
  border: 1px solid rgba(255, 210, 120, 0.12);
}

.portal-cart-validation--warn {
  color: rgba(255, 193, 120, 0.95);
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.22);
}

.portal-cart-validation--error {
  color: rgba(255, 180, 170, 0.98);
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.28);
}

.portal-cart-validation--info {
  color: rgba(255, 220, 160, 0.92);
  background: rgba(255, 200, 90, 0.08);
  border: 1px solid rgba(255, 210, 120, 0.18);
}

.portal-cart-loading {
  animation: portal-cart-loading-in 0.2s ease;
}

@keyframes portal-cart-loading-in {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.portal-cart-lines--loading {
  margin-top: 4px;
}

.portal-cart-line--skeleton {
  pointer-events: none;
  border-color: rgba(255, 210, 120, 0.08);
  background: rgba(255, 200, 90, 0.02);
}

.portal-cart-skeleton {
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 200, 90, 0.05) 0%,
    rgba(255, 210, 120, 0.16) 45%,
    rgba(255, 200, 90, 0.05) 100%
  );
  background-size: 220% 100%;
  animation: portal-cart-shimmer 1.15s ease-in-out infinite;
}

.portal-cart-line--skeleton .portal-cart-line__thumb.portal-cart-skeleton {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.portal-cart-skeleton--title {
  height: 12px;
  width: 82%;
  margin-bottom: 8px;
}

.portal-cart-skeleton--meta {
  height: 9px;
  width: 44%;
  margin-bottom: 12px;
}

.portal-cart-skeleton--price {
  height: 13px;
  width: 38%;
  margin-bottom: 10px;
}

.portal-cart-line__foot--skeleton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.portal-cart-skeleton--qty {
  height: 28px;
  width: 88px;
  border-radius: 999px;
}

.portal-cart-skeleton--sum {
  height: 16px;
  width: 72px;
}

.portal-cart-totals--skeleton {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 210, 120, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.portal-cart-skeleton--row {
  height: 11px;
  width: 58%;
}

.portal-cart-skeleton--total {
  height: 17px;
  width: 42%;
  margin-top: 4px;
}

@keyframes portal-cart-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.portal-cart-line__alert {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.portal-cart-line__alert--error {
  color: rgba(255, 160, 150, 0.95);
}

.portal-cart-line__alert--info {
  color: rgba(255, 210, 140, 0.75);
}

.portal-cart-price-was {
  text-decoration: line-through;
  opacity: 0.72;
}

.portal-cart-line__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.portal-cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}

.portal-cart-line__name {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 236, 210, 0.92);
}

.portal-cart-line__meta {
  margin: 0;
  font-size: 10px;
  color: rgba(255, 210, 140, 0.45);
}

.portal-cart-line__body {
  min-width: 0;
}

.portal-cart-line__rate {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 200, 90, 0.95);
}

.portal-cart-line__rate span {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 210, 140, 0.48);
}

.portal-cart-line__pack-hint {
  margin: 2px 0 0;
  font-size: 10px;
  color: rgba(255, 210, 140, 0.42);
}

.portal-cart-line__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.portal-cart-line__sum {
  text-align: right;
  min-width: 0;
}

.portal-cart-line__vol {
  margin: 0 0 2px;
  font-size: 10px;
  color: rgba(255, 210, 140, 0.45);
  font-variant-numeric: tabular-nums;
}

.portal-cart-line__price {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 236, 210, 0.95);
  font-variant-numeric: tabular-nums;
}

.portal-cart-qty-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.portal-cart-qty-wrap.is-limit-hit .portal-cart-qty {
  animation: portal-cart-qty-shake 0.35s ease;
  border-color: rgba(229, 57, 53, 0.45);
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4), 0 4px 12px -2px rgba(229, 57, 53, 0.35);
}

@keyframes portal-cart-qty-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-3px);
  }
  40%,
  80% {
    transform: translateX(3px);
  }
}

.portal-cart-qty-hint {
  margin: 0;
  font-size: 10px;
  line-height: 1.25;
  color: rgba(255, 160, 150, 0.88);
  max-width: 120px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.portal-cart-qty-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 120, 0.16);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.35s ease-out;
}

.portal-cart-qty button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: rgba(255, 200, 90, 0.08);
  color: rgba(255, 210, 140, 0.8);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-cart-qty__plus.is-at-max {
  color: rgba(255, 160, 150, 0.55);
  background: rgba(229, 57, 53, 0.06);
  cursor: default;
}

.portal-cart-qty-wrap.is-limit-hit .portal-cart-qty__plus.is-at-max {
  background: rgba(229, 57, 53, 0.14);
  color: rgba(255, 180, 170, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .portal-cart-qty-wrap.is-limit-hit .portal-cart-qty {
    animation: none;
  }
}

.portal-cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 236, 210, 0.9);
}

.portal-cart-line__remove {
  padding: 4px;
  border: none;
  background: none;
  color: rgba(255, 160, 140, 0.55);
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
}

.portal-cart-exclusive {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(110, 210, 130, 0.22);
  background: rgba(110, 210, 130, 0.08);
  font-size: 11px;
  color: rgba(150, 235, 170, 0.92);
  text-align: center;
}

.portal-cart-totals {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 210, 120, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.portal-cart-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 210, 140, 0.55);
}

.portal-cart-totals__row--discount span:last-child {
  color: rgba(110, 210, 130, 0.92);
}

.portal-cart-totals__row--grand {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 210, 120, 0.12);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 236, 210, 0.95);
}

.portal-cart-totals__row--grand span:last-child {
  color: rgba(255, 200, 90, 0.98);
}

.portal-cart-drawer__foot {
  flex-shrink: 0;
  min-width: 0;
  padding: 12px 16px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 210, 120, 0.1);
  background: rgba(8, 6, 5, 0.98);
}

.portal-cart-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.22);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portal-cart-btn--primary {
  background: rgba(255, 200, 90, 0.18);
  color: rgba(255, 228, 170, 0.98);
}

.portal-cart-btn--primary:hover:not(:disabled) {
  background: rgba(255, 200, 90, 0.28);
}

.portal-cart-btn--ghost {
  margin-top: 8px;
  background: transparent;
  color: rgba(255, 210, 140, 0.6);
}

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

.portal-cart-checkout-block {
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

.portal-cart-checkout-block__title {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 210, 140, 0.4);
}

.portal-cart-checkout-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.portal-cart-checkout-block__head .portal-cart-checkout-block__title {
  margin: 0;
}

.portal-cart-link {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 11px;
  color: rgba(120, 200, 255, 0.88);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-cart-link:hover {
  color: rgba(190, 230, 255, 0.95);
}

.portal-cart-addr-compact {
  margin-bottom: 10px;
}

.portal-cart-addr-compact__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.portal-cart-addr-compact__head .portal-cart-checkout-block__title {
  margin: 0;
}

.portal-cart-addr-compact__hint {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 210, 140, 0.42);
  white-space: nowrap;
}

.portal-cart-addr-compact__hint .portal-cart-link {
  font-size: 10px;
}

.portal-cart-addr-compact__sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 210, 140, 0.52);
  font-weight: 400;
}

.portal-cart-addr-collapsed {
  margin-bottom: 4px;
}

.portal-cart-addr-expand {
  display: block;
  width: 100%;
  margin: 4px 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 210, 120, 0.22);
  background: rgba(255, 200, 90, 0.04);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 220, 170, 0.88);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.portal-cart-addr-expand:hover {
  border-color: rgba(255, 210, 120, 0.38);
  background: rgba(255, 200, 90, 0.08);
}

.portal-cart-addr-expanded {
  margin-bottom: 4px;
}

.portal-cart-addr-block {
  padding-bottom: 4px;
}

.portal-cart-addr-summary {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 220, 170, 0.72);
}

.portal-cart-addr-empty {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 210, 140, 0.55);
}

.portal-cart-addr-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(130, 220, 160, 0.28);
  background: rgba(130, 220, 160, 0.06);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 230, 190, 0.82);
}

.portal-cart-addr-card__name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 248, 240, 0.95);
}

.portal-cart-addr-card__doc {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 210, 140, 0.55);
}

.portal-cart-addr-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 200, 90, 0.12);
  border: 1px solid rgba(255, 200, 90, 0.28);
  color: rgba(255, 228, 170, 0.88);
  vertical-align: middle;
}

.portal-cart-conta-loading,
.portal-cart-conta-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  font-size: 13px;
  color: rgba(255, 210, 140, 0.72);
}

.portal-cart-conta-error p {
  margin: 0;
  width: 100%;
}
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-cart-addr-locs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-cart-addr-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.14);
  background: rgba(255, 200, 90, 0.03);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.portal-cart-addr-opt:hover {
  border-color: rgba(255, 210, 120, 0.28);
  background: rgba(255, 200, 90, 0.06);
}

.portal-cart-addr-opt.is-disabled,
.portal-cart-addr-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.portal-cart-addr-opt.is-disabled:hover,
.portal-cart-addr-opt:disabled:hover {
  border-color: rgba(255, 210, 120, 0.14);
  background: transparent;
}

.portal-cart-addr-card__doc--badged {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-cart-addr-card__doc--badged .portal-conta-verified,
.portal-cart-addr-card__doc--badged .portal-conta-status--inline {
  flex-shrink: 0;
}

.portal-cart-addr-opt .portal-cart-addr-card__doc {
  font-size: 11px;
  color: rgba(255, 210, 140, 0.55);
  margin-top: 2px;
}

.portal-cart-addr-opt.is-selected {
  border-color: rgba(130, 220, 160, 0.38);
  background: rgba(130, 220, 160, 0.08);
}

.portal-cart-addr-opt__radio {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 140, 0.35);
}

.portal-cart-addr-opt.is-selected .portal-cart-addr-opt__radio {
  border-color: rgba(130, 220, 160, 0.9);
  background: radial-gradient(circle at center, rgba(130, 220, 160, 0.95) 0 4px, transparent 5px);
}

.portal-cart-addr-opt__body {
  flex: 1;
  min-width: 0;
}

.portal-cart-addr-opt__name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 230, 190, 0.92);
  line-height: 1.35;
}

.portal-cart-addr-opt__meta {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 210, 140, 0.52);
  overflow-wrap: anywhere;
}

.portal-cart-address {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.12);
  background: rgba(255, 200, 90, 0.04);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 230, 190, 0.82);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-cart-pay-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-cart-pay-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.14);
  background: rgba(255, 200, 90, 0.03);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.portal-cart-pay-opt.is-selected {
  border-color: rgba(255, 200, 90, 0.4);
  background: rgba(255, 200, 90, 0.1);
}

.portal-cart-pay-opt__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 120, 0.35);
  flex-shrink: 0;
}

.portal-cart-pay-opt.is-selected .portal-cart-pay-opt__radio {
  border-color: rgba(255, 200, 90, 0.9);
  box-shadow: inset 0 0 0 3px rgba(12, 10, 8, 0.95), inset 0 0 0 5px rgba(255, 200, 90, 0.85);
}

.portal-cart-pay-opt__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 236, 210, 0.92);
}

.portal-cart-pay-opt__hint {
  display: block;
  font-size: 10px;
  color: rgba(255, 210, 140, 0.45);
  margin-top: 2px;
}

.portal-cart-totals__pending {
  font-size: 11px;
  color: rgba(255, 210, 140, 0.45);
  font-style: italic;
}

.portal-cart-totals__hint {
  margin: 6px 0 0;
  font-size: 10px;
  color: rgba(255, 210, 140, 0.38);
  text-align: right;
}

.portal-cart-order-summary {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.1);
  background: rgba(255, 200, 90, 0.03);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 210, 140, 0.55);
}

.portal-cart-order-summary p {
  margin: 0;
}

.portal-cart-order-summary p + p {
  margin-top: 4px;
}

.portal-cart-freight-block {
  margin: 14px 0 12px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 210, 120, 0.1);
}

.portal-cart-totals__loading {
  font-size: 11px;
  color: rgba(255, 200, 90, 0.7);
  animation: portal-frenet-pulse 1.2s ease-in-out infinite;
}

@keyframes portal-frenet-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.portal-frenet-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.12);
  background: rgba(255, 200, 90, 0.04);
  font-size: 12px;
  color: rgba(255, 210, 140, 0.65);
}

.portal-frenet-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 120, 0.2);
  border-top-color: rgba(255, 200, 90, 0.85);
  animation: portal-frenet-spin 0.75s linear infinite;
  flex-shrink: 0;
}

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

.portal-frenet-loading__text {
  line-height: 1.35;
}

.portal-frenet-error {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(229, 57, 53, 0.35);
  background: rgba(229, 57, 53, 0.08);
}

.portal-frenet-error__msg {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 180, 170, 0.92);
}

.portal-frenet-retry,
.portal-frenet-calc {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 120, 0.25);
  background: rgba(255, 200, 90, 0.08);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 228, 170, 0.95);
  cursor: pointer;
}

.portal-frenet-retry:hover,
.portal-frenet-calc:hover {
  background: rgba(255, 200, 90, 0.14);
}

.portal-frenet-prompt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.portal-frenet-opt:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.portal-frenet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.portal-frenet-head .portal-cart-checkout-block__title {
  margin-bottom: 0;
}

.portal-frenet-brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 200, 90, 0.55);
}

.portal-frenet-hint {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 210, 140, 0.38);
}

.portal-frenet-hint code {
  font-size: 9px;
  color: rgba(255, 210, 140, 0.5);
}

.portal-frenet-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-frenet-opt {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.14);
  background: rgba(255, 200, 90, 0.03);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.portal-frenet-opt.is-selected {
  border-color: rgba(255, 200, 90, 0.4);
  background: rgba(255, 200, 90, 0.1);
}

.portal-frenet-opt__radio {
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 120, 0.35);
  flex-shrink: 0;
}

.portal-frenet-opt.is-selected .portal-frenet-opt__radio {
  border-color: rgba(255, 200, 90, 0.9);
  box-shadow: inset 0 0 0 3px rgba(12, 10, 8, 0.95), inset 0 0 0 5px rgba(255, 200, 90, 0.85);
}

.portal-frenet-opt__body {
  min-width: 0;
}

.portal-frenet-opt__name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 236, 210, 0.92);
  overflow-wrap: anywhere;
}

.portal-frenet-opt__meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: rgba(255, 210, 140, 0.45);
}

.portal-frenet-opt__price {
  grid-row: 1 / span 2;
  grid-column: 3;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 228, 170, 0.95);
  white-space: nowrap;
}

.portal-frenet-opt__badge {
  position: absolute;
  top: -6px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 200, 90, 0.18);
  border: 1px solid rgba(255, 200, 90, 0.35);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 228, 170, 0.9);
}

.portal-cart-address__eta {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 200, 90, 0.65);
  opacity: 0.85;
}

.portal-cart-address__hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(255, 210, 140, 0.42);
}

.portal-cart-success__freight {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(255, 210, 140, 0.6);
  line-height: 1.45;
}

.portal-cart-success {
  padding: 24px 8px;
  text-align: center;
}

.portal-cart-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(110, 210, 130, 0.15);
  color: rgba(150, 235, 170, 0.95);
  font-size: 24px;
}

.portal-cart-success__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
}

.portal-cart-success__ref {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(255, 210, 140, 0.55);
}

.portal-cart-success__bling {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(180, 230, 200, 0.92);
}

.portal-cart-success__warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 180, 120, 0.35);
  background: rgba(255, 160, 80, 0.12);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 210, 170, 0.95);
  text-align: left;
}

.portal-cart-success__warn strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: rgba(255, 230, 200, 0.98);
}

.portal-cart-success__warn p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 200, 160, 0.9);
}

.portal-cart-success__hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 236, 210, 0.78);
}

.portal-cart-success__pix {
  margin: 0 auto 16px;
  max-width: 320px;
  text-align: center;
}

.portal-cart-success__qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.portal-cart-success__qr-img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.portal-cart-success__pix-copy {
  margin: 0 0 10px;
  text-align: left;
}

.portal-cart-success__pix-wait {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 210, 140, 0.7);
  animation: portal-pix-pulse 1.6s ease-in-out infinite;
}

@keyframes portal-pix-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* —— Checkout Pagar.me (mock cliente) —— */

.portal-pg-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.12);
  background: rgba(255, 200, 90, 0.05);
  min-width: 0;
  max-width: 100%;
}

.portal-pg-brand__label {
  font-size: 10px;
  color: rgba(255, 210, 140, 0.45);
}

.portal-pg-brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 228, 170, 0.98);
}

.portal-pg-tabs {
  display: grid;
  grid-template-columns: repeat(var(--pg-tab-count, 3), minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  min-width: 0;
}

.portal-pg-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 120, 0.14);
  background: rgba(255, 200, 90, 0.04);
  color: rgba(255, 210, 140, 0.55);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portal-pg-tab__icon {
  font-size: 16px;
  line-height: 1;
}

.portal-pg-tab.is-active {
  border-color: rgba(255, 200, 90, 0.42);
  background: rgba(255, 200, 90, 0.14);
  color: rgba(255, 228, 170, 0.98);
}

.portal-pg-panel__placeholder {
  margin: 4px 0 0;
  padding: 12px 8px 4px;
  text-align: center;
}

.portal-pg-panel {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 120, 0.12);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.portal-pg-panel__lead {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 230, 190, 0.88);
}

.portal-pg-panel__lead-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 210, 140, 0.55);
}

.portal-pg-pix-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(150, 235, 170, 0.35);
  background: rgba(80, 180, 110, 0.12);
  color: rgba(170, 255, 195, 0.95);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.portal-pg-panel__warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 90, 0.25);
  background: rgba(255, 80, 60, 0.08);
  font-size: 12px;
  color: rgba(255, 190, 170, 0.92);
}

.portal-pg-panel__lead strong {
  color: rgba(255, 200, 90, 0.95);
}

.portal-pg-panel__amount {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 200, 90, 0.95);
}

.portal-pg-panel__timer {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(150, 235, 170, 0.85);
  text-align: center;
}

.portal-pg-panel__timer.is-expired {
  color: rgba(255, 140, 120, 0.95);
}

.portal-pg-panel__ref {
  margin: 0 0 10px;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 210, 140, 0.55);
}

.portal-pg-panel__note--wait {
  text-align: center;
  color: rgba(255, 210, 140, 0.7);
  animation: portal-pix-pulse 1.6s ease-in-out infinite;
}

.portal-pg-tabs.is-locked {
  opacity: 0.72;
  pointer-events: none;
}

.portal-pg-qr--live {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.portal-pg-qr__img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.portal-pg-qr__placeholder {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  color: #666;
  font-size: 12px;
}

.portal-pg-qr--idle {
  margin-bottom: 8px;
}

.portal-pg-qr__idle-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px dashed rgba(255, 210, 140, 0.35);
  background: rgba(255, 200, 90, 0.06);
  color: rgba(255, 210, 140, 0.55);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.portal-pg-panel__interest {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 120, 0.14);
  background: rgba(255, 200, 90, 0.06);
  font-size: 12px;
  color: rgba(255, 236, 210, 0.9);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-pg-panel__interest--with-fees {
  border-color: rgba(255, 170, 90, 0.22);
  background: rgba(255, 140, 60, 0.08);
}

.portal-pg-panel__interest strong {
  color: rgba(255, 200, 90, 0.98);
}

.portal-pg-panel__note {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.45;
  color: rgba(255, 210, 140, 0.45);
}

.portal-pg-panel__note code {
  font-size: 9px;
  color: rgba(255, 210, 140, 0.42);
}

.portal-pg-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.portal-pg-qr__mock {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #fff 2px, transparent 1%) center,
    linear-gradient(#fff 2px, transparent 1%) center,
    #111;
  background-size: 8px 8px;
  border: 8px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.portal-pg-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-pg-copy__code {
  display: block;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 120, 0.1);
  background: rgba(0, 0, 0, 0.35);
  font-size: 9px;
  line-height: 1.4;
  word-break: break-all;
  color: rgba(255, 210, 140, 0.55);
}

.portal-pg-copy__code--boleto {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.portal-pg-copy__btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 120, 0.28);
  background: rgba(255, 200, 90, 0.12);
  color: rgba(255, 228, 170, 0.95);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.portal-pg-copy__btn:hover {
  background: rgba(255, 200, 90, 0.22);
}

.portal-pg-boleto-bar {
  height: 48px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0,
    #fff 2px,
    #111 2px,
    #111 4px
  );
  opacity: 0.85;
}

.portal-pg-boleto-barcode {
  margin: 8px 0 12px;
  padding: 10px 8px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.portal-pg-boleto-barcode__img {
  display: block;
  width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.portal-pg-boleto-barcode__svg {
  display: block;
  width: 100%;
  height: 56px;
}

.portal-pg-btn-secondary {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 210, 120, 0.2);
  background: transparent;
  color: rgba(255, 210, 140, 0.45);
  font-family: inherit;
  font-size: 11px;
  cursor: not-allowed;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.portal-pg-boleto-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.portal-pg-boleto-actions .portal-pg-btn-secondary {
  cursor: pointer;
  color: rgba(255, 220, 160, 0.92);
  border-style: solid;
  border-color: rgba(255, 210, 120, 0.35);
}

.portal-pg-boleto-actions .portal-pg-btn-secondary:hover {
  background: rgba(255, 200, 90, 0.12);
}

.portal-pg-card-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.portal-pg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.portal-pg-field span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 210, 140, 0.4);
}

.portal-pg-field input,
.portal-pg-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 120, 0.2);
  background: rgba(18, 14, 10, 0.92);
  color: rgba(255, 236, 210, 0.95);
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-pg-field select {
  appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 210, 140, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 210, 140, 0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.portal-pg-field select:hover,
.portal-pg-field select:focus {
  outline: none;
  border-color: rgba(255, 200, 90, 0.42);
  box-shadow: 0 0 0 2px rgba(255, 200, 90, 0.1);
}

.portal-pg-field select option,
.portal-pg-field select optgroup {
  background: #14100c;
  color: rgba(255, 236, 210, 0.95);
}

.portal-pg-field input::placeholder {
  color: rgba(255, 210, 140, 0.35);
  font-size: 12px;
}

.portal-pg-input--card-number {
  font-size: 15px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.portal-pg-input--card-holder {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portal-pg-input--card-exp,
.portal-pg-input--card-cvv {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-align: center;
}

.portal-pg-field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.portal-pg-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 8px;
  min-width: 0;
}

.portal-pg-field-row .portal-pg-field--cvv {
  max-width: 100%;
}

.portal-pg-field--select select {
  font-weight: 500;
}

.portal-pg-payer {
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}

.portal-pg-payer__line {
  margin: 0 0 4px;
  font-size: 11px;
  color: rgba(255, 210, 140, 0.5);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-pg-payer__line strong {
  color: rgba(255, 236, 210, 0.88);
}

.portal-cart-btn--pagarme {
  letter-spacing: 0.04em;
}

body.portal-cart-open {
  overflow: hidden;
}

.portal-cart-toast {
  position: fixed;
  /* Acima do drawer (z-index 210) e do overlay (200) */
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(129, 199, 132, 0.35);
  background: rgba(20, 28, 18, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  font-weight: 500;
  color: rgba(200, 230, 201, 0.98);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Com drawer aberto: toast no topo, mais visível sobre o painel */
body.portal-cart-open .portal-cart-toast {
  top: calc(16px + env(safe-area-inset-top, 0px));
  bottom: auto;
  transform: translate(-50%, -12px);
}

body.portal-cart-open .portal-cart-toast.is-visible {
  transform: translate(-50%, 0);
}

.portal-cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 901px) {
  .portal-cart-drawer {
    width: min(500px, 100vw);
  }
}

@media (max-width: 480px) {
  .portal-cart-drawer {
    width: 100vw;
  }
}
