/* Minicart Max Titanium: medidas do storefront (09/10/2026). */
/* @font-face da RestFont mora no <head> do index.html (pre-carregada); este arquivo carrega sem bloquear */

.mx-sc { --mx-sc-texto: rgb(64, 64, 64); --mx-sc-primaria: rgb(205, 24, 30); --mx-sc-verde: rgb(41, 133, 41);
  position: fixed; inset: 0; z-index: 1050; display: flex; justify-content: flex-end; font: 400 16px/24px RestFont, sans-serif; color: var(--mx-sc-texto); }
.mx-sc[hidden] { display: none; }
.mx-sc *, .mx-sc *::before, .mx-sc *::after { box-sizing: border-box; }
:where(.mx-sc) h3, :where(.mx-sc) ul, :where(.mx-sc) p { margin: 0; padding: 0; }
:where(.mx-sc) ul { list-style: none; }
:where(.mx-sc) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.mx-sc) a { color: inherit; text-decoration: none; }
.mx-sc-fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: mx-sc-esmaece .3s ease; }
.mx-sc-painel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 85vw; height: 100%; background: rgb(241, 242, 243); animation: mx-sc-entra .3s ease; }
@media (min-width: 640px) { .mx-sc-painel { max-width: 426px; } }
@keyframes mx-sc-entra { from { transform: translateX(100%); } }
@keyframes mx-sc-esmaece { from { opacity: 0; } }
.mx-sc.carregando .mx-sc-painel { cursor: progress; }
.mx-sc.carregando .mx-sc-itens, .mx-sc.carregando .mx-sc-rodape { opacity: .6; pointer-events: none; }

