.popup-dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.popup-dialog::backdrop {
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-inner {
    background: #fff;
    padding: 1em;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    min-height: 100px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  z-index: 10001;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-info {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.popup-trigger {
  cursor: pointer;
  border: none;
  padding: 10px 20px;
  background: #007cba;
  color: white;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.popup-trigger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Editor-specific styles */
.wp-block-popup-simple {
  border: 2px dashed #ccc;
  padding: 20px;
  margin: 10px 0;
  background: #f8f9fa;
  border-radius: 4px;
  min-height: 120px;
  cursor: pointer;
  position: relative;
}

.wp-block-popup-simple:hover {
  border-color: #007cba;
  background: #f0f8ff;
}

.wp-block-popup-simple:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iNCIgZmlsbD0iIzAwN2NiYSIvPgo8cGF0aCBkPSJNNCA4TDggMTJsNCA0IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K') no-repeat center;
  opacity: 0.7;
}

.popup-trigger-hidden {
  color: #999;
  font-style: italic;
  padding: 8px;
  background: #f0f0f0;
  border-radius: 3px;
  display: inline-block;
}
