/* OneDFCCI Avatar Editor - isolated styles */

.onedfcci-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
}

.onedfcci-modal .modal-content {
  background: #fff;
  border-radius: 8px;
  width: 92%;
  max-width: 520px;
  padding: 20px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.onedfcci-avatar-editor-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.onedfcci-avatar-editor {
  display: none;
}

.onedfcci-avatar-editor .editor-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
}

canvas#onedfcci-avatar-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.onedfcci-avatar-editor .editor-guide-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 1200px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.9);
  outline: 1px dashed rgba(255,255,255,0.6);
}

.onedfcci-avatar-editor .editor-controls {
  display: grid;
  gap: 10px;
}

.onedfcci-avatar-editor .control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onedfcci-avatar-editor .control-row.buttons {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.onedfcci-avatar-editor .editor-btn {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.onedfcci-avatar-editor .editor-btn:hover {
  background-color: #f5f5f5;
}

@media (max-width: 480px) {
  .onedfcci-avatar-editor .editor-stage { max-width: 300px; }
}