/* 1.7.8 · Funciones recuperadas del popup original */
.ubd-delivery-notice-v178 {
  --ubd-notice-bg-1:#F5BEA4;
  --ubd-notice-bg-2:#EE9368;
  --ubd-notice-ink:#18333A;
  --ubd-notice-button:#18333A;
  --ubd-notice-button-text:#FFFFFF;
  position:fixed;
  right:18px;
  top:92px;
  z-index:2070;
  width:min(368px,calc(100vw - 28px));
  border:1px solid rgba(24,51,58,.08);
  border-radius:23px;
  background:linear-gradient(145deg,var(--ubd-notice-bg-1),var(--ubd-notice-bg-2));
  color:var(--ubd-notice-ink);
  box-shadow:0 18px 46px rgba(24,51,58,.16);
  opacity:0;
  visibility:hidden;
  transform:translateY(calc(-10px + var(--ubd-notice-drag-y,0px)));
  transition:opacity .24s ease,transform .24s ease,visibility .24s ease,width .22s ease;
  overflow:hidden;
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  touch-action:pan-y;
}
.ubd-delivery-notice-v178.is-visible{opacity:1;visibility:visible;transform:translateY(var(--ubd-notice-drag-y,0px))}
.ubd-delivery-notice-v178.is-leaving{opacity:0;visibility:hidden;transform:translateY(-8px)}
.ubd-delivery-notice-v178.is-dragging{transition:none!important}
.ubd-delivery-notice-v178 .ubd-notice-compact-row{display:none;align-items:center;gap:5px;padding:7px}
.ubd-delivery-notice-v178 .ubd-notice-expand{display:flex;align-items:center;gap:9px;min-width:0;min-height:43px;flex:1;padding:0 3px;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left}
.ubd-delivery-notice-v178 .ubd-notice-expand strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:900;letter-spacing:.005em}
.ubd-delivery-notice-v178 .ubd-notice-chevron{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;margin-left:auto;border-radius:9px;background:rgba(255,255,255,.58);transition:transform .2s ease}
.ubd-delivery-notice-v178 .ubd-notice-chevron svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ubd-delivery-notice-v178 .ubd-notice-full-body{padding:14px}
.ubd-delivery-notice-v178 .ubd-notice-head{display:flex;align-items:flex-start;gap:11px}
.ubd-delivery-notice-v178 .ubd-notice-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.76)}
.ubd-delivery-notice-v178 .ubd-notice-icon.is-large{flex-basis:43px;width:43px;height:43px;border-radius:15px}
.ubd-delivery-notice-v178 .ubd-notice-icon svg,.ubd-delivery-reopen-v178 svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ubd-delivery-notice-v178 .ubd-notice-icon.is-large svg{width:25px;height:25px}
.ubd-delivery-notice-v178 .ubd-notice-copy{min-width:0;flex:1}
.ubd-delivery-notice-v178 .ubd-notice-copy small{display:block;margin:0 0 3px;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;opacity:.72}
.ubd-delivery-notice-v178 .ubd-notice-copy>strong{display:block;margin:0;font-family:"Protest Strike",Impact,sans-serif;font-size:24px;font-weight:400;line-height:.96;text-transform:uppercase}
.ubd-delivery-notice-v178 .ubd-notice-copy p{margin:7px 0 0;font-size:11px;font-weight:650;line-height:1.45}
.ubd-delivery-notice-v178 .ubd-notice-close{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;padding:0;border:0;border-radius:10px;background:rgba(255,255,255,.72);color:inherit;font-size:20px;line-height:1;cursor:pointer}
.ubd-delivery-notice-v178 .ubd-notice-actions{display:flex;gap:8px;margin-top:12px}
.ubd-delivery-notice-v178 .ubd-notice-actions a,.ubd-delivery-notice-v178 .ubd-notice-actions button{display:flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border:0;border-radius:13px;font-size:10px;font-weight:900;text-decoration:none!important;cursor:pointer}
.ubd-delivery-notice-v178 .ubd-notice-primary{flex:1;background:var(--ubd-notice-button)!important;color:var(--ubd-notice-button-text)!important}
.ubd-delivery-notice-v178 .ubd-notice-secondary{background:rgba(255,255,255,.76)!important;color:var(--ubd-notice-ink)!important}
.ubd-delivery-notice-v178.is-full .ubd-notice-full-body{display:block}
.ubd-delivery-notice-v178.is-full .ubd-notice-compact-row{display:none}
.ubd-delivery-notice-v178.is-compact{width:min(330px,calc(100vw - 28px));border-radius:18px}
.ubd-delivery-notice-v178.is-compact .ubd-notice-compact-row{display:flex}
.ubd-delivery-notice-v178.is-compact .ubd-notice-full-body{display:none;border-top:1px solid rgba(24,51,58,.08)}
.ubd-delivery-notice-v178.is-compact .is-full-close{display:none}
.ubd-delivery-notice-v178.is-compact.is-expanded{width:min(368px,calc(100vw - 28px));border-radius:23px}
.ubd-delivery-notice-v178.is-compact.is-expanded .ubd-notice-full-body{display:block;animation:ubdNoticeOpen178 .2s ease both}
.ubd-delivery-notice-v178.is-compact.is-expanded .ubd-notice-chevron{transform:rotate(180deg)}
@keyframes ubdNoticeOpen178{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.ubd-notice-countdown{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:10px;padding:8px 10px;border-radius:13px;background:rgba(255,255,255,.68)}
.ubd-notice-countdown small{margin:0!important;font-size:8px!important;letter-spacing:.04em!important}
.ubd-notice-countdown strong,.ubd-notice-mini-countdown{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:9px;background:rgba(24,51,58,.92);color:#fff;font-size:10px;font-weight:900;letter-spacing:.02em}
.ubd-notice-countdown strong{min-width:58px;padding:6px 8px}
.ubd-notice-mini-countdown{flex:0 0 auto;padding:5px 7px}
.ubd-delivery-reopen-v178{--ubd-notice-bg-1:#F5BEA4;--ubd-notice-bg-2:#EE9368;--ubd-notice-ink:#18333A;position:fixed;right:18px;top:92px;z-index:2069;display:flex;align-items:center;gap:8px;max-width:min(280px,calc(100vw - 28px));min-height:42px;padding:6px 11px 6px 7px;border:1px solid rgba(24,51,58,.08);border-radius:15px;background:linear-gradient(145deg,var(--ubd-notice-bg-1),var(--ubd-notice-bg-2));color:var(--ubd-notice-ink);box-shadow:0 12px 30px rgba(24,51,58,.14);opacity:0;visibility:hidden;transform:translateY(-8px);transition:.22s ease;cursor:pointer;font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ubd-delivery-reopen-v178.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.ubd-delivery-reopen-v178 span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:rgba(255,255,255,.7)}
.ubd-delivery-reopen-v178 strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:900}
#ios-glass-wrapper,#reopen-tie-wrapper{display:none!important}

@media (max-width:767px){
  .ubd-delivery-notice-v178{top:auto;right:14px;bottom:calc(88px + env(safe-area-inset-bottom));width:calc(100vw - 28px);transform:translateY(calc(12px + var(--ubd-notice-drag-y,0px)))}
  .ubd-delivery-notice-v178.is-visible{transform:translateY(var(--ubd-notice-drag-y,0px))}
  .ubd-delivery-notice-v178.is-full{padding:0;border-radius:20px}
  .ubd-delivery-notice-v178.is-compact{right:14px;width:min(316px,calc(100vw - 28px));border-radius:17px}
  .ubd-delivery-notice-v178.is-compact.is-expanded{width:calc(100vw - 28px);border-radius:20px}
  .ubd-delivery-notice-v178.is-compact .ubd-notice-compact-row{padding:6px}
  .ubd-delivery-notice-v178.is-compact .ubd-notice-expand{min-height:40px}
  .ubd-delivery-notice-v178 .ubd-notice-expand strong{font-size:11px}
  .ubd-delivery-notice-v178 .ubd-notice-copy>strong{font-size:21px}
  .ubd-delivery-notice-v178 .ubd-notice-copy p{font-size:10px}
  .ubd-delivery-notice-v178 .ubd-notice-full-body{padding:12px}
  .ubd-delivery-reopen-v178{top:auto;right:14px;bottom:calc(91px + env(safe-area-inset-bottom));max-width:min(270px,calc(100vw - 28px))}
}

@media (prefers-reduced-motion:reduce){
  .ubd-delivery-notice-v178,.ubd-delivery-reopen-v178,.ubd-delivery-notice-v178 .ubd-notice-chevron{transition:none!important}
  .ubd-delivery-notice-v178.is-compact.is-expanded .ubd-notice-full-body{animation:none!important}
}


/* 1.7.8 · Estado inteligente dentro de Exprés e Inmediatos */
.ubd-smart-category-status-v178{
  --ubd-smart-1:#CBE5AF;
  --ubd-smart-2:#9FC379;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  width:100%;
  margin:0 0 16px;
  padding:17px 18px;
  border:1px solid rgba(24,51,58,.08);
  border-radius:20px;
  background:linear-gradient(135deg,var(--ubd-smart-1),var(--ubd-smart-2));
  color:#18333A;
  box-shadow:0 12px 30px rgba(24,51,58,.09);
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.ubd-smart-category-status-v178[data-tone="today"]{--ubd-smart-1:#F7C5A8;--ubd-smart-2:#EE9368}
.ubd-smart-category-status-v178[data-tone="later"]{--ubd-smart-1:#D4E9BD;--ubd-smart-2:#A8CB82}
.ubd-smart-category-status-v178>div{min-width:0}
.ubd-smart-category-status-v178 small{display:block;margin:0 0 4px;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;opacity:.72}
.ubd-smart-category-status-v178 strong{display:block;font-family:"Protest Strike",Impact,sans-serif;font-size:25px;font-weight:400;line-height:1;text-transform:uppercase}
.ubd-smart-category-status-v178 p{max-width:760px;margin:7px 0 0;font-size:11px;font-weight:650;line-height:1.45}
.ubd-smart-category-status-v178>a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:42px;padding:0 15px;border-radius:14px;background:#18333A;color:#fff!important;font-size:10px;font-weight:900;text-decoration:none!important;white-space:nowrap}

.ubd-delivery-notice-v178 .ubd-notice-rules{display:grid;gap:5px;margin:10px 0 0;padding:9px 10px;border-radius:14px;background:rgba(255,255,255,.45)}
.ubd-delivery-notice-v178 .ubd-notice-rules span{display:flex;align-items:flex-start;gap:7px;font-size:9px;font-weight:720;line-height:1.35}
.ubd-delivery-notice-v178 .ubd-notice-rules b{display:grid;place-items:center;flex:0 0 16px;width:16px;height:16px;border-radius:50%;background:rgba(24,51,58,.9);color:#fff;font-size:9px}

[data-ubd-smart-delivery-card].is-ubd-delivery-active{outline:3px solid rgba(24,51,58,.18);outline-offset:3px;transform:translateY(-2px)}

@media(max-width:767px){
  .ubd-smart-category-status-v178{align-items:stretch;gap:12px;padding:14px;border-radius:18px;flex-direction:column}
  .ubd-smart-category-status-v178 strong{font-size:21px}
  .ubd-smart-category-status-v178>a{width:100%;min-height:40px}
  .ubd-delivery-notice-v178 .ubd-notice-rules{padding:8px}
}


/* =========================================================
   1.7.8 · Exprés e Inmediatos: aviso ampliado y reglas CDMX
   ========================================================= */
.ubd-delivery-notice-v178.is-priority-category{
  width:min(520px,calc(100vw - 36px));
  border-radius:26px;
  box-shadow:0 24px 65px rgba(24,51,58,.23);
}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-full-body{padding:18px}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-head{gap:14px}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-icon.is-large{
  flex-basis:52px;width:52px;height:52px;border-radius:18px
}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-icon.is-large svg{width:29px;height:29px}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-copy small{font-size:10px}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-copy>strong{
  font-size:31px;line-height:.95;text-wrap:balance
}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-copy p{
  max-width:410px;font-size:12px;line-height:1.5
}
.ubd-priority-live{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 10px
}
.ubd-priority-live>span{
  display:grid;gap:3px;padding:10px 12px;border-radius:15px;background:rgba(255,255,255,.7)
}
.ubd-priority-live small{font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.68}
.ubd-priority-live strong{font-size:12px;font-weight:900;line-height:1.2}
.ubd-priority-timeline{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 10px
}
.ubd-priority-timeline article{
  position:relative;display:grid;align-content:start;gap:3px;min-height:88px;padding:10px 9px;border:1px solid rgba(24,51,58,.08);border-radius:15px;background:rgba(255,255,255,.45);opacity:.72
}
.ubd-priority-timeline article.is-current{
  background:rgba(24,51,58,.94);color:#fff;opacity:1;transform:translateY(-2px);box-shadow:0 10px 22px rgba(24,51,58,.18)
}
.ubd-priority-timeline article.is-current::before{
  content:"Ahora";position:absolute;top:-7px;right:7px;padding:3px 6px;border-radius:999px;background:#fff;color:#18333A;font-size:7px;font-weight:900;letter-spacing:.05em;text-transform:uppercase
}
.ubd-priority-timeline small{font-size:7px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;opacity:.72}
.ubd-priority-timeline strong{font-size:10px;font-weight:900;line-height:1.15}
.ubd-priority-timeline span{font-size:8px;font-weight:700;line-height:1.25;opacity:.76}
.ubd-priority-note{
  margin:0;padding:10px 12px;border-radius:15px;background:rgba(255,255,255,.68);font-size:9px!important;line-height:1.45!important
}
.ubd-priority-note strong{font-weight:950}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-rules{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:9px}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-actions{margin-top:13px}
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-actions a,
.ubd-delivery-notice-v178.is-priority-category .ubd-notice-actions button{min-height:43px;font-size:11px}

.ubd-smart-category-status-v178{
  padding:22px 22px;border-radius:24px;box-shadow:0 18px 42px rgba(24,51,58,.13)
}
.ubd-smart-category-status-v178 .ubd-smart-category-copy{min-width:0;flex:1}
.ubd-smart-category-status-v178 .ubd-smart-category-copy>strong{font-size:31px;text-wrap:balance}
.ubd-smart-category-status-v178 .ubd-smart-category-copy>p{font-size:12px;max-width:820px}
.ubd-smart-category-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.ubd-smart-category-meta span{display:flex;align-items:center;gap:7px;padding:7px 9px;border-radius:11px;background:rgba(255,255,255,.62)}
.ubd-smart-category-meta b{font-size:8px;font-weight:950;letter-spacing:.05em;text-transform:uppercase;opacity:.68}
.ubd-smart-category-meta em{font-size:10px;font-style:normal;font-weight:900}

@media(max-width:767px){
  .ubd-delivery-notice-v178.is-priority-category{
    right:10px;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 20px);max-height:min(78vh,690px);overflow:auto;border-radius:22px
  }
  .ubd-delivery-notice-v178.is-priority-category .ubd-notice-full-body{padding:14px}
  .ubd-delivery-notice-v178.is-priority-category .ubd-notice-copy>strong{font-size:25px}
  .ubd-delivery-notice-v178.is-priority-category .ubd-notice-copy p{font-size:11px}
  .ubd-priority-live{grid-template-columns:1fr 1fr}
  .ubd-priority-timeline{grid-template-columns:1fr 1fr}
  .ubd-priority-timeline article{min-height:76px}
  .ubd-delivery-notice-v178.is-priority-category .ubd-notice-rules{grid-template-columns:1fr}
  .ubd-smart-category-status-v178{padding:17px;border-radius:20px}
  .ubd-smart-category-status-v178 .ubd-smart-category-copy>strong{font-size:24px}
  .ubd-smart-category-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .ubd-smart-category-meta span{display:grid;gap:2px;text-align:center;padding:8px 5px}
}

@media(max-width:390px){
  .ubd-delivery-notice-v178.is-priority-category{max-height:76vh}
  .ubd-priority-live{grid-template-columns:1fr}
  .ubd-priority-timeline article{padding:9px 8px}
}
