.ms-voice-search-button{min-width:48px;font-weight:800}.ms-voice-search-button .fa-microphone{font-size:1.05rem}.ms-mobile-voice-button{min-height:54px;border-radius:10px;font-size:1.05rem;letter-spacing:.01em}.ms-voice-modal .modal-dialog{max-width:940px}.ms-voice-modal .modal-content{border:0;border-radius:16px;overflow:hidden}.ms-voice-modal .modal-header{background:#111;color:#fff;border-bottom:4px solid #FFD333;align-items:center}.ms-voice-modal .modal-title{font-weight:900;font-size:1.3rem}.ms-voice-modal .close{color:#fff;opacity:1;font-size:2rem}.ms-voice-intro{font-size:1rem}.ms-voice-status{min-height:46px;border-radius:10px;padding:11px 14px;background:#f8f9fa;border:1px solid #e4e6e8;font-weight:700}.ms-voice-status.is-listening{background:#fff4d0;border-color:#FFD333}.ms-voice-status.is-error{background:#fce8ea;border-color:#dc3545;color:#842029}.ms-voice-status.is-success{background:#e8f6ec;border-color:#28a745}.ms-voice-text-form .form-control{min-height:50px;font-size:1.05rem}.ms-voice-text-form .btn{min-width:58px}.ms-voice-results{max-height:54vh;overflow:auto;padding-right:4px}.ms-voice-product{display:grid;grid-template-columns:112px 1fr auto;gap:14px;align-items:center;padding:14px;margin-bottom:12px;border:2px solid #e5e5e5;border-radius:14px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.ms-voice-product.is-selected{border-color:#d6ad00;box-shadow:0 0 0 3px rgba(255,211,51,.22)}.ms-voice-product-image{width:112px;height:104px;object-fit:contain;background:#f8f9fa;border-radius:10px}.ms-voice-product-name{font-size:1.08rem;font-weight:900;color:#222;line-height:1.2;margin-bottom:4px}.ms-voice-product-meta{color:#616161;font-size:.92rem;margin-bottom:4px}.ms-voice-product-price{font-size:1.18rem;font-weight:900;color:#111}.ms-voice-product-actions{min-width:180px;text-align:center}.ms-voice-qty{display:flex;align-items:center;justify-content:center;gap:8px}.ms-voice-qty button{width:52px;height:52px;border-radius:50%;font-size:1.25rem;font-weight:900}.ms-voice-qty-value{min-width:42px;font-size:1.25rem;font-weight:900}.ms-voice-selected-label{font-size:.86rem;font-weight:800;color:#6f5b00;margin-top:6px;min-height:20px}.ms-voice-option-link{min-height:48px;font-weight:800}.ms-voice-modal .modal-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #ddd;z-index:2}.ms-voice-add-selected{min-height:54px;font-size:1.05rem;font-weight:900}.ms-voice-empty{text-align:center;padding:30px 18px;background:#f8f9fa;border-radius:12px}.ms-voice-empty .fa{font-size:2rem;color:#777;margin-bottom:10px}.ms-voice-listening-pulse{display:inline-block;width:10px;height:10px;border-radius:50%;background:#dc3545;margin-right:8px;animation:msVoicePulse 1s infinite}@keyframes msVoicePulse{0%,100%{opacity:.35;transform:scale(.9)}50%{opacity:1;transform:scale(1.25)}}
@media(max-width:767.98px){.ms-voice-modal .modal-dialog{margin:0;max-width:none;min-height:100%}.ms-voice-modal .modal-content{min-height:100vh;border-radius:0}.ms-voice-modal .modal-body{padding:14px}.ms-voice-results{max-height:none;overflow:visible}.ms-voice-product{grid-template-columns:88px 1fr;gap:10px}.ms-voice-product-image{width:88px;height:88px}.ms-voice-product-actions{grid-column:1/-1;min-width:0;padding-top:4px}.ms-voice-qty button{width:58px;height:58px}.ms-voice-modal .modal-footer{padding:12px}.ms-voice-modal .modal-title{font-size:1.18rem}}
@media(max-width:420px){.ms-voice-product{grid-template-columns:74px 1fr;padding:11px}.ms-voice-product-image{width:74px;height:78px}.ms-voice-product-name{font-size:1rem}}


/* Fix superposición en móvil y asegurar que el modal quede por encima del header/nav */
.ms-voice-modal{z-index:5600!important}
body.ms-voice-modal-open .modal-backdrop.show{z-index:5590!important}
body.ms-voice-modal-open{overflow:hidden}
body.ms-voice-modal-open #navbarCollapse,
body.ms-voice-modal-open #navbar-vertical,
body.ms-voice-modal-open .back-to-top,
body.ms-voice-modal-open .ms-mobile-search-wrap,
body.ms-voice-modal-open .ms-toast-stack{display:none!important}
.ms-voice-modal .modal-dialog{margin:1rem auto}
.ms-voice-modal .modal-body{position:relative;z-index:1;background:#fff}
.ms-voice-text-form{flex:1 1 auto}
.ms-voice-text-form .input-group-append .btn{height:50px}
@media(max-width:767.98px){
  .ms-voice-modal .modal-dialog{margin:0;min-height:100%;width:100%;max-width:none}
  .ms-voice-modal .modal-content{min-height:100dvh;min-height:100vh;border-radius:0}
  .ms-voice-modal .modal-header{position:sticky;top:0;z-index:5;padding-top:calc(12px + env(safe-area-inset-top,0px))}
  .ms-voice-modal .modal-body{padding:12px 12px 88px}
  .ms-voice-modal .modal-footer{padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px))}
  .ms-voice-results{padding-right:0}
  .ms-voice-product{grid-template-columns:72px minmax(0,1fr);align-items:start;padding:12px}
  .ms-voice-product > div:nth-child(2){min-width:0}
  .ms-voice-product-actions{grid-column:1 / -1;padding-top:8px}
  .ms-voice-product-name{white-space:normal;word-break:break-word}
  .ms-voice-product-meta,.ms-voice-product-price{word-break:break-word}
}


/* V2: pantalla de voz realmente aislada del encabezado y controles flotantes */
.ms-voice-modal.modal{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  z-index:2147483000!important;
  padding:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
body.ms-voice-modal-open .modal-backdrop{z-index:2147482990!important}
body.ms-voice-modal-open .ms-site-header-top,
body.ms-voice-modal-open .ms-site-header-search,
body.ms-voice-modal-open .ms-site-header-nav,
body.ms-voice-modal-open .ms-floating-cart,
body.ms-voice-modal-open .rider-floating-reputation,
body.ms-voice-modal-open .back-to-top{
  visibility:hidden!important;
  pointer-events:none!important;
}
@media(max-width:767.98px){
  .ms-voice-modal.modal{background:#fff!important}
  .ms-voice-modal .modal-dialog{transform:none!important;min-height:100vh!important}
  .ms-voice-modal .modal-header{top:0!important}
  .ms-voice-modal .modal-footer{bottom:0!important}
}
