/* FoodMart — cart / wishlist toast (bottom) */

#hk-toast-stack {
  position: fixed;
  z-index: 10050;
  left: 50%;
  right: auto;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  pointer-events: none;
  font-family: var(--body-font, "Open Sans", system-ui, sans-serif);
}

#hk-toast-stack .hk-toast {
  pointer-events: auto;
  width: 100%;
}

.hk-toast {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(15, 17, 21, 0.08);
  background: #fff;
  box-shadow:
    0 16px 48px rgba(15, 17, 21, 0.14),
    0 2px 8px rgba(15, 17, 21, 0.06);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.hk-toast::before {
  background: var(--hk-bc-green, #99c229);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hk-toast--wishlist::before {
  background: #e7635b;
}

.hk-toast--error::before {
  background: #d72626;
}

.hk-toast--info::before {
  background: #3d5b4f;
}

.hk-toast.hk-toast--show {
  opacity: 1;
  transform: translateY(0);
}

.hk-toast.hk-toast--out {
  opacity: 0;
  transform: translateY(10px);
}

.hk-toast__inner {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
  padding: 1rem 2.75rem 1rem 1rem;
  position: relative;
}

.hk-toast__icon {
  align-items: center;
  background: rgba(153, 194, 41, 0.14);
  border-radius: 50%;
  color: var(--hk-bc-green, #99c229);
  display: flex;
  flex-shrink: 0;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.hk-toast__icon .fa {
  font-size: 1.125rem;
  line-height: 1;
}

.hk-toast__icon svg {
  display: block;
  height: 1.25rem;
  width: 1.25rem;
}

.hk-toast--wishlist .hk-toast__icon {
  background: rgba(231, 99, 91, 0.12);
  color: #d64545;
}

.hk-toast__body {
  color: var(--dark-color, #222);
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  min-width: 0;
  padding-top: 0.15rem;
}

.hk-toast__body a {
  color: var(--hk-bc-green-hover, #7da622);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hk-toast__body a:hover,
.hk-toast__body a:focus-visible {
  color: var(--dark-color, #222);
}

.hk-toast--wishlist .hk-toast__body a {
  color: #c0392b;
}

.hk-toast__close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: var(--light-dark-color, #727272);
  cursor: pointer;
  display: flex;
  font-size: 1.25rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  width: 2rem;
}

.hk-toast__close:hover,
.hk-toast__close:focus-visible {
  background: rgba(15, 17, 21, 0.06);
  color: var(--dark-color, #222);
}

@media (min-width: 768px) {
  #hk-toast-stack {
    left: auto;
    right: max(20px, env(safe-area-inset-right));
    transform: none;
    align-items: flex-end;
  }
}
