/* Cart Popup Styles */
.cart-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

.cart-popup-overlay.show {
  display: flex;
}

.cart-popup {
  background: var(--pls-body-background);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: slideInRight 0.3s ease-out;
  margin-top: 60px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cart-popup-content {
  display: flex;
  gap: 10px;
  border-radius: 20px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
      padding-right: 5px;
}

.cart-popup-image {
  flex-shrink: 0;
  width: 50px;
}

.cart-popup-image img {
  width: 100%;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-popup-info {
  flex: 1;
}

.cart-popup-info h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.popup-success-message {
  color: #000;
  font-weight: 500;
  text-align: center;
  margin: 0;
  font-size: 12px;
}

.popup-price {
  margin: 0 0 20px 0;
  font-weight: 600;
  color: #333;
}

.cart-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popup-order-button {
font-size: 12px !important;
    padding: 4px 12px !important; 
    border-radius: 7px !important;
}

.btn-checkout,
.btn-continue {
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 12px;
  transition: all 0.3s ease;
}

.btn-checkout {
  background: #007cba;
  color: white;
}

.btn-checkout:hover {
  background: #005a87;
  color: white;
}

.btn-continue {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.btn-continue:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-popup-overlay {
    padding: 15px;
    align-items: center;
    justify-content: center;
  }

  .cart-popup {
    max-width: 350px;
    margin-top: 0;
  }

  .cart-popup-image {
    width: 100px;
  }

  .cart-popup-image img {
    height: 100px;
  }
}

/* Для тем з темним фоном */
.cart-popup.dark-theme {
  background: #2c2c2c;
  color: white;
}

.cart-popup.dark-theme h3,
.cart-popup.dark-theme .popup-price {
  color: white;
}
