/* Bazarestan v1.0.71: configurable fixed UI and mature add-to-cart notification. */

/* Independent visibility controls. The route classes are maintained by v1071 JS. */
html[data-bz-product-sticky="off"].bz-ux-route-product body .bz-sticky-action-bar,
html[data-bz-other-sticky="off"].bz-ux-route-other body .bz-sticky-action-bar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-bz-bottom-nav="off"] body .bottom-navigation,
html[data-bz-bottom-nav="off"] body .mobile-bottom-navigation {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Retire the older toast/fly animation only when the refined notification is ready. */
html.bz-v1071-toast-ready body .bz-v50-coupon-toast.is-cart-note,
html.bz-v1071-toast-ready body .bz-v50-fly-cart-img {
  display: none !important;
}
html.bz-v1071-toast-ready body .bz-v50-cart-pulse {
  animation: none !important;
}

.bz-cart-success-overlay {
  position: fixed;
  z-index: 2147483200;
  inset: 0;
  display: block;
  visibility: hidden;
  background: rgba(9, 14, 24, .34);
  -webkit-backdrop-filter: blur(4px) saturate(.9);
  backdrop-filter: blur(4px) saturate(.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .2s;
  cursor: default;
}
.bz-cart-success-overlay.is-active {
  visibility: visible;
  transition-delay: 0s;
}
.bz-cart-success-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
html[data-bz-toast-overlay="off"] .bz-cart-success-overlay {
  display: none !important;
}

.bz-cart-success-toast {
  --bz-toast-radius: 17px;
  direction: rtl;
  position: fixed;
  z-index: 2147483300;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  width: min(620px, calc(100vw - 28px));
  min-height: 56px;
  display: none;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--bz-toast-radius);
  background: rgba(255, 255, 255, .97);
  color: #1d2939;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  opacity: 0;
  transform: translate(-50%, -14px) scale(.985);
  transform-origin: top center;
  transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  box-sizing: border-box;
  font-family: var(--bz-theme-font, var(--bazarestan-theme-font, inherit));
}
.bz-cart-success-toast.is-active {
  display: grid;
}
.bz-cart-success-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.bz-cart-success-toast__close,
.bz-cart-success-toast__action {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  outline: none;
}

.bz-cart-success-toast__close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 11px;
  background: transparent;
  color: #667085;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.bz-cart-success-toast__close:hover {
  background: #f2f4f7;
  color: #344054;
}
.bz-cart-success-toast__close:active {
  transform: scale(.94);
}
.bz-cart-success-toast__close:focus-visible,
.bz-cart-success-toast__action:focus-visible {
  box-shadow: 0 0 0 3px rgba(52, 64, 84, .14);
}

.bz-cart-success-toast__message {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.15px;
}
.bz-cart-success-toast__message > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-cart-success-toast__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ecfdf3;
  color: #079455;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(7, 148, 85, .12);
}

.bz-cart-success-toast__action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 12px;
  background: #eef0f2;
  color: #344054;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.bz-cart-success-toast__action:hover {
  background: #e4e7ec;
  color: #1d2939;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
}
.bz-cart-success-toast__action:active {
  transform: translateY(1px);
  box-shadow: none;
}

.bz-cart-success-toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(18, 183, 106, .18), #12b76a);
  transform-origin: right center;
  animation: bz-v1071-toast-progress var(--bz-toast-duration, 2.6s) linear forwards;
}
.bz-cart-success-toast.is-paused .bz-cart-success-toast__progress {
  animation-play-state: paused;
}

html.dark .bz-cart-success-toast {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(28, 31, 38, .96);
  color: #f2f4f7;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .18);
}
html.dark .bz-cart-success-toast__close {
  color: #98a2b3;
}
html.dark .bz-cart-success-toast__close:hover {
  background: rgba(255, 255, 255, .07);
  color: #f2f4f7;
}
html.dark .bz-cart-success-toast__action {
  background: #3b414a;
  color: #f2f4f7;
}
html.dark .bz-cart-success-toast__action:hover {
  background: #4a515c;
}
html.dark .bz-cart-success-toast__check {
  background: rgba(18, 183, 106, .14);
  color: #6ce9a6;
  box-shadow: inset 0 0 0 1px rgba(108, 233, 166, .16);
}

@keyframes bz-v1071-toast-progress {
  from { transform: scaleX(1); opacity: .95; }
  to { transform: scaleX(0); opacity: .35; }
}

@media (max-width: 576px) {
  .bz-cart-success-toast {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100vw - 20px);
    min-height: 54px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 8px 7px 8px;
    border-radius: 15px;
  }
  .bz-cart-success-toast__close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 22px;
  }
  .bz-cart-success-toast__message {
    gap: 7px;
    font-size: 12.5px;
  }
  .bz-cart-success-toast__check {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .bz-cart-success-toast__action {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 11.5px;
  }
}

@media (max-width: 370px) {
  .bz-cart-success-toast {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 6px;
  }
  .bz-cart-success-toast__check {
    display: none;
  }
  .bz-cart-success-toast__action {
    padding-inline: 10px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bz-cart-success-overlay,
  .bz-cart-success-toast,
  .bz-cart-success-toast__close,
  .bz-cart-success-toast__action {
    transition: none !important;
  }
  .bz-cart-success-toast__progress {
    animation: none !important;
  }
}


/* Configurable toast placement. These rules intentionally come last so every
   viewport size uses the saved position consistently. */
html[data-bz-toast-position="top"] .bz-cart-success-toast {
  top: max(14px, env(safe-area-inset-top));
  bottom: auto;
  transform: translate(-50%, -14px) scale(.985);
  transform-origin: top center;
}
html[data-bz-toast-position="top"] .bz-cart-success-toast.is-visible {
  transform: translate(-50%, 0) scale(1);
}
html[data-bz-toast-position="center"] .bz-cart-success-toast {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, calc(-50% + 12px)) scale(.985);
  transform-origin: center center;
}
html[data-bz-toast-position="center"] .bz-cart-success-toast.is-visible {
  transform: translate(-50%, -50%) scale(1);
}
html[data-bz-toast-position="bottom"] .bz-cart-success-toast {
  top: auto;
  bottom: max(var(--bz-toast-bottom-offset, 14px), env(safe-area-inset-bottom));
  transform: translate(-50%, 14px) scale(.985);
  transform-origin: bottom center;
}
html[data-bz-toast-position="bottom"] .bz-cart-success-toast.is-visible {
  transform: translate(-50%, 0) scale(1);
}
@media (max-width: 576px) {
  html[data-bz-toast-position="top"] .bz-cart-success-toast {
    top: max(10px, env(safe-area-inset-top));
  }
  html[data-bz-toast-position="bottom"] .bz-cart-success-toast {
    bottom: max(var(--bz-toast-bottom-offset, 10px), env(safe-area-inset-bottom));
  }
}
