/* Facefood side account + Wishlist (Woo Smart Wishlist) + mini-cart — all from the right */

.facefood-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.facefood-wishlist-seed[hidden],
.facefood-account-seed[hidden] {
  display: none !important;
}

/* Keep cart + wishlist header icons on phones (custom header hides cart). */
@media screen and (max-width: 782px) {
  html body .ffc2026-header .ffc2026-cart,
  html body .ffc2026-header .ffc2026-wishlist,
  html body .ffc2026-header .facefood-header-wishlist,
  html body .ffc2026-header .facefood-header-account {
    display: flex !important;
  }
}

.facefood-header-account,
.ffc2026-header .facefood-header-account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  position: relative;
}

.facefood-header-account svg,
.ffc2026-header .facefood-header-account svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ffc2026-header .facefood-header-wishlist,
.ffc2026-header .facefood-header-wishlist.woosw-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  position: relative;
}

.ffc2026-header .facefood-header-wishlist > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: inherit;
  text-decoration: none !important;
}

.ffc2026-header .facefood-header-wishlist .woosw-link-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 21px;
  height: 21px;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.ffc2026-header .facefood-header-wishlist .woosw-link-inner::after {
  content: attr(data-count);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -12px;
  right: -14px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--ff-primary, #00AEEF);
  color: #fff;
  font-family: var(--ff-font, Poppins, system-ui, sans-serif);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.ffc2026-header .facefood-header-wishlist .woosw-link-inner[data-count="0"]::after {
  display: none;
}

.ffc2026-header .facefood-header-wishlist svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.facefood-drawer-open {
  overflow: hidden;
}

.facefood-drawer {
  position: fixed;
  inset: 0;
  z-index: 100050;
  font-family: var(--ff-font);
}

.facefood-drawer[hidden] {
  display: none !important;
}

.facefood-drawer.is-open {
  display: block !important;
}

.facefood-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.55);
  border: 0;
  cursor: pointer;
}

.facefood-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(400px, 90vw);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.28s ease;
}

.facefood-drawer.is-open .facefood-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.facefood-drawer--account .facefood-drawer__panel {
  background: #fff;
  padding: 0;
}

.facefood-drawer--account .facefood-drawer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: transparent;
  color: #21201f;
}

.facefood-drawer--account .facefood-drawer__close:hover,
.facefood-drawer--account .facefood-drawer__close:focus-visible {
  background: rgba(33, 32, 31, 0.08);
}

.facefood-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 18px;
  background: var(--ff-primary);
  color: #fff;
}

.facefood-drawer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.facefood-side-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
}

.facefood-drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.facefood-drawer__close:hover,
.facefood-drawer__close:focus-visible {
  background: rgba(255, 255, 255, 0.32);
  outline: none;
}

.facefood-mini-cart {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.facefood-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: var(--ff-surface);
}

.facefood-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 220px;
  padding: 24px 12px;
  text-align: center;
  color: var(--ff-muted);
}

.facefood-drawer__empty p {
  margin: 0;
  font-size: 1rem;
  color: var(--ff-ink);
}

.facefood-mini-cart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facefood-mini-cart__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: var(--ff-radius-card);
  border: 1px solid rgba(0, 174, 239, 0.12);
}

.facefood-mini-cart__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ff-surface);
}

.facefood-mini-cart__img,
.facefood-mini-cart__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.facefood-mini-cart__meta {
  min-width: 0;
}

.facefood-mini-cart__name {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.facefood-mini-cart__name a {
  color: var(--ff-ink);
  text-decoration: none;
}

.facefood-mini-cart__name a:hover {
  color: var(--ff-primary);
}

.facefood-mini-cart__extras {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--ff-muted);
}

.facefood-mini-cart__extras p,
.facefood-mini-cart__extras dl,
.facefood-mini-cart__extras dd {
  margin: 0;
}

.facefood-mini-cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.facefood-mini-cart__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.facefood-mini-cart__qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ff-ink);
  font-size: 1rem;
  cursor: pointer;
}

.facefood-mini-cart__qty-btn:hover,
.facefood-mini-cart__qty-btn:focus-visible {
  background: var(--ff-soft);
  outline: none;
}

.facefood-mini-cart__qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.facefood-mini-cart__price {
  font-weight: 700;
  color: var(--ff-primary);
  font-size: 0.9rem;
}

