/* DistribuiPRO PDV Pro 1.0 */
/* Cartões de produto */
.pdx .product-card { position: relative; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pdx .product-card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.pdx .product-card .p-name { font-size: 13.5px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pdx .product-card .p-code { font-size: 11px; }
.pdx .product-card .p-price { font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pdx .product-card .p-stock { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px !important; font-weight: 700; margin-top: 0; }
.pdx .product-card .p-meta-row { align-items: center; gap: 4px 8px; flex-wrap: wrap; }
/* 37.6 · O preço nunca é cortado: se não couber ao lado do selo (ex.: "Serviço"), desce para a linha de baixo */
.pdx .product-card .p-meta-row .p-stock { flex: 0 1 auto !important; width: auto !important; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; gap: 4px; }
.pdx .product-card .p-meta-row .p-price { margin-left: auto; white-space: nowrap; flex: 0 0 auto; }
.pdx .product-card .p-stock svg.dpi { width: 12px; height: 12px; flex: none; }
.pdx .cart-actions .btn { min-width: 0; gap: 6px; }
.pdx .cart-actions .btn > i { flex: none; }
/* 37.6 · Cabeçalho do PDV em telas de 1280 a 1600px: a busca de produto nunca some e nada fica cortado */
.pdx .pdv-header .pdv-search-bar { flex: 1 1 200px; min-width: 170px; }
@media (min-width: 769px) and (max-width: 1599px) {
  .pdx .pdv-header .pdx-day em { display: none; }
  .pdx .pdv-header .dpq-pick-btn span { display: none; }
  .pdx .pdv-header .dpq-pick-btn { padding: 0 12px; }
  /* demonstração: o botão "Quero o meu" não pode ser cortado */
  .pdx .pdv-header:has(.st-buy-chip) .dpa-btn span { display: none; }
}
.pdx .pdv-header .st-buy-chip { flex: none; }
@media (min-width: 769px) and (max-width: 1279px) {
  .pdx .pdv-header .dpa-btn span { display: none; }
}
/* 38.7 · Barra de cima do PDV: os botões que os módulos põem aqui (troca, orçamento, item avulso, visualização,
   crediário, caixa...) nunca ficam escondidos atrás do carrinho nem cortados no celular.
   Primeiro encolhem (só o ícone, o nome fica no title); se ainda não couberem, descem para a linha de baixo. */
.pdx .pdv-header { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; }
.pdx .pdv-header > :is(.dpt-hbtn, .pdx-day, .dpq-pick-btn, .dpa-btn, .dpv-toggle, .dpc-hbtn, .pdx-cash) { margin-left: 0; }
@media (min-width: 769px) and (max-width: 1599px) {
  .pdx .pdv-header .dpa-btn span { display: none; }
  .pdx .pdv-header .dpa-btn { padding: 0 11px; }
}
@media (max-width: 768px) {
  .pdx .pdv-header { column-gap: 6px; }
  /* título à esquerda, botões à direita e a busca na linha de baixo, com a largura toda */
  .pdx .pdv-header .pdv-title { margin-right: auto; }
  .pdx .pdv-header .pdv-search-bar { order: 50; flex: 1 1 100%; min-width: 0; max-width: none; }
  .pdx .pdv-header > :is(.dpt-hbtn, .dpq-pick-btn, .dpa-btn, .dpc-hbtn) { height: 36px; min-width: 36px; padding: 0 9px; justify-content: center; }
  .pdx .pdv-header .dpv-toggle button { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  /* celular estreito: o nome "PDV" sai (o menu de baixo já mostra Vender) para os botões caberem numa linha */
  .pdx .pdv-header .pdv-title { display: none; }
  .pdx .pdv-header .pdv-menu-btn { margin-right: auto; }
}
.pdx .p-stock.pdx-s-ok { color: #34d399 !important; background: rgba(16, 185, 129, .12); }
.pdx .p-stock.pdx-s-low { color: #fbbf24 !important; background: rgba(245, 158, 11, .13); }
.pdx .p-stock.pdx-s-out { color: #f87171 !important; background: rgba(239, 68, 68, .13); }
.pdx .product-card.pdx-out { opacity: .55 !important; filter: grayscale(.6); }
.pdx-qty { position: absolute; top: 8px; right: 8px; z-index: 2; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 3px var(--bg-card, #111); }
.pdx-qty.pop { animation: pdxPop .35s cubic-bezier(.3, 1.6, .5, 1); }
.pdx .product-card.pdx-added { animation: pdxAdded .45s ease; }
@keyframes pdxPop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes pdxAdded { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* Carrinho */
.pdx .cart-item { transition: background .3s; }
.pdx .cart-item.pdx-new { animation: pdxRow .9s ease; }
@keyframes pdxRow { 0% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
.pdx .cart-item .ci-name { font-size: 13px; font-weight: 650; }
.pdx .cart-item .ci-price, .pdx .cart-item .ci-price button { font-size: 11.5px !important; }
.pdx .cart-item .ci-qty button { width: 30px; height: 30px; border-radius: 9px; }
.pdx .cart-item .ci-total { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Itens primeiro no carrinho; cliente, vendedor, observações e pagamento logo abaixo */
.pdx #cartScroll { display: flex; flex-direction: column; }
.pdx #cartScroll > #cartItems { order: -1; min-height: 72px; border-bottom: 1px solid var(--border-color); }
.pdx #cartScroll > #cartItems .empty-state { padding: 18px 16px !important; }
.pdx #cartScroll > #cartItems .empty-state i { font-size: 24px !important; }
/* Tipo de venda: três botões na mesma linha também no celular */
.pdx #pdvCart div[style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.pdx .sale-type-btn { min-height: 44px; flex-direction: row !important; gap: 6px; justify-content: center; font-size: 12.5px; }

/* Rodapé com o total sempre visível */
.pdx-foot { flex-shrink: 0; border-top: 1px solid var(--border-color); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg-secondary)), var(--bg-secondary)); padding: 10px 16px 2px; }
.pdx-items { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pdx-more { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 5px; }
.pdx-more i { transition: transform .2s; font-size: 10px; }
.pdx-foot.open .pdx-more i { transform: rotate(180deg); }
.pdx-foot .cart-summary { border-top: 0 !important; padding: 0 !important; }
.pdx-foot .cart-summary .cs-row:not(.total) { display: none; }
.pdx-foot.open .cart-summary .cs-row:not(.total) { display: flex; }
.pdx-foot .cart-summary .cs-row.total { border-top: 0 !important; margin-top: 2px !important; padding: 4px 0 6px !important; align-items: baseline; font-size: 15px !important; }
.pdx-foot #cartTotal { font-size: 26px; font-weight: 850; letter-spacing: -.03em; color: var(--text-heading, var(--text-primary)); font-variant-numeric: tabular-nums; }
#cartTotal.pdx-flash { animation: pdxFlash .5s ease; }
@keyframes pdxFlash { 0% { color: var(--accent); transform: scale(1.06); } 100% { transform: none; } }
.pdx #btnFinalize.pdx-ready { box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.pdx .pdv-shortcuts { font-size: 11px; }

/* Vendas de hoje no topo */
.pdx-day { display: none; align-items: center; gap: 10px; flex: 0 0 auto; height: 42px; padding: 0 12px; margin-left: 10px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-card, transparent); color: var(--text-primary); cursor: pointer; text-align: left; }
.pdx-day > i:first-child { color: #34d399; }
.pdx-day span { display: grid; line-height: 1.1; }
.pdx-day small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pdx-day b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pdx-day em { font-style: normal; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.pdx-day .pdx-eye { font-size: 12px; color: var(--text-muted); }
@media (min-width: 1180px) { .pdx-day { display: inline-flex; } }

/* Botão do carrinho no celular com o total */
.pdx .pdv-mobile-toggle.pdx-has { width: auto !important; min-width: 56px; padding: 0 18px 0 16px !important; border-radius: 999px !important; gap: 10px; align-items: center; }
.pdx .pdv-mobile-toggle .pdx-ttl { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pdx .pdv-mobile-toggle:not(.pdx-has) .pdx-ttl { display: none; }
.pdx .pdv-mobile-toggle .toggle-badge { font-size: 11px !important; min-width: 20px; }
.pdx .pdv-mobile-toggle.bump { animation: pdxBump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pdxBump { 0% { transform: scale(.88); } 100% { transform: scale(1); } }

/* Venda concluída */
.pdx-done { position: fixed; left: 50%; top: 22px; z-index: 6000; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 16px; background: #0d1a14; border: 1px solid rgba(52, 211, 153, .35); color: #ecfdf5; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: pdxIn .45s cubic-bezier(.2, 1.2, .3, 1); }
.pdx-done.out { opacity: 0; transform: translate(-50%, -12px); transition: opacity .4s, transform .4s; }
.pdx-done b { display: block; font-size: 14.5px; }
.pdx-done span { font-size: 13px; color: #a7f3d0; font-variant-numeric: tabular-nums; }
.pdx-check svg { width: 38px; height: 38px; }
.pdx-check circle { fill: rgba(16, 185, 129, .16); stroke: #34d399; stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: pdxDraw .5s ease forwards; }
.pdx-check path { fill: none; stroke: #34d399; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: pdxDraw .35s .35s ease forwards; }
@keyframes pdxDraw { to { stroke-dashoffset: 0; } }
@keyframes pdxIn { from { opacity: 0; transform: translate(-50%, -16px) scale(.95); } }

@media (max-width: 768px) {
  .pdx .product-card .p-name { font-size: 13px; }
  .pdx .product-card .p-price { font-size: 15.5px; }
  .pdx-foot #cartTotal { font-size: 24px; }
  .pdx-done { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .pdx-qty.pop, .pdx .product-card.pdx-added, .pdx .cart-item.pdx-new, #cartTotal.pdx-flash, .pdx-done, .pdx .pdv-mobile-toggle.bump { animation: none !important; } }


/* 30.1 · Item do carrinho em duas linhas: nome inteiro em cima; quantidade e total embaixo */
.pdx .cart-item { position: relative; display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 12px 42px 12px 16px !important; }
.pdx .cart-item .ci-info { grid-column: 1 / -1; }
.pdx .cart-item .ci-name { white-space: normal !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px !important; line-height: 1.3; }
.pdx .cart-item .ci-price { margin-top: 3px; color: var(--text-muted); }
.pdx .cart-item .ci-qty { grid-column: 1; gap: 8px; }
.pdx .cart-item .ci-qty button { width: 30px !important; height: 30px !important; font-size: 11px; }
.pdx .cart-item .ci-qty span { font-size: 14px; min-width: 22px; }
.pdx .cart-item .ci-total { grid-column: 2; justify-self: end; font-size: 15px !important; min-width: 0 !important; }
.pdx .cart-item .ci-remove { position: absolute; top: 9px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; }
.pdx .cart-item .ci-remove:hover { background: rgba(239, 68, 68, .12); }
.pdx #cartItems { padding-top: 0; }

/* 30.1 · Cliente em destaque legível no tema escuro */
.pdx #selectedCustomerBadge { background: color-mix(in srgb, var(--accent) 16%, transparent) !important; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.pdx #selectedCustomerName { color: var(--text-primary) !important; font-weight: 700; }

/* 30.1 · Notebooks (tela baixa): nada de letra de 9px, tudo alinhado */
@media (min-width: 769px) and (max-height: 820px) {
  .pdx .pdv-party-row label, .pdx .cart-payment > label, .pdx #cartScroll label { font-size: 10.5px !important; }
  .pdx #customerSearch, .pdx #sellerSelect { height: 34px; font-size: 12.5px !important; }
  .pdx #selectedCustomerName { font-size: 12px !important; }
  .pdx .sale-type-btn { min-height: 38px; font-size: 12px !important; }
  .pdx .sale-type-btn i { font-size: 12px !important; }
  .pdx .cart-payment { padding: 8px 12px !important; }
  .pdx .payment-methods { gap: 6px !important; }
  .pdx .pay-method { min-height: 36px; font-size: 12px !important; gap: 6px !important; }
  .pdx .pay-method i { font-size: 12px !important; }
  .pdx .cart-items { max-height: 34vh !important; }
  .pdx .cart-item { padding: 10px 40px 10px 12px !important; }
  .pdx .cart-actions .btn { font-size: 12.5px !important; padding: 10px 6px !important; }
  .pdx .pdv-shortcuts { display: none !important; }
  .pdx .product-card .p-name { font-size: 12.5px !important; }
  .pdx .product-card .p-price { font-size: 15px !important; }
  .pdx .product-card .p-code { font-size: 10.5px !important; }
}

/* 30.1 · Carrinho cabe inteiro na tela no computador (o painel tem margem de 12px em cima e embaixo) */
@media (min-width: 769px) { .pdx .pdv-right { height: calc(100vh - 24px) !important; height: calc(100dvh - 24px) !important; } }

/* ─── Área Destacada e Clareada: Dados da Venda (Cliente, Vendedor, Tipo, Observações) ─── */
.pdx .pdv-sale-meta-card {
  margin: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 2px solid #818cf8 !important;
  border-bottom: 2px solid #818cf8 !important;
  background: #364966 !important;
  background: linear-gradient(180deg, #3d5272 0%, #30415a 100%) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 -2px 6px rgba(0, 0, 0, 0.2) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.pdx .pdv-sale-meta-card .pdv-party-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-sizing: border-box !important;
}

.pdx .pdv-sale-meta-card .pdv-party-row .cart-customer {
  padding: 8px 10px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-bottom: 0 !important;
  background: transparent !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.pdx .pdv-sale-meta-card .pdv-party-row .cart-seller {
  padding: 8px 10px !important;
  border-bottom: 0 !important;
  background: transparent !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.pdx .pdv-sale-meta-card .pdv-sale-type-row {
  padding: 8px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.pdx .pdv-sale-meta-card #deliveryAddressBox {
  padding: 8px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.pdx .pdv-sale-meta-card .pdv-sale-notes-row {
  padding: 8px 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Labels e ícones em destaque */
.pdx .pdv-sale-meta-card label {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  margin-bottom: 5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.pdx .pdv-sale-meta-card label i {
  color: #c7d2fe !important;
  font-size: 12px !important;
}

/* Caixas de texto, selects e textarea com fundo escuro padrão */
.pdx .pdv-sale-meta-card input[type="text"],
.pdx .pdv-sale-meta-card input[type="number"],
.pdx .pdv-sale-meta-card select,
.pdx .pdv-sale-meta-card textarea {
  width: 100% !important;
  background: #15202e !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  font-family: var(--font-body) !important;
  box-sizing: border-box !important;
  padding: 6px 8px !important;
  line-height: 1.3 !important;
  transition: all .15s ease-in-out !important;
}

.pdx .pdv-sale-meta-card input[type="text"]:focus,
.pdx .pdv-sale-meta-card input[type="number"]:focus,
.pdx .pdv-sale-meta-card select:focus,
.pdx .pdv-sale-meta-card textarea:focus {
  background: #101925 !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
  outline: none !important;
}

.pdx .pdv-sale-meta-card input::placeholder,
.pdx .pdv-sale-meta-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 400 !important;
}

.pdx .pdv-sale-meta-card textarea {
  resize: vertical !important;
  min-height: 48px !important;
}

/* Badge de Cliente Selecionado */
.pdx .pdv-sale-meta-card #selectedCustomerBadge {
  margin-top: 5px !important;
  padding: 5px 8px !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(99, 102, 241, 0.5) !important;
  border-radius: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.pdx .pdv-sale-meta-card #selectedCustomerName {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}

.pdx .pdv-sale-meta-card #selectedCustomerBadge button {
  color: #cbd5e1 !important;
  font-weight: 800 !important;
}

/* Botões do Tipo de Venda (Balcão / Retirada / Entrega) */
.pdx .pdv-sale-meta-card .sale-type-btn {
  background: #15202e !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #e2e8f0 !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  padding: 7px 4px !important;
  min-height: 36px !important;
  cursor: pointer !important;
  transition: all .15s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.pdx .pdv-sale-meta-card .sale-type-btn:hover {
  background: #1e2c3e !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.pdx .pdv-sale-meta-card .sale-type-btn.active {
  background: #6366f1 !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.45) !important;
}

.pdx .pdv-sale-meta-card .sale-type-btn.active[data-type="delivery"] {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.45) !important;
}

/* Modo Claro */
html[data-theme="light"] .pdx .pdv-sale-meta-card {
  background: #e2e8f0 !important;
  border-top-color: #818cf8 !important;
  border-bottom-color: #818cf8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .pdx .pdv-sale-meta-card .pdv-party-row,
html[data-theme="light"] .pdx .pdv-sale-meta-card .pdv-sale-type-row,
html[data-theme="light"] .pdx .pdv-sale-meta-card #deliveryAddressBox {
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .pdx .pdv-sale-meta-card label {
  color: #0f172a !important;
}

html[data-theme="light"] .pdx .pdv-sale-meta-card input[type="text"],
html[data-theme="light"] .pdx .pdv-sale-meta-card input[type="number"],
html[data-theme="light"] .pdx .pdv-sale-meta-card select,
html[data-theme="light"] .pdx .pdv-sale-meta-card textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .pdx .pdv-sale-meta-card .sale-type-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .pdx .pdv-sale-meta-card .sale-type-btn.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
}

/* ─── Área dos Itens do Carrinho com a Mesma Cor de Fundo ─── */
.pdx #cartItems,
.pdx .cart-items {
  background: #364966 !important;
  background: linear-gradient(180deg, #3d5272 0%, #30415a 100%) !important;
  border-bottom: 2px solid #818cf8 !important;
}

.pdx .cart-items .empty-state {
  color: #e2e8f0 !important;
}

.pdx .cart-items .empty-state i {
  color: #a5b4fc !important;
  opacity: 0.85 !important;
}

.pdx .cart-items .empty-state h3 {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.pdx .cart-items .empty-state p {
  color: #cbd5e1 !important;
}

.pdx .cart-item {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.pdx .cart-item .ci-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.pdx .cart-item .ci-price {
  color: #cbd5e1 !important;
}

.pdx .cart-item .ci-price button {
  color: #a5b4fc !important;
}

.pdx .cart-item .ci-qty button {
  background: #15202e !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-radius: 7px !important;
}

.pdx .cart-item .ci-qty span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.pdx .cart-item .ci-total {
  color: #34d399 !important;
  font-weight: 800 !important;
}

.pdx .cart-item .ci-remove {
  color: #cbd5e1 !important;
}

.pdx .cart-item .ci-remove:hover {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.2) !important;
}

/* ─── Área de Pagamento com a Mesma Cor de Fundo ─── */
.pdx .cart-payment {
  background: #364966 !important;
  background: linear-gradient(180deg, #30415a 0%, #29384e 100%) !important;
  border-top: 2px solid #818cf8 !important;
  border-bottom: 2px solid #818cf8 !important;
}

.pdx .cart-payment > label {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.pdx .cart-payment .pay-method {
  background: #15202e !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #e2e8f0 !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  transition: all .15s ease-in-out !important;
}

.pdx .cart-payment .pay-method:hover {
  background: #1e2c3e !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.pdx .cart-payment .pay-method.selected {
  background: #6366f1 !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.45) !important;
}

/* Tema Claro */
html[data-theme="light"] .pdx #cartItems,
html[data-theme="light"] .pdx .cart-items,
html[data-theme="light"] .pdx .cart-payment {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .pdx .cart-payment > label {
  color: #0f172a !important;
}
html[data-theme="light"] .pdx .cart-payment .pay-method {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .pdx .cart-payment .pay-method.selected {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
}



