body.joy-cart-popup-open {
  overflow: hidden;
}

#joy-cart-popup {
  position: relative;
  z-index: 99999;
}

#joy-cart-popup .joy-cart-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

#joy-cart-popup .joy-cart-popup-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 16px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #edeae0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 14px 12px 0;
}

#joy-cart-popup .joy-cart-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #4b4b4b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

#joy-cart-popup .joy-cart-popup-header {
  text-align: center;
  padding: 0 10px;
}

#joy-cart-popup .joy-cart-popup-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 6px;
}

#joy-cart-popup .joy-cart-popup-check {
  width: 50px;
  height: 50px;
  min-width: 50px;
  line-height: 50px;
  border-radius: 50%;
  margin: 0;
  background: #a5b5a2;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

#joy-cart-popup .joy-cart-popup-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #2b2b2b;
}

#joy-cart-popup .joy-cart-popup-shipping {
  margin: 16px auto 0;
  max-width: 560px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
}

#joy-cart-popup .joy-cart-popup-shipping-text {
  font-size: 14px;
  line-height: 1.4;
  color: #2b2b2b;
}

#joy-cart-popup .joy-cart-popup-progress {
  height: 8px;
  border-radius: 999px;
  background: #d9ddd2;
  overflow: hidden;
  margin-top: 10px;
}

#joy-cart-popup .joy-cart-popup-progress span {
  display: block;
  height: 100%;
  background: #a5b5a2;
}

#joy-cart-popup .joy-cart-popup-products-section {
  margin-top: 18px;
  padding-bottom: 18px;
}

#joy-cart-popup .joy-cart-popup-products-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  color: #000;
  font-weight:700;
  text-align: center;
}

#joy-cart-popup .joy-cart-popup-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-left: -6px;
  margin-right: -6px;
}

#joy-cart-popup .joy-cart-popup-grid-item {
  width: 50%;
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 6px;
  padding-right: 6px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

#joy-cart-popup .joy-cart-popup-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

#joy-cart-popup .joy-cart-popup-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f7f5ef;
  padding: 8px;
}

#joy-cart-popup .joy-cart-popup-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#joy-cart-popup .joy-cart-popup-card-name {
  display: block;
  padding: 10px 10px 4px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  min-height: 48px;
  color: #2b2b2b;
}

#joy-cart-popup .joy-cart-popup-card-short-info {
  display: block;
  padding: 0 10px 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #5a5a5a;
  min-height: 36px;
}

#joy-cart-popup .joy-cart-popup-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 12px;
  margin-top: auto;
}

#joy-cart-popup .joy-cart-popup-price-new,
#joy-cart-popup .joy-cart-popup-price-normal {
  font-size: 16px;
  font-weight: 700;
  color: #2b2b2b;
}

#joy-cart-popup .joy-cart-popup-price-old {
  font-size: 12px;
  color: #8c8c8c;
  text-decoration: line-through;
}

#joy-cart-popup .joy-cart-popup-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 -12px;
  padding: 12px;
  background: rgba(237, 234, 224, 0.1);
  border-top: 1px solid rgba(127, 152, 139, 0.18);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.05);
}

#joy-cart-popup .joy-cart-popup-actions .btn {
  min-width: 190px;
  padding: 11px 18px;
  border-radius: 999px;
}

#joy-cart-popup .joy-cart-popup-continue.btn,
#joy-cart-popup .joy-cart-popup-continue.btn:hover,
#joy-cart-popup .joy-cart-popup-continue.btn:focus {
  background: #ffffff;
  color: #7f988b;
  border-color: #7f988b;
}

@media (min-width: 992px) {
  #joy-cart-popup .joy-cart-popup-modal {
    max-width: 780px;
    padding-left: 14px;
    padding-right: 14px;
  }

  #joy-cart-popup .joy-cart-popup-grid {
    margin-left: -8px;
    margin-right: -8px;
  }

  #joy-cart-popup .joy-cart-popup-grid-item {
    width: 33.3333%;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
  }

  #joy-cart-popup .joy-cart-popup-card-image {
    padding: 10px;
  }

  #joy-cart-popup .joy-cart-popup-card-short-info {
    font-size: 12px;
    min-height: 40px;
  }
}

@media (max-width: 767px) {
  #joy-cart-popup .joy-cart-popup-title-row {
    gap: 10px;
  }

  #joy-cart-popup .joy-cart-popup-modal {
    max-height: calc(90dvh - 16px);
  }

  #joy-cart-popup .joy-cart-popup-check {
    width: 44px;
    height: 44px;
    min-width: 44px;
    line-height: 44px;
    font-size: 22px;
  }

  #joy-cart-popup .joy-cart-popup-title {
    font-size: 22px;
  }

  #joy-cart-popup .joy-cart-popup-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #joy-cart-popup .joy-cart-popup-actions .btn {
    width: 100%;
    min-width: 0;
  }
}
