/* 샵 메인 팝업 레이어 (z-index: toast 100 / chatbot 90 사이) */

.dp-popup-root {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
}

.dp-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: auto;
}

.dp-popup {
  position: absolute;
  pointer-events: auto;
  max-width: 92vw;
  /* width 는 인라인(width_px, 기본 420) */
}

.dp-popup-panel {
  position: relative;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.dp-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-popup-close:hover {
  background: rgba(15, 23, 42, 0.85);
}

.dp-popup-media {
  display: block;
  line-height: 0;
}

.dp-popup-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
  background: #f8fafc;
}

.dp-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.dp-popup-hide-today {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.dp-popup-hide-today input {
  width: 14px;
  height: 14px;
  accent-color: #4f46e5;
}

.dp-popup-dismiss {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.dp-popup-dismiss:hover {
  color: #0f172a;
}

.dp-popup.is-hidden,
.dp-popup-root.is-empty {
  display: none;
}

@media (max-width: 640px) {
  .dp-popup {
    left: 50% !important;
    right: auto;
    transform: translateX(-50%);
    max-width: 92vw;
  }
}
