* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  overflow-x: hidden;
}

/* Backdrop */
.custompopup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.custompopup-overlay.active {
  display: flex;
}

/* Popup Container */
.custompopup-container {
  background: linear-gradient(to bottom right, #fff7ed, #fffbea, #fff9e6);
  border-radius: 24px;
  max-width: 750px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: custompopup-scaleIn 0.3s ease;
}

@keyframes custompopup-scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hide scrollbar */
.custompopup-container::-webkit-scrollbar {
  display: none;
}
.custompopup-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Close Button */
.custompopup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.custompopup-close:hover {
  transform: scale(1.1);
}

.custompopup-grid {
  display: flex;
  flex-direction: column;
}

.custompopup-image {
  position: relative;
  height: 240px;
  flex-shrink: 0;
}

.custompopup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.custompopup-content {
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.custompopup-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.custompopup-content p {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 10px;
}

.custompopup-discount-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

.custompopup-discount-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  font-size: 15px;
}

.custompopup-discount-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custompopup-discount-icon {
  font-size: 22px;
}

.custompopup-discount-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.custompopup-cta {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.custompopup-cta button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(to right, #f97316, #f59e0b);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custompopup-cta button:hover {
  transform: scale(1.02);
  background: linear-gradient(to right, #ea580c, #d97706);
}

.custompopup-cta p {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

@media (min-width: 992px) {
  .custompopup-content {
    padding: 24px;
  }
  .custompopup-grid {
    flex-direction: row;
  }
  .custompopup-content p {
    margin-bottom: 15px;
  }

  .custompopup-discount-list {
    margin-bottom: 15px;
  }

  .custompopup-image {
    height: auto;
    border-top-right-radius: 0;
    border-bottom-left-radius: 24px;
  }

  .custompopup-image img {
    border-radius: 0;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
  }

  .custompopup-image,
  .custompopup-content {
    width: 50%;
  }
}
