.cs-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}

.cs-popup-inner {
  position: relative;
  width: 90vw;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-popup-close {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: background 0.15s ease;
}

.cs-popup-close:hover {
  background: #D4AE37;
}

.cs-popup-close:active {
  background: #D4AE37;
}

.cs-popup-image {
  display: block;
  max-width: 60%;
  height: auto;
  border-radius: 6px;
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) {
  .cs-popup-inner {
    width: 70vw;
    max-width: 560px;
  }

  .cs-popup-close {
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}

/* Desktop: 1024px ke atas */
@media (min-width: 1024px) {
  .cs-popup-inner {
    width: 50vw;
    max-width: 640px;
  }

  .cs-popup-close {
    top: -16px;
    right: -16px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
}
