.aviso-compra { box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: min(620px, calc(100% - 32px)); max-height: 90dvh; padding: 0; border: 0; border-radius: 24px; color: #252525; background: #fff; box-shadow: 0 24px 80px #0003; font-family: inherit; overflow: hidden; }
.aviso-compra[open] { display: flex; flex-direction: column; }
.aviso-compra::backdrop { background: rgb(20 25 30 / 48%); }
.aviso-compra-fechar { position: absolute; z-index: 1; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #687078; font-size: 28px; cursor: pointer; }
.aviso-compra-cabecalho { flex-shrink: 0; padding: 28px 28px 16px; text-align: center; }
.aviso-compra-etiqueta { color: #b30510; font-size: .8rem; font-weight: 600; }
.aviso-compra h2 { font-size: 1.5rem; font-weight: 750; margin: 6px 0 10px; }
#avisoCompraMensagem { font-size: .9rem; line-height: 1.5; color: #565e65; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.aviso-compra-lista { list-style: none; padding: 0 24px; margin: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; text-align: left; }
.aviso-compra-produto { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid #eee; }
.aviso-compra-foto { display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 84px; padding: 6px; box-sizing: border-box; border-radius: 10px; background: #f8f9fa; color: #9199a0; text-align: center; font-size: .7rem; }
.aviso-compra-foto img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.aviso-compra-info { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: start; gap: 12px; }
.aviso-compra-nome { font-size: .9rem; line-height: 1.4; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.aviso-compra-preco { min-width: 0; color: #e30613; font-size: .95rem; font-weight: 700; margin: 0; text-align: right; }
.aviso-compra-quantidade { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: .9rem; }
.aviso-compra-quantidade button { min-width: 36px; min-height: 36px; border: 1px solid #e30613; border-radius: 20px; background: #fff; color: #c50511; font: inherit; font-weight: 600; padding: 4px 12px; cursor: pointer; }
.aviso-compra-indisponivel { font-size: .8rem; color: #7b8288; }
.aviso-compra-acoes { flex-shrink: 0; display: grid; gap: 6px; padding: 12px 24px 16px; border-top: 1px solid #eee; background: #fff; text-align: center; }
.aviso-compra-status { font-size: .8rem; line-height: 1.4; color: #606870; margin: 0 0 6px; }
.aviso-compra-acoes button { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.aviso-compra-finalizar { border: 1px solid #e30613; background: #e30613; color: #fff; }
.aviso-compra-finalizar span { margin-left: 12px; }
.aviso-compra-voltar { border: 0; background: transparent; color: #555d65; }
.aviso-compra button:disabled { opacity: .45; cursor: default; }
.aviso-compra button:focus-visible { outline: 2px solid #e30613; outline-offset: 2px; }
.obrigatorios-selecao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; margin-bottom: 14px; border-radius: 12px; background: #fff2f3; color: #8b1c25; font-size: .85rem; }
.obrigatorios-selecao button { flex-shrink: 0; border: 0; background: transparent; color: #b30510; text-decoration: underline; min-height: 40px; font: inherit; }
@media (max-width: 576px) {
    .aviso-compra { inset: auto 0 0; width: 100%; margin: 0; max-height: 94dvh; border-radius: 24px 24px 0 0; }
    .aviso-compra-cabecalho { padding: 26px 24px 14px; }
    .aviso-compra h2 { font-size: 1.3rem; }
    .aviso-compra-lista { padding: 0 18px; }
    .aviso-compra-acoes { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); }
    .aviso-compra-foto { flex-basis: 64px; width: 64px; height: 76px; }
}
