.ml-header {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-shrink:0;
  background:#fff;
  color:#082e50;
  border:1px solid #d7e8e8;
  border-radius:12px;
  padding:10px 14px;
  font:inherit;
  font-size:14px;
  cursor:pointer;
  white-space:nowrap;
}
.ml-header svg {
  width:23px;
  height:23px;
}
.ml-count {
  display:grid;
  place-items:center;
  min-width:22px;
  height:22px;
  padding:0 5px;
  border-radius:20px;
  background:#082e50;
  color:white;
  font-size:11px;
}
.ml-add {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:100%;
  min-height:34px;
  padding:7px 5px;
  margin-top:8px;
  border:1px solid #c8e7e4;
  border-radius:8px;
  background:#effaf8;
  color:#086c68;
  font:inherit;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
}
.ml-add[aria-pressed="true"] {
  background:#d1f1e8;
  border-color:#83cdbb;
  color:#086b50;
}
.ml-add:hover {
  background:#d1f1e8;
}
.ml-dialog {
  width:min(680px,calc(100% - 24px));
  max-height:90dvh;
  padding:0;
  border:0;
  border-radius:20px;
  background:#f5f8fa;
  color:#082e50;
  box-shadow:0 20px 80px #082e5033;
  overflow:auto;
  font-family:inherit;
}
.ml-dialog::backdrop {
  background:#082e5070;
}
.ml-dialog-head {
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px;
  background:#49cdc6;
  border-radius:20px 20px 0 0;
}
.ml-dialog-head h2 {
  font-size:23px;
  font-weight:500;
  margin:0 0 4px;
}
.ml-dialog-head p {
  margin:0;
  font-size:13px;
}
.ml-close {
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#ffffffb5;
  color:#082e50;
  font-size:25px;
  cursor:pointer;
}
.ml-content {
  padding:16px;
}
.ml-group {
  background:#fff;
  border:1px solid #e0e9ee;
  border-radius:16px;
  padding:16px;
  margin-bottom:14px;
}
.ml-group h3 {
  font-size:18px;
  font-weight:500;
  margin:0 0 12px;
}
.ml-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-top:1px solid #edf0f2;
}
.ml-item img {
  width:65px;
  height:65px;
  object-fit:cover;
  border-radius:9px;
  background:#f1f3f5;
}
.ml-item-info {
  flex:1;
  min-width:0;
}
.ml-item-info a {
  color:#082e50;
  text-decoration:none;
  font-size:15px;
  overflow-wrap:anywhere;
}
.ml-item-price {
  margin-top:5px;
  font-size:15px;
  color:#08766d;
}
.ml-remove {
  background:#fff1f1;
  border:0;
  border-radius:8px;
  padding:9px;
  color:#b73a3a;
  cursor:pointer;
}
.ml-remove svg {
  width:18px;
  height:18px;
}
.ml-whatsapp {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#168b49;
  color:white!important;
  padding:13px;
  border-radius:10px;
  text-decoration:none!important;
  font-size:15px;
  margin-top:12px;
}
.ml-whatsapp svg {
  width:21px;
  height:21px;
}
.ml-note {
  text-align:center;
  color:#687c89;
  font-size:12px;
  line-height:1.5;
  margin:12px 0 4px;
}
.ml-empty {
  text-align:center;
  padding:35px 15px;
}
.ml-empty h3 {
  font-size:20px;
  font-weight:500;
}
.ml-empty p {
  color:#687c89;
  font-size:14px;
}
.ml-unavailable {
  color:#8d6230;
  font-size:14px;
}
@media(max-width:700px) {
  .ml-header {
    padding:7px 9px;
    font-size:11px;
    gap:5px;
  }
  .ml-header svg {
    width:20px;
    height:20px;
  }
  .ml-add {
    font-size:11px;
    min-height:32px;
  }
  .ml-dialog {
    width:calc(100% - 16px);
    max-height:94dvh;
    border-radius:16px;
  }
  .ml-dialog-head {
    padding:16px;
  }
  .ml-dialog-head h2 {
    font-size:20px;
  }
  .ml-content {
    padding:10px;
  }
  .ml-group {
    padding:12px;
  }
  .ml-item img {
    width:55px;
    height:55px;
  }
}

