/* ================================================================
   Cart drawer (footer-v2.php, #uwCart). Uber Eats pattern: the cart
   slides in from the right after an add, and from the header cart
   icon. Full width on phones. Classes are prefixed `uwc-`.
   ================================================================ */

.uwc { position: fixed; inset: 0; z-index: 9300; }
.uwc[hidden] { display: none; }
html.uwc-lock, html.uwc-lock body { overflow: hidden; }

.uwc-scrim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .28s ease;
}
.uwc.is-open .uwc-scrim { opacity: 1; }

.uwc-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  background: #fff; color: #111;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .22);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22, .8, .24, 1);
}
.uwc.is-open .uwc-panel { transform: none; }

/* Header: close, then the store row. */
.uwc-head { flex: 0 0 auto; padding: 16px 20px 14px; border-bottom: 1px solid #EEE; }
.uwc-close {
  width: 44px; height: 44px; margin: 0 0 14px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #F3F3F3; color: #111; cursor: pointer;
  transition: background .15s;
}
.uwc-close:hover { background: #E8E8E8; }
.uwc-close:focus-visible { outline: 3px solid #276EF1; outline-offset: 2px; }
.uwc-store { display: flex; align-items: center; gap: 14px; }
.uwc-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.uwc-store h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: #111; }
.uwc-meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 2px; font-size: 14px; color: #5E5E5E; }
.uwc-mode::before { content: "\00B7"; margin-right: 8px; }
.uwc-count:empty { display: none; }
.uwc-count:empty + .uwc-mode::before { content: none; margin: 0; }

/* Lines */
.uwc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.uwc-lines { list-style: none; margin: 0; padding: 4px 20px 12px; }
.uwc-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.uwc-line + .uwc-line { border-top: 1px solid #F1F1F1; }
.uwc-thumb {
  flex: 0 0 auto; width: 72px; height: 72px;
  border-radius: 12px; overflow: hidden; background: #F6F6F6;
  display: grid; place-items: center;
}
.uwc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.uwc-ph { width: 28px; height: 28px; border-radius: 8px; background: #E6E6E6; }
.uwc-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.uwc-name {
  font-size: 16px; font-weight: 600; line-height: 1.3; color: #111; text-decoration: none;
  overflow-wrap: break-word;
}
a.uwc-name:hover { text-decoration: underline; color: #111; }
.uwc-opt {
  font-size: 13.5px; line-height: 1.35; color: #5E5E5E;
  overflow-wrap: break-word;
}
.uwc-price { margin-top: 2px; font-size: 14.5px; font-weight: 600; color: #111; }
.uwc-price s { margin-right: 4px; font-weight: 400; color: #8A8A8A; }
.uwc-free { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: #E7F6EC; color: #137A3E; font-size: 13px; font-weight: 700; }

/* "- n +" pill */
.uwc-step {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px; background: #F3F3F3;
  transition: opacity .15s;
}
.uwc-step.is-busy { opacity: .5; pointer-events: none; }
.uwc-step button {
  width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: #111; cursor: pointer;
}
.uwc-step button:hover { background: #fff; }
.uwc-step button:focus-visible { outline: 2px solid #276EF1; outline-offset: 1px; }
.uwc-qty { min-width: 22px; text-align: center; font-size: 15px; font-weight: 700; }

/* Delivery notice: a band above the checkout button, like Uber's promo bar. */
.uwc-notice { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; font-size: 14px; line-height: 1.4; }
.uwc-notice[hidden] { display: none; }
.uwc-notice small { display: block; margin-top: 2px; font-size: 12.5px; opacity: .8; }
.uwc-notice a { color: inherit; font-weight: 700; }
.uwc-notice--success { background: #E7F6EC; color: #0F5C2F; }
.uwc-notice--info    { background: #EEF4FF; color: #1A3E8C; }
.uwc-notice--warn    { background: #FFF4E0; color: #7A4A00; }
.uwc-bar { display: block; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.uwc-bar i { display: block; height: 100%; border-radius: inherit; background: currentColor; transition: width .4s ease; }

/* Footer */
.uwc-foot {
  flex: 0 0 auto;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #EEE; background: #fff;
}
.uwc-foot[hidden] { display: none; }
.uwc-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 16px; color: #111; }
.uwc-total strong { font-size: 18px; font-weight: 700; }
.uwc-btn {
  display: flex; align-items: center; justify-content: center;
  height: 56px; border-radius: 12px;
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background .15s, transform .15s;
}
.uwc-btn:active { transform: scale(.99); }
.uwc-btn--dark { background: #000; color: #fff; }
.uwc-btn--dark:hover { background: #222; color: #fff; }
.uwc-link { display: block; margin-top: 10px; text-align: center; font-size: 14.5px; font-weight: 600; color: #111; text-decoration: underline; text-underline-offset: 3px; }
.uwc-link:hover { color: #333; }

/* Empty */
.uwc.is-empty .uwc-body { display: flex; align-items: center; justify-content: center; }
.uwc-empty { max-width: 330px; padding: 24px; text-align: center; }
.uwc-empty-art { width: 180px; height: auto; margin: 0 auto 18px; display: block; }
.uwc-empty h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #111; }
.uwc-empty p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.5; color: #5E5E5E; }
.uwc-empty-btn { display: inline-flex; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 16px; }

/* Loading */
.uwc-skel { padding: 20px; display: grid; gap: 16px; }
.uwc-skel i {
  display: block; height: 72px; border-radius: 12px;
  background: linear-gradient(90deg, #F3F3F3 25%, #EAEAEA 50%, #F3F3F3 75%);
  background-size: 200% 100%; animation: uwcShimmer 1.2s linear infinite;
}
@keyframes uwcShimmer { to { background-position: -200% 0; } }
.uwc-error { padding: 24px 20px; color: #5E5E5E; }
.uwc-error a { color: #111; font-weight: 700; }

/* The floating chat button sits under the open cart. */
html.uwc-lock .uwai-btn { display: none !important; }

@media (max-width: 480px) {
  .uwc-head { padding: 12px 16px; }
  .uwc-close { width: 40px; height: 40px; margin-bottom: 10px; }
  .uwc-store h2 { font-size: 20px; }
  .uwc-logo { width: 44px; height: 44px; }
  .uwc-lines { padding: 0 16px 8px; }
  .uwc-thumb { width: 64px; height: 64px; }
  .uwc-name { font-size: 15px; }
  .uwc-notice { padding: 12px 16px; }
  .uwc-foot { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 360px) {
  .uwc-line { gap: 10px; }
  .uwc-thumb { width: 54px; height: 54px; }
  .uwc-step button { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .uwc-panel, .uwc-scrim { transition: none; }
  .uwc-skel i { animation: none; }
}

/* ── Uber Eats layout ─────────────────────────────────────────────────
   Plain close and full-cart icons on one row, then the store name large
   with "Deliver to …" under it; lines with the image on white and a
   heavy "- n +" pill; "+ Add items"; a tone band with an icon; and one
   black "Go to checkout" bar carrying the subtotal. */
.uwc-panel { outline: none; }
.uwc-head { padding: 12px 16px 18px; border-bottom: 0; }
.uwc-bar-top { display: flex; align-items: center; justify-content: space-between; margin: 0 -6px 14px; }
.uwc-close,
.uwc-icon-btn {
  width: 44px; height: 44px; margin: 0; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; color: #000; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.uwc-close:hover, .uwc-icon-btn:hover { background: #F3F3F3; color: #000; }
.uwc-icon-btn:focus-visible { outline: 3px solid #276EF1; outline-offset: 2px; }
.uwc-store { align-items: flex-start; gap: 14px; }
.uwc-logo { display: none; }
.uwc-store-text { min-width: 0; }
.uwc-store h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.uwc-deliver { margin: 8px 0 0; font-size: 17px; line-height: 1.4; color: #545454; }
.uwc-meta { margin-top: 6px; font-size: 14px; color: #757575; }

.uwc-lines { padding: 0 16px; }
.uwc-line { align-items: flex-start; gap: 16px; padding: 18px 0; }
.uwc-line + .uwc-line { border-top: 1px solid #F0F0F0; }
.uwc-thumb { width: 80px; height: 80px; border-radius: 10px; background: #fff; }
.uwc-thumb img { object-fit: contain; }
.uwc-info { padding-top: 2px; gap: 4px; }
.uwc-name { font-size: 18px; font-weight: 500; color: #000; }
.uwc-opt { font-size: 15px; color: #6B6B6B; }
.uwc-price { margin-top: 6px; font-size: 16px; font-weight: 500; color: #545454; }
.uwc-step { align-self: center; gap: 0; padding: 4px 6px; background: #EEEEEE; }
.uwc-step button { width: 36px; height: 36px; color: #000; }
.uwc-step button svg { width: 18px; height: 18px; stroke-width: 2.6; }
.uwc-step button:hover { background: #E2E2E2; }
.uwc-qty { min-width: 26px; font-size: 16px; font-weight: 500; }

.uwc-more { display: flex; justify-content: flex-end; padding: 6px 16px 20px; }
.uwc-add {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px;
  background: #EEEEEE; color: #000;
  font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.uwc-add:hover { background: #E2E2E2; }
.uwc-add svg { width: 18px; height: 18px; }

.uwc-notice { gap: 10px; padding: 16px 20px; font-size: 15.5px; font-weight: 500; }
.uwc-notice-row { display: flex; align-items: flex-start; gap: 12px; }
.uwc-notice-ico { flex: 0 0 auto; margin-top: 1px; }
.uwc-notice-ico svg { display: block; }
.uwc-notice strong { font-weight: 700; }
.uwc-notice small { font-weight: 400; }
.uwc-notice--success { background: #E6F4EA; color: #0E5A2B; }
.uwc-notice--info    { background: #FBE4DF; color: #C8321E; }
.uwc-notice--warn    { background: #FFF1D6; color: #8A5300; }
.uwc-bar { height: 4px; margin-left: 30px; }

.uwc-foot { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 0; }
.uwc-checkout {
  justify-content: space-between;
  height: 60px; padding: 0 22px;
  border-radius: 10px;
  font-size: 18px; font-weight: 500;
}
.uwc-checkout .uwc-subtotal {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.uwc-checkout .uwc-subtotal:empty { display: none; }

/* Wider screens: the round, filled close and the store logo, as on Uber Eats desktop. */
@media (min-width: 600px) {
  .uwc-head { padding: 16px 24px 20px; }
  .uwc-close { background: #F3F3F3; }
  .uwc-logo { display: block; width: 56px; height: 56px; }
  .uwc-store h2 { font-size: 26px; }
  .uwc-deliver { font-size: 15.5px; margin-top: 4px; }
  .uwc-lines { padding: 0 24px; }
  .uwc-more, .uwc-notice { padding-left: 24px; padding-right: 24px; }
  .uwc-foot { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 360px) {
  .uwc-store h2 { font-size: 26px; }
  .uwc-deliver { font-size: 15px; }
  .uwc-line { gap: 12px; }
  .uwc-thumb { width: 64px; height: 64px; }
  .uwc-name { font-size: 16px; }
  .uwc-opt { font-size: 14px; }
  .uwc-step { padding: 3px 4px; }
  .uwc-step button { width: 32px; height: 32px; }
  .uwc-qty { min-width: 20px; }
  .uwc-checkout { height: 56px; padding: 0 16px; font-size: 17px; }
}

/* Narrow phones: a smaller thumbnail leaves the name more room. */
@media (max-width: 400px) {
  .uwc-thumb { width: 64px; height: 64px; }
  .uwc-line { gap: 12px; padding: 16px 0; }
  .uwc-name { font-size: 16px; }
  .uwc-opt { font-size: 14px; }
  .uwc-price { margin-top: 4px; font-size: 15px; }
  .uwc-step { padding: 3px 4px; }
  .uwc-step button { width: 32px; height: 32px; }
  .uwc-step button svg { width: 16px; height: 16px; }
  .uwc-qty { min-width: 20px; font-size: 15px; }
  .uwc-notice { padding: 12px 16px; font-size: 14px; }
  .uwc-notice small { font-size: 12px; }
  .uwc-bar { margin-left: 30px; }
}
/* Short screens: the header and footer give their height back to the lines. */
@media (max-height: 640px) and (max-width: 599px) {
  .uwc-head { padding: 6px 16px 10px; }
  .uwc-bar-top { margin-bottom: 4px; }
  .uwc-store h2 { font-size: 24px; }
  .uwc-deliver { margin-top: 4px; font-size: 14.5px; }
  .uwc-meta { margin-top: 2px; font-size: 13px; }
  .uwc-line { padding: 12px 0; }
  .uwc-notice { padding: 10px 16px; gap: 6px; }
  .uwc-foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .uwc-checkout { height: 52px; font-size: 16.5px; }
}