.facefood-mini-cart__remove {
  width: 28px;
  height: 28px;
  align-self: start;
  border: 0;
  border-radius: 50%;
  background: var(--ff-surface);
  color: var(--ff-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.facefood-mini-cart__remove:hover,
.facefood-mini-cart__remove:focus-visible {
  background: #fee2e2;
  color: #b91c1c;
  outline: none;
}

.facefood-drawer__foot {
  flex: 0 0 auto;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.facefood-mini-cart__totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--ff-ink);
}

.facefood-mini-cart__totals strong {
  color: var(--ff-primary);
  font-size: 1.05rem;
}

.facefood-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.facefood-drawer__actions .facefood-btn {
  width: 100%;
  padding: 12px 10px;
}

.facefood-btn--ghost-light {
  background: var(--ff-surface);
  color: var(--ff-ink);
  border: 1px solid rgba(0, 174, 239, 0.2);
}

.facefood-btn--ghost-light:hover {
  background: var(--ff-soft);
  color: var(--ff-ink);
}

.facefood-mini-cart.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

@media screen and (max-width: 575.98px) {
  .facefood-drawer__panel {
    width: min(100vw - 16px, 92vw);
  }
}

/* ---- Woo Smart Wishlist: force side “Wishlist 1” look ---- */
#woosw_wishlist.woosw-popup,
#woosw_manage.woosw-popup {
  font-family: var(--ff-font);
  background: rgba(13, 27, 42, 0.55) !important;
  z-index: 100060 !important;
}

#woosw_wishlist .woosw-popup-inner .woosw-popup-content,
#woosw_manage .woosw-popup-inner .woosw-popup-content {
  width: min(400px, 90vw) !important;
  max-width: min(400px, 90vw) !important;
  height: 100% !important;
  max-height: 100dvh !important;
  border-radius: 0;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
}

#woosw_wishlist.woosw-popup-right .woosw-popup-inner .woosw-popup-content,
#woosw_manage.woosw-popup-right .woosw-popup-inner .woosw-popup-content,
#woosw_wishlist.woosw-popup-left .woosw-popup-inner .woosw-popup-content,
#woosw_manage.woosw-popup-left .woosw-popup-inner .woosw-popup-content {
  right: 0 !important;
  top: 0 !important;
  left: auto !important;
}

@media screen and (max-width: 575.98px) {
  #woosw_wishlist .woosw-popup-inner .woosw-popup-content,
  #woosw_manage .woosw-popup-inner .woosw-popup-content {
    width: min(100vw - 16px, 92vw) !important;
    max-width: min(100vw - 16px, 92vw) !important;
  }
}

#woosw_wishlist .woosw-popup-content-top,
#woosw_manage .woosw-popup-content-top {
  height: auto !important;
  min-height: 56px;
  line-height: 1.3 !important;
  padding: 16px 52px 16px 18px !important;
  background: var(--ff-primary) !important;
  color: #fff !important;
  text-transform: none !important;
  font-family: var(--ff-font);
  font-size: 1.05rem;
}

#woosw_wishlist .woosw-popup-content-top a,
#woosw_wishlist .woosw-popup-content-top .woosw-empty,
#woosw_wishlist .woosw-popup-content-top .woosw-manage,
#woosw_wishlist .woosw-popup-content-top .woosw-count,
#woosw_manage .woosw-popup-content-top a,
#woosw_manage .woosw-popup-content-top .woosw-empty,
#woosw_manage .woosw-popup-content-top .woosw-manage {
  color: #fff !important;
}

#woosw_wishlist .woosw-popup-close,
#woosw_manage .woosw-popup-close {
  color: #fff !important;
}

#woosw_wishlist .woosw-popup-content-mid,
#woosw_manage .woosw-popup-content-mid {
  background: var(--ff-surface);
}

#woosw_wishlist .woosw-items .woosw-item .woosw-item-inner {
  background: #fff;
  border-radius: 12px;
  margin: 8px 12px;
  padding: 12px !important;
  border: 1px solid rgba(0, 174, 239, 0.12);
}

#woosw_wishlist .woosw-item--name,
#woosw_wishlist .woosw-item--name a {
  font-family: var(--ff-font);
  font-weight: 600;
  color: var(--ff-ink) !important;
}

#woosw_wishlist .woosw-item--price,
#woosw_wishlist .woosw-item--price .amount {
  color: var(--ff-primary) !important;
  font-weight: 700;
}