.mx-sc-topo { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: none; height: 56px; padding: 12px 16px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .2); }
.mx-sc-topo-e { display: flex; align-items: center; gap: 12px; }
.mx-sc-titulo { font-size: 18px; line-height: 28px; font-weight: 700; }
.mx-sc-conta { padding: 4px 12px; border-radius: 9999px; background: var(--mx-sc-primaria); color: #fff; }
.mx-sc-fecha { width: 25px; height: 25px; }
.mx-sc-fecha svg { display: block; width: 25px; height: 25px; }

.mx-sc-itens { flex: 1 1 auto; height: 100%; overflow-y: auto; padding: 16px; }
.mx-sc-itens > li + li { margin-top: 16px; }
.mx-sc-item { padding: 16px; background: #fff; border: 1px solid rgb(227, 230, 232); }
.mx-sc-item-link { display: grid; grid-template-columns: 4.5rem repeat(4, 1fr); align-items: center; gap: 16px; }
.mx-sc-item-img { grid-column: span 1; width: 100%; height: 72px; object-fit: contain; }
.mx-sc-item-info { grid-column: span 4; }
.mx-sc-item-info > * + * { margin-top: 4px; }
.mx-sc-item-nome { font-size: 16px; line-height: 24px; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mx-sc-item-precos { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; }
.mx-sc-item-de { font-size: 14px; line-height: 20px; }
.mx-sc-item-por { font-weight: 700; }
.mx-sc-item-acoes { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.mx-sc-remove { display: flex; gap: 8px; align-items: center; padding: 4px 16px; font-weight: 700; color: var(--mx-sc-primaria); }
.mx-sc-remove svg { width: 18px; height: 18px; }
.mx-sc-qtd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; width: 228px; height: 40px; border: 1px solid #efefef; border-radius: 2px; }
.mx-sc-qtd button { height: 100%; padding: 8px; }
.mx-sc-qtd button:first-child { border-right: 1px solid rgb(227, 230, 232); }
.mx-sc-qtd button:last-child { border-left: 1px solid rgb(227, 230, 232); }
.mx-sc-qtd button:disabled { cursor: not-allowed; opacity: .5; }
.mx-sc-qtd svg { display: block; margin: auto; }
.mx-sc-qtd span { height: 100%; display: flex; justify-content: center; align-items: center; padding: 8px; }
.mx-sc-vazio { flex: 1 1 auto; padding: 32px 16px; text-align: center; }

.mx-sc-vit { flex: none; display: flex; flex-direction: column; padding: 12px 16px; background: rgb(245, 245, 245); border-top: 1px solid rgb(224, 224, 224); border-bottom: 1px solid rgb(224, 224, 224); }
.mx-sc-vit[hidden] { display: none; }
.mx-sc-vit-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mx-sc-vit-titulo { font-size: 12px; line-height: 16px; font-weight: 700; color: rgb(26, 26, 26); }
.mx-sc-vit-nav { display: flex; gap: 4px; }
.mx-sc-vit-seta { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: rgb(14, 14, 15); }
.mx-sc-vit-seta:disabled { color: rgb(170, 170, 170); cursor: default; }
.mx-sc-vit-janela { overflow: hidden; }
.mx-sc-vit-trilho { display: flex; gap: 8px; transition: transform .3s ease; }
.mx-sc-vit-card { flex: 0 0 67.8%; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 9px; background: #fff; border: 1px solid rgb(224, 224, 224); border-radius: 8px; }
.mx-sc-vit-card-topo { display: flex; gap: 8px; }
.mx-sc-vit-img { width: 56px; height: 56px; border-radius: 4px; object-fit: contain; flex: none; }
.mx-sc-vit-info { display: flex; flex-direction: column; justify-content: space-between; flex: 1; min-width: 0; }
.mx-sc-vit-nome { font-size: 12px; line-height: 16px; font-weight: 600; color: rgb(26, 26, 26); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-sc-vit-preco { font-size: 14px; line-height: 18px; font-weight: 700; color: rgb(46, 125, 50); }
.mx-sc-vit-add { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 12px; background: var(--mx-sc-verde); color: #fff; }
.mx-sc-vit-add:disabled { opacity: .5; cursor: progress; }
.mx-sc-vit-sel { position: relative; }
.mx-sc-vit-sel select { appearance: none; width: 100%; height: 32px; padding: 0 30px 0 10px; font: 500 10px/15px RestFont, sans-serif; color: rgb(26, 26, 26); background: #fff; border: 1px solid rgb(224, 224, 224); border-radius: 20px; cursor: pointer; }
.mx-sc-vit-sel span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; color: rgb(102, 145, 86); pointer-events: none; }
.mx-sc-vit-pontos { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 6px; height: 6px; }
.mx-sc-vit-pontos button { width: 5px; height: 5px; border-radius: 50%; background: rgb(208, 208, 208); }
.mx-sc-vit-pontos button[aria-current="true"] { width: 6px; height: 6px; background: rgb(98, 98, 98); }

.mx-sc-rodape { position: relative; flex: none; padding: 16px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .2); }
.mx-sc-cupom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.mx-sc-cupom-campo { position: relative; display: flex; justify-content: center; }
.mx-sc-cupom input { width: 138px; padding: 4px; background: transparent; border: 0; border-bottom: 1px solid var(--mx-sc-texto); outline: none; text-align: center; font: 500 12px/16px RestFont, sans-serif; color: var(--mx-sc-texto); }
.mx-sc-cupom input::placeholder { color: rgb(156, 163, 175); }
.mx-sc-cupom-ok { min-width: 40px; padding: 4px 12px; border: 1px solid var(--mx-sc-texto); border-radius: 9999px; font-size: 12px; line-height: 16px; }
.mx-sc-cupom-msg { margin: -12px 0 8px; font-size: 12px; line-height: 16px; text-align: right; }
.mx-sc-cupom-msg.erro { color: var(--mx-sc-primaria); }
.mx-sc-linha { display: flex; justify-content: space-between; }
.mx-sc-linha[hidden] { display: none; }
.mx-sc-total { font-size: 20px; line-height: 28px; font-weight: 700; }
.mx-sc-pix { text-align: right; }
.mx-sc-pix-ou { margin-right: 4px; font-size: 20px; line-height: 28px; }
.mx-sc-pix-v { font-size: 20px; line-height: 28px; font-weight: 700; }
.mx-sc-fim { display: block; width: 100%; margin-top: 12px; padding: 12px 16px; text-align: center; text-transform: uppercase; color: #fff; background: var(--mx-sc-verde); transition: all .3s; }
.mx-sc-fim:hover { filter: brightness(1.08); }
.mx-sc-fim[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.mx-sc-aviso { margin-top: 8px; font-size: 11px; line-height: 14px; text-align: center; color: rgb(107, 114, 128); }

/* trava de rolagem do carrinho (overflow hidden no html) nao pode mudar a largura da pagina: reserva o espaco da barra de rolagem */
html { scrollbar-gutter: stable; }

/* cupom: o sublinhado engrossa a partir do centro ao focar */
.mx-sc-cupom-campo::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--mx-sc-texto); transition: left .3s cubic-bezier(.2, .8, .2, 1), right .3s cubic-bezier(.2, .8, .2, 1); }
.mx-sc-cupom-campo:focus-within::after { left: 0; right: 0; }
@media (prefers-reduced-motion: reduce) { .mx-sc-cupom-campo::after { transition: none; } }