/* Integracion con las tarjetas existentes */
#productos .product-body > .ml-add {
  order:10;
  flex-shrink:0;
}
.ml-featured-card,
.ml-mobile-card,
.ml-store-card {
  display:flex;
  flex-direction:column;
  min-width:0;
}
.ml-featured-card > .featured-product,
.ml-mobile-card > .mobile-promotion,
.ml-store-card > .sf-product {
  width:100%;
  flex:1;
  min-width:0;
}
.ml-featured-card > .ml-add,
.ml-mobile-card > .ml-add,
.ml-store-card > .ml-add {
  flex-shrink:0;
}
.pd-info > .ml-add {
  min-height:44px;
  font-size:15px;
  margin:10px 0;
}
header .header-main {
  gap:clamp(8px,1.4vw,22px);
}
@media(max-width:700px) {
  header .header-main {
    flex-wrap:wrap;
    gap:8px;
  }
  header .header-main > .ml-header {
    order:2;
    margin-left:auto;
  }
  header .header-main > .search {
    order:3;
    flex-basis:100%;
  }
  header .header-main > .join-header {
    order:1;
    margin-left:auto;
  }
  .ml-header {
    min-height:36px;
  }
}

/* Boton de consultas: turquesa intenso */
.ml-add {
  background:#009daa;
  color:#ffffff;
  border:1px solid #009daa;
  border-radius:11px;
  min-height:38px;
  font-size:13px;
  font-weight:500;
  padding:8px 4px;
  box-shadow:0 2px 5px #009daa26;
}
.ml-add:hover {
  background:#00838f;
  color:#ffffff;
}
.ml-add[aria-pressed="true"] {
  background:#08785f;
  border-color:#08785f;
  color:#ffffff;
}
@media(max-width:700px) {
  .ml-add {
    font-size:12px;
    min-height:36px;
    padding:7px 3px;
    border-radius:9px;
    letter-spacing:-0.2px;
  }
}

/* Botones de consulta compactos */
.ml-add {
  min-height:30px;
  padding:5px 4px;
  border-radius:6px;
  line-height:1.2;
}
@media(max-width:700px) {
  .ml-add {
    min-height:30px;
    padding:5px 3px;
    border-radius:6px;
  }
}

