.mu-editor { margin: 20px 0; }
.mu-toggle-card { padding: 18px 26px; border: 1px solid #bfd7ff; border-radius: 6px; background: #eaf3ff; }
.mu-card-toggle { display: flex !important; align-items: center; gap: 16px; margin: 0 !important; }
.mu-card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
.mu-card-copy strong { color: #333; font-size: 0.9rem; }
.mu-card-copy strong i { color: #2563eb; margin-right: 8px; }
.mu-card-copy small { color: #555; font-size: 0.9rem; font-weight: 400; }
.mu-toggle { display: flex !important; align-items: center; gap: 8px; margin: 0; }
.mu-toggle input, .mu-opcao input { width: 18px !important; height: 18px; flex: 0 0 18px; margin: 0 !important; accent-color: #00604b; }
.mu-config { min-width: 0; margin: 15px 0 0; padding: 18px; border: 1px dashed #00604b; border-radius: 8px; background: #fdfaf8; }
.mu-config[hidden] { display: none; }
.mu-config-heading { margin-bottom: 16px; }
.mu-config-heading h3 { margin: 0 0 8px; color: #00604b; font-size: 1.1rem; }
.mu-config-heading p { margin: 0; color: #666; font-size: 0.85rem; line-height: 1.45; }
.mu-etapas { display: flex; flex-direction: column; gap: 16px; }
.mu-etapa { padding: 18px; border: 1px solid #ddd; border-radius: 5px; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 5%); }
.mu-etapa-topo { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.mu-etapa-topo .mu-nome-etapa { flex: 1; min-width: 0; font-weight: 700; }
.mu-editor label { font-size: 14px; }
.mu-editor input:not([type=checkbox]) { display: block; width: 100%; min-width: 0; box-sizing: border-box; height: 42px; padding: 8px 10px; border: 1px solid #b9c6cb; border-radius: 4px; font: inherit; background: #fff; }
.mu-editor input:not([type=checkbox]):focus { outline: 2px solid rgb(0 96 75 / 18%); border-color: #00604b; }
.mu-remover-etapa { flex: 0 0 auto; padding: 9px 14px; border: 0; border-radius: 4px; background: #dc3545; color: #fff; font: inherit; font-size: 0.82rem; cursor: pointer; }
.mu-limites { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; padding: 12px; border-radius: 4px; background: #f5f5f5; }
.mu-limites label { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; color: #263238; white-space: nowrap; }
.mu-limites input { width: 76px !important; flex: 0 0 76px; }
.mu-opcoes-heading { margin-bottom: 10px; color: #263238; }
.mu-opcoes { display: flex; flex-direction: column; gap: 8px; }
.mu-opcao-editor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) auto 44px; align-items: center; gap: 10px; }
.mu-preco-input { display: flex; align-items: center; gap: 6px; }
.mu-preco-input > span { color: #263238; font-weight: 500; white-space: nowrap; }
.mu-preco-input input { flex: 1; min-width: 0; }
.mu-esgotado-toggle { display: flex !important; align-items: center; justify-content: center; gap: 8px; min-width: 120px; margin: 0 !important; padding: 9px 12px; border: 1px solid #f1b7bd; border-radius: 8px; background: #fff; color: #b42318 !important; font-size: 0.82rem !important; font-weight: 700 !important; cursor: pointer; }
.mu-esgotado-toggle input { accent-color: #d62828; }
.mu-remover-opcao { width: 44px; height: 42px; padding: 0; border: 1px solid #dc3545; border-radius: 4px; background: transparent; color: #dc3545; font: inherit; font-weight: 700; cursor: pointer; }
.mu-add-opcao, .mu-add-etapa { margin-top: 14px; padding: 9px 13px; border: 0; border-radius: 4px; background: #eb6c28; color: #fff; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 600; }
.mu-add-opcao:hover, .mu-add-etapa:hover { background: #d95c1d; }
.mu-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; inset: 0; padding: 0; border: 0; border-radius: 14px; color: #2f3e37; background: #f5f1e2; box-sizing: border-box; box-shadow: 0 18px 55px rgb(0 0 0 / 38%); font-family: Poppins, sans-serif; overflow: hidden; }
.mu-dialog[open] { display: flex; flex-direction: column; }
.mu-dialog::backdrop { background: rgb(0 0 0 / 62%); backdrop-filter: blur(2px); }
.mu-dialog header, .mu-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-shrink: 0; margin: 0; box-shadow: none; text-align: left; }
.mu-dialog header { padding: 14px 16px; border-bottom: 4px solid #eb6c28; background: #004f35; color: #fff; }
.mu-cabecalho-copy { min-width: 0; }
.mu-dialog h2 { margin: 0; color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.mu-cabecalho-copy p { margin: 5px 0 0; color: rgb(255 255 255 / 82%); font-size: 0.75rem; line-height: 1.3; }
.mu-preco-base { color: #fff; font-weight: 700; }
.mu-fechar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; background: rgb(255 255 255 / 9%); color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.mu-fechar:hover { border-color: #eb6c28; background: #eb6c28; color: #fff; transform: rotate(4deg); }
.mu-fechar:focus-visible { outline: 3px solid rgb(235 108 40 / 42%); outline-offset: 2px; }
.mu-fechar span { display: block; pointer-events: none; font-size: 1.7rem; font-weight: 400; line-height: 1; transform: translateY(-1px); }
.mu-conteudo { overflow-y: auto; padding: 8px 20px 14px; min-height: 0; scrollbar-color: #00604b #e4e0d3; scrollbar-width: thin; }
.mu-escolha { min-width: 0; margin: 20px 0 24px; padding: 0; border: 0; }
.mu-escolha legend { width: 100%; padding: 0 0 8px; border-bottom: 1px solid rgb(0 79 53 / 28%); color: #004f35; font-weight: 800; font-size: 0.98rem; line-height: 1.35; text-transform: uppercase; overflow-wrap: anywhere; }
.mu-regra { margin: 8px 0 12px; font-size: 0.75rem; color: #65736d; }
.mu-opcao { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 11px 13px; margin: 8px 0 0; border: 1px solid #d8ddd9; border-radius: 8px; background: #fff; box-shadow: 0 2px 5px rgb(0 0 0 / 4%); font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mu-opcao:hover { border-color: #00604b; box-shadow: 0 4px 10px rgb(0 79 53 / 10%); transform: translateY(-1px); }
.mu-opcao:has(input:checked) { border-color: #00604b; background: #00604b; color: #fff; box-shadow: 0 4px 12px rgb(0 79 53 / 22%); }
.mu-opcao span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mu-opcao strong { flex-shrink: 0; color: #00604b; font-size: 0.76rem; }
.mu-opcao:has(input:checked) strong { color: #ffd6bd; }
.mu-opcao input { accent-color: #eb6c28; }
.mu-indisponivel { border-color: #deded8; background: #eeece4; color: #89928e; box-shadow: none; cursor: not-allowed; opacity: .78; }
.mu-indisponivel:hover { border-color: #deded8; box-shadow: none; transform: none; }
.mu-sem-opcoes { margin: 8px 0; color: #89928e; font-size: 13px; }
.mu-dialog footer { flex-direction: column; align-items: stretch; padding: 13px 16px 15px; border-top: 4px solid #eb6c28; background: #004f35; color: #fff; }
.mu-total-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.95rem; font-weight: 700; }
.mu-total { color: #fff; font-size: 1.18rem; font-weight: 800; white-space: nowrap; }
.mu-confirmar { width: 100%; min-height: 44px; border: 0; border-radius: 8px; padding: 11px 18px; background: #eb6c28; color: #fff; box-shadow: 0 4px 10px rgb(235 108 40 / 26%); font: inherit; font-size: 0.88rem; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.mu-confirmar:hover:not(:disabled) { background: #d95c1d; box-shadow: 0 6px 14px rgb(235 108 40 / 34%); transform: translateY(-1px); }
.mu-confirmar:focus-visible { outline: 3px solid rgb(255 255 255 / 45%); outline-offset: 2px; }
.mu-confirmar:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.mu-erro { padding: 8px 20px; margin: 0; border-top: 1px solid #ecd3ce; background: #fff0ed; color: #a13124; font-size: 0.76rem; overflow-wrap: anywhere; }
.mu-erro:empty { display: none; }
@media (max-width: 600px) {
    .mu-toggle-card, .mu-config { padding: 14px; }
    .mu-etapa { padding: 14px; }
    .mu-etapa-topo { flex-direction: column; align-items: stretch; gap: 10px; }
    .mu-remover-etapa { align-self: flex-end; }
    .mu-limites { flex-direction: column; align-items: stretch; gap: 10px; }
    .mu-limites label { justify-content: space-between; white-space: normal; }
    .mu-opcao-editor { grid-template-columns: minmax(0, 1fr) 44px; }
    .mu-opcao-editor .mu-nome-opcao, .mu-opcao-editor .mu-preco-input { grid-column: 1 / -1; }
    .mu-opcao-editor .mu-esgotado-toggle { grid-column: 1; }
    .mu-opcao-editor .mu-remover-opcao { grid-column: 2; grid-row: 3; }
    .mu-dialog { width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
    .mu-dialog header { padding: 12px 14px; }
    .mu-dialog footer { padding: 12px 14px 14px; }
    .mu-conteudo { padding-inline: 16px; }
    .mu-fechar { width: 38px; height: 38px; flex-basis: 38px; }
}
