/* FreshDesign add-to-cart toast — match live www.freshdesign.ee #blockcart-modal toast
   (320px, image + name + price + qty, no CTA buttons). SVG icons (no Material Icons). */

#blockcart-modal,
.blockcart-modal,
.hl-blockcart-modal,
.modal-backdrop:has(+ #blockcart-modal),
body.modal-open:has(#blockcart-modal) .modal-backdrop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

html:has(#blockcart-modal.show),
body:has(#blockcart-modal.show),
body.modal-open:has(#blockcart-modal),
html.modal-open:has(#blockcart-modal) {
  overflow: auto !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

.fd-cart-toast {
  position: fixed;
  top: 148px;
  right: 20px;
  z-index: 2147483000;
  width: 320px;
  max-width: 90vw;
  pointer-events: none;
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
}

.fd-cart-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: none;
}

.fd-cart-toast__inner {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ebebeb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  pointer-events: auto;
}

.fd-cart-toast__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 15px;
  border-bottom: 1px solid #f5f5f5;
  background: #fff;
}

.fd-cart-toast__check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #28a745;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fd-cart-toast__check svg,
.fd-cart-toast__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.fd-cart-toast__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #28a745;
  text-align: left;
}

.fd-cart-toast__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  border: 0;
  background: transparent;
  color: #414141;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 0;
  line-height: 1;
}

.fd-cart-toast__close:hover {
  background: #f5f5f5;
}

.fd-cart-toast__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.fd-cart-toast__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #fff;
}

.fd-cart-toast__thumb-wrap {
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  border-radius: 4px;
  overflow: hidden;
  background: #f7f8fa;
}

.fd-cart-toast__thumb-wrap[hidden] {
  display: none !important;
}

.fd-cart-toast__thumb {
  display: block;
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.fd-cart-toast__meta {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 2px;
}

.fd-cart-toast__name {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #00778e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fd-cart-toast__name[hidden] {
  display: none !important;
}

.fd-cart-toast__price {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #232323;
}

.fd-cart-toast__price[hidden] {
  display: none !important;
}

.fd-cart-toast__qty {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: #414141;
}

.fd-cart-toast__qty[hidden] {
  display: none !important;
}

.fd-cart-toast__qty strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  .fd-cart-toast {
    top: 80px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
  }

  .fd-cart-toast__header {
    padding: 8px 12px;
  }

  .fd-cart-toast__title {
    font-size: 12px;
  }

  .fd-cart-toast__check,
  .fd-cart-toast__check svg {
    width: 16px;
    height: 16px;
  }

  .fd-cart-toast__body {
    padding: 10px;
    align-items: center;
    gap: 10px;
  }

  .fd-cart-toast__thumb-wrap {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
  }

  .fd-cart-toast__thumb {
    width: 60px;
    height: 60px;
  }

  .fd-cart-toast__name {
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .fd-cart-toast__price {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .fd-cart-toast__qty {
    font-size: 12px;
  }
}