/* Notificacion flotante de consultas */
.ml-toast {
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:9999;
  width:340px;
  max-width:calc(100% - 28px);
  box-sizing:border-box;
  background:#fff;
  color:#082e50;
  border:1px solid #dce8eb;
  border-left:4px solid #009daa;
  border-radius:13px;
  padding:15px;
  box-shadow:0 8px 35px #082e5033;
  animation:mlToastIn .22s ease-out;
}
.ml-toast[hidden] {
  display:none!important;
}
.ml-toast-top {
  display:flex;
  align-items:center;
  gap:11px;
}
.ml-toast-check {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex-shrink:0;
  border-radius:50%;
  background:#009daa;
  color:#fff;
  font-size:22px;
}
.ml-toast-copy {
  flex:1;
  min-width:0;
}
.ml-toast-copy strong {
  display:block;
  font-size:14px;
  font-weight:500;
  line-height:1.4;
}
.ml-toast-copy span {
  display:block;
  color:#687c89;
  font-size:12px;
  margin-top:4px;
}
.ml-toast-close {
  align-self:flex-start;
  border:0;
  background:transparent;
  color:#687c89;
  font-size:23px;
  line-height:1;
  cursor:pointer;
  padding:0 3px;
}
.ml-toast-open {
  display:block;
  width:100%;
  margin-top:12px;
  padding:8px;
  min-height:32px;
  border:0;
  border-radius:6px;
  background:#009daa;
  color:#fff;
  font:inherit;
  font-size:13px;
  cursor:pointer;
}
@keyframes mlToastIn {
  from {
    opacity:0;
    transform:translateY(12px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}
@media(max-width:700px) {
  .ml-toast {
    left:14px;
    right:14px;
    bottom:calc(16px + env(safe-area-inset-bottom, 0px));
    width:auto;
    max-width:380px;
    margin:auto;
    padding:13px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .ml-toast {
    animation:none;
  }
}

/* Tipografia fina en computadora */
@media(min-width:701px) {
  .ml-add {
    font-weight:400!important;
  }
}

/* Opcion F - Icono de consulta en computadora */
@media(min-width:701px) {
  .ml-add {
    position:relative;
    display:block;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    margin-left:auto!important;
    padding:0!important;
    border:0!important;
    border-radius:8px!important;
    background:linear-gradient(145deg,#10b4bf,#007783);
    font-size:0!important;
    box-shadow:0 2px 5px #00778325;
    cursor:pointer;
    transition:transform .15s,box-shadow .15s;
  }

  .ml-add::before {
    content:"";
    position:absolute;
    inset:5px;
    background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 14a10 10 0 1 0-17 7l-2 5 6-2a10 10 0 0 0 7 0'/%3E%3Ccircle cx='9' cy='14' r='.8' fill='white'/%3E%3Ccircle cx='13' cy='14' r='.8' fill='white'/%3E%3Ccircle cx='17' cy='14' r='.8' fill='white'/%3E%3Ccircle cx='24' cy='24' r='6' fill='%23008793'/%3E%3Cpath d='M21 24h6m-3-3v6'/%3E%3C/svg%3E");
  }

  .ml-add[aria-pressed="true"],
  .ml-add.is-selected,
  .ml-add.selected,
  .ml-add.active {
    background:#08785f!important;
  }

  .ml-add[aria-pressed="true"]::before,
  .ml-add.is-selected::before,
  .ml-add.selected::before,
  .ml-add.active::before {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 16 6 6L25 10'/%3E%3C/svg%3E");
  }

  .ml-add:hover {
    transform:translateY(-1px);
    box-shadow:0 3px 8px #00778340;
  }
}

/* Boton de consulta rectangular centrado */
@media(min-width:701px) {
  .ml-add {
    width:100px!important;
    min-width:100px!important;
    max-width:100px!important;
    height:32px!important;
    min-height:32px!important;
    margin:6px auto 0!important;
    align-self:center!important;
    border-radius:6px!important;
  }

  .ml-add::before {
    inset:3px;
    background-size:26px 26px;
  }
}

/* Consulta minimalista - opcion 2 */
@media(min-width:701px) {
  .ml-add {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:34px!important;
    min-height:34px!important;
    margin:7px auto 0!important;
    padding:6px 0!important;
    background:transparent!important;
    border:0!important;
    border-top:1px solid #e8edef!important;
    border-radius:0!important;
    box-shadow:none!important;
    color:#008e99!important;
    font-size:0!important;
    transform:none!important;
  }

  .ml-add::before {
    position:static!important;
    content:"";
    width:19px;
    height:19px;
    flex-shrink:0;
    background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008e99' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 19H8l-5 3V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v7M16 16h6m-3-3v6'/%3E%3C/svg%3E")!important;
  }

  .ml-add::after {
    content:"Consultar";
    font-size:14px;
    font-weight:400;
    line-height:1.3;
  }

  .ml-add:hover {
    background:#f0faf9!important;
    box-shadow:none!important;
  }

  .ml-add[aria-pressed="true"],
  .ml-add.is-selected,
  .ml-add.selected,
  .ml-add.active {
    background:transparent!important;
    color:#08785f!important;
  }

  .ml-add[aria-pressed="true"]::before,
  .ml-add.is-selected::before,
  .ml-add.selected::before,
  .ml-add.active::before {
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308785f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")!important;
  }

  .ml-add[aria-pressed="true"]::after,
  .ml-add.is-selected::after,
  .ml-add.selected::after,
  .ml-add.active::after {
    content:"En mi lista";
  }
}

/* Consultas WhatsApp - estilo minimalista */
.ml-add,
.ml-add:hover,
.ml-add:active,
.ml-add[aria-pressed="true"],
.ml-add.is-selected,
.ml-add.selected,
.ml-add.active {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:36px!important;
  min-height:36px!important;
  margin:7px auto 0!important;
  padding:5px 0!important;
  background:transparent!important;
  border:0!important;
  border-top:1px solid #e8edef!important;
  border-radius:0!important;
  box-shadow:none!important;
  color:#00877f!important;
  font-size:0!important;
  transform:none!important;
  filter:none!important;
}

.ml-add::before {
  content:"";
  position:static!important;
  width:23px!important;
  height:23px!important;
  flex-shrink:0;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300877f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.8a8.5 8.5 0 0 1-12.7 7.4L3 20.5l1.3-4.7a8.5 8.5 0 1 1 16.2-4Z'/%3E%3Cpath d='M8 7.5c-.8.5-1 1.5-.5 2.7 1 2.6 3.5 4.8 6.2 5.3 1.1.2 2.1-.5 2.3-1.5l-2.8-1.5-1.1 1c-1.6-.7-2.7-1.8-3.3-3.3l.8-1.1L8 7.5Z'/%3E%3C/svg%3E")!important;
}

.ml-add::after {
  content:"Consultar";
  font-size:16px!important;
  font-weight:400!important;
  line-height:1.2;
}

.ml-add:hover {
  color:#006b64!important;
}

.ml-add[aria-pressed="true"]::before,
.ml-add.is-selected::before,
.ml-add.selected::before,
.ml-add.active::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308785f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E")!important;
}

.ml-add[aria-pressed="true"]::after,
.ml-add.is-selected::after,
.ml-add.selected::after,
.ml-add.active::after {
  content:"En mi lista";
  color:#08785f;
}

/* Aviso flotante */
.ml-consult-tip {
  position:fixed;
  z-index:10000;
  width:224px;
  box-sizing:border-box;
  padding:12px 15px;
  background:#00877f;
  color:white;
  border-radius:11px;
  font-size:14px;
  font-weight:400;
  line-height:1.4;
  text-align:center;
  box-shadow:0 5px 18px #003e3926;
  pointer-events:none;
}

.ml-consult-tip::before {
  content:"";
  position:absolute;
  top:-6px;
  left:calc(50% - 6px);
  width:12px;
  height:12px;
  background:#00877f;
  transform:rotate(45deg);
}

.ml-consult-tip.above::before {
  top:auto;
  bottom:-6px;
}

.ml-consult-tip[hidden] {
  display:none!important;
}

@media(max-width:700px) {
  .ml-add::after {
    font-size:14px!important;
  }
  .ml-add::before {
    width:21px!important;
    height:21px!important;
  }
  .ml-add {
    height:34px!important;
    min-height:34px!important;
  }
}

/* WhatsApp verde y tipografia fina */
.ml-add {
  color:#08783e!important;
  gap:6px!important;
}

.ml-add::before {
  width:23px!important;
  height:23px!important;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231BA64B' d='M12 1a11 11 0 0 0-9.5 16.5L1 23l5.7-1.5A11 11 0 1 0 12 1Z'/%3E%3Cpath fill='white' d='M8.2 6.1c-.5-.2-1-.1-1.4.3-.7.7-1 1.6-.7 2.8.7 3.4 4.2 6.9 7.6 7.7 1.2.3 2.3-.1 3-.9.4-.5.5-1.3.1-1.5l-2.6-1.3c-.4-.2-.6-.1-.9.2l-.9 1.1c-2-.8-3.4-2.2-4.2-4.1l1-1.1c.2-.3.3-.5.1-.9Z'/%3E%3C/svg%3E")!important;
}

.ml-add::after {
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:15px!important;
  font-weight:400!important;
  letter-spacing:0!important;
  line-height:1.3!important;
  color:inherit;
  text-shadow:none!important;
  -webkit-font-smoothing:antialiased;
}

.ml-add:hover {
  background:transparent!important;
  color:#05652f!important;
}

.ml-add[aria-pressed="true"]::before,
.ml-add.is-selected::before,
.ml-add.selected::before,
.ml-add.active::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%231BA64B'/%3E%3Cpath d='m7 12 3.5 3.5L17 9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}

@media(max-width:700px) {
  .ml-add::after {
    font-size:13px!important;
  }

  .ml-add::before {
    width:21px!important;
    height:21px!important;
  }
}

/* Diferenciar productos seleccionados */
.ml-add[aria-pressed="true"]::before,
.ml-add.is-selected::before,
.ml-add.selected::before,
.ml-add.active::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%232568B8'/%3E%3Cpath d='m7 12 3.5 3.5L17 9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}

.ml-add[aria-pressed="true"]::after,
.ml-add.is-selected::after,
.ml-add.selected::after,
.ml-add.active::after {
  color:#2568b8!important;
  font-weight:400!important;
}

/* Cartel flotante mas delicado */
.ml-consult-tip {
  width:190px;
  padding:8px 10px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.4;
  border-radius:8px;
  box-shadow:0 3px 10px #003e391c;
}

.ml-consult-tip::before {
  width:8px;
  height:8px;
  top:-4px;
  left:calc(50% - 4px);
}

.ml-consult-tip.above::before {
  top:auto;
  bottom:-4px;
}

/* Cartel de consulta compacto y fino */
.ml-consult-tip {
  width:160px!important;
  padding:7px 8px!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:11px!important;
  font-weight:300!important;
  letter-spacing:0!important;
  line-height:1.4!important;
  border-radius:7px!important;
  text-shadow:none!important;
}

/* Ventana de consultas compacta */
.ml-dialog {
  width:min(520px,calc(100% - 24px))!important;
  max-height:85dvh!important;
  border-radius:14px!important;
  box-sizing:border-box;
}

.ml-dialog-head {
  background:#00877f!important;
  color:#fff!important;
  padding:10px 14px!important;
  min-height:48px;
  box-sizing:border-box;
  border-radius:14px 14px 0 0!important;
  gap:8px;
}

.ml-dialog-head > div {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.ml-dialog-head h2 {
  color:#fff!important;
  font-size:16px!important;
  font-weight:400!important;
  margin:0!important;
  white-space:nowrap;
  letter-spacing:0!important;
}

.ml-dialog-head p {
  color:#fff!important;
  font-size:12px!important;
  font-weight:400!important;
  margin:0!important;
  padding-left:12px;
  border-left:1px solid #ffffff70;
  white-space:nowrap;
}

.ml-close {
  width:28px!important;
  height:28px!important;
  flex-shrink:0;
  font-size:20px!important;
  background:#fff!important;
  color:#00877f!important;
}

.ml-content {
  padding:10px!important;
}

.ml-group {
  padding:12px!important;
  margin-bottom:9px!important;
  border-radius:11px!important;
}

.ml-group h3 {
  font-size:16px!important;
  font-weight:400!important;
  margin:0 0 8px!important;
}

.ml-item {
  padding:8px 0!important;
  gap:10px!important;
}

.ml-item img {
  width:50px!important;
  height:50px!important;
  border-radius:6px!important;
}

.ml-item-info a,
.ml-item-price {
  font-size:14px!important;
  font-weight:400!important;
}

.ml-item-price {
  margin-top:4px!important;
}

.ml-remove {
  padding:7px!important;
  border-radius:6px!important;
}

.ml-remove svg {
  width:16px!important;
  height:16px!important;
}

.ml-whatsapp {
  min-height:34px!important;
  padding:7px 10px!important;
  box-sizing:border-box;
  margin-top:6px!important;
  border-radius:6px!important;
  font-size:14px!important;
  font-weight:400!important;
}

.ml-whatsapp svg {
  width:18px!important;
  height:18px!important;
}

.ml-note {
  font-size:11px!important;
  font-weight:400!important;
  margin:7px 0 0!important;
}

@media(max-width:700px) {
  .ml-dialog {
    width:calc(100% - 18px)!important;
    max-width:520px!important;
  }

  .ml-dialog-head {
    padding:10px!important;
  }

  .ml-dialog-head > div {
    gap:7px;
    flex-wrap:wrap;
  }

  .ml-dialog-head h2 {
    font-size:14px!important;
  }

  .ml-dialog-head p {
    font-size:10px!important;
    padding-left:7px;
  }

  .ml-content {
    padding:8px!important;
  }

  .ml-group {
    padding:10px!important;
  }
}
