
/* PolyScript Preview — Build button and iframe styling */

/* Make room for the build button */
code.language-poly {
  margin-top: 30px;
}

/* Button group on code blocks */
.ps-btn-group {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
  z-index: 1;
}

.ps-preview-btn, .ps-edit-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

.ps-preview-btn {
  background: #4ecdc4;
  color: #1a1a2e;
}
.ps-preview-btn:hover {
  background: #45b7aa;
}

.ps-edit-btn {
  background: #e2e8f0;
  color: #4a5568;
}
.ps-edit-btn:hover {
  background: #cbd5e0;
  color: #1a1a2e;
}

/* Preview container */
.ps-preview-container {
  position: relative;
  margin: 8px 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f7fafc;
}

.ps-preview-iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

.ps-preview-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  transition: color 0.2s;
}

.ps-preview-close:hover {
  color: #e53e3e;
}

