/* Lightweight frontend styles for the WooCommerce editor button and optional modal. */

.dpe-editor-section {
  margin: 15px 0;
  padding: 15px;
  border: 2px dashed #667eea;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
  text-align: center;
}

.dpe-editor-section__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

#dpe-open-editor.dpe-button {
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  padding: 12px 15px !important;
}

@media (max-width: 440px) {
  #dpe-open-editor.dpe-button {
    font-size: 0.875rem !important;
  }
}

.dpe-editor-section-fallback {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

@keyframes dpeModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dpeModalSlideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.dpe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: dpeModalFadeIn 0.3s ease-out;
}

.dpe-modal-content {
  width: 95vw;
  height: 95vh;
  background: #fff;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dpeModalSlideIn 0.3s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dpe-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.dpe-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.dpe-close-btn {
  background: #ff4444;
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dpe-close-btn:hover,
#dpe-close-modal:hover {
  background: #ff2222;
  transform: scale(1.1);
}

.dpe-modal-body {
  flex: 1;
  padding: 0;
}

#dpe-editor-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