#woosw_wishlist .woosw-item--atc .button,
#woosw_wishlist .woosw-item--atc .add_to_cart_button,
#woosw_wishlist .woosw-item--atc a.button {
  background: var(--ff-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--ff-radius-btn) !important;
  font-family: var(--ff-font);
  font-weight: 700;
  text-transform: none !important;
}

#woosw_wishlist .woosw-item--atc .button:hover,
#woosw_wishlist .woosw-item--atc .add_to_cart_button:hover {
  background: var(--ff-primary-dark) !important;
}

#woosw_wishlist .woosw-popup-content-bot,
#woosw_manage .woosw-popup-content-bot {
  background: #fff !important;
  color: var(--ff-ink) !important;
  text-transform: none !important;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}

#woosw_wishlist .woosw-popup-content-bot a,
#woosw_wishlist .woosw-continue,
#woosw_manage .woosw-popup-content-bot a {
  color: var(--ff-primary) !important;
  font-weight: 700;
  text-transform: none !important;
}

#woosw_wishlist .woosw-no-result,
#woosw_wishlist .woosw-popup-content-mid .woosw-no-items {
  padding: 48px 20px;
  text-align: center;
  color: var(--ff-ink);
  font-family: var(--ff-font);
}

/* ---- Account / nav drawer (same right-side panel as cart) ---- */
.facefood-account-drawer {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  padding: 16px 32px calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.87);
  font-family: "Montserrat", var(--ff-font), system-ui, sans-serif;
  overflow: auto;
}

.facefood-account-drawer__profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 16px;
}

.facefood-account-drawer__identity {
  display: flex;
  align-items: center;
}

.facefood-account-drawer__avatar {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f3f3;
}

.facefood-account-drawer__avatar svg,
.facefood-account-drawer__avatar-img,
.facefood-account-drawer__avatar img {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.facefood-account-drawer__copy {
  margin: 0 0 0 16px;
  min-width: 0;
}

.facefood-account-drawer__kicker,
.facefood-account-drawer__title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.15px;
  line-height: 30px;
  color: #21201f;
}

.facefood-account-drawer__title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.facefood-account-drawer__login {
  margin: 24px 0 0;
  padding: 8px 25px;
  width: auto;
  min-width: 78px;
  height: 37px;
  border-radius: 10px;
  border: 1px solid #21201f;
  background: transparent;
  color: #21201f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.37px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.facefood-account-drawer__login:hover,
.facefood-account-drawer__login:focus-visible {
  background: #f15b25;
  border-color: #f15b25;
  color: #fff;
  outline: none;
}

.facefood-account-drawer__logout {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #21201f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 30px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.facefood-account-drawer__logout:hover,
.facefood-account-drawer__logout:focus-visible {
  color: #f15b25;
  outline: none;
}

.facefood-account-drawer__rule {
  margin: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: #808080;
  flex-shrink: 0;
}

.facefood-account-drawer__row {
  margin: 24px 0;
  display: flex;
  align-items: center;
  color: #21201f;
  text-decoration: none !important;
  cursor: pointer;
}

.facefood-account-drawer__row svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0 16px 0 0;
  fill: none;
  stroke: #21201f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facefood-account-drawer__row span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 30px;
}

.facefood-account-drawer__row:hover span,
.facefood-account-drawer__row:focus-visible span {
  color: #f15b25;
}

.facefood-account-drawer__links {
  display: flex;
  flex-direction: column;
  margin: 16px 0;
}

.facefood-account-drawer__links a {
  margin: 8px 0;
  color: #21201f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15px;
  line-height: 30px;
  text-decoration: none !important;
  cursor: pointer;
}

.facefood-account-drawer__links a:hover,
.facefood-account-drawer__links a:focus-visible {
  color: #f15b25;
  outline: none;
}

@media (hover: none) {
  .facefood-account-drawer__login:hover {
    background-color: transparent;
    border-color: #21201f;
    color: #21201f;
  }

  .facefood-account-drawer__login:active {
    background: #f15b25;
    border-color: #f15b25;
    color: #fff;
  }
}

@media screen and (max-width: 899px) {
  .facefood-account-drawer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .facefood-account-drawer__kicker,
  .facefood-account-drawer__title,
  .facefood-account-drawer__login,
  .facefood-account-drawer__logout,
  .facefood-account-drawer__row span,
  .facefood-account-drawer__links a {
    font-size: 12px;
    line-height: 26px;
  }
}

@media screen and (max-width: 575.98px) {
  .facefood-account-drawer {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .facefood-account-drawer__title {
    max-width: 58vw;
  }
}
