.single-product {
  --dfe-accent: #aace3a;
  --dfe-accent-strong: #9bba35;
  --dfe-accent-soft: #eef6d7;
  --dfe-surface: #ffffff;
  --dfe-border: #d9e7b0;
}

.single-product .dfe-btn {
  border-radius: 999px;
  border: 1px solid var(--dfe-accent);
  background: var(--dfe-surface);
  color: #4f6722;
  font-size: 11px;
  line-height: 1.1;
  padding: 6px 11px;
  box-shadow: 0 3px 10px rgba(155, 186, 53, 0.2);
  transition: all 0.2s ease;
}

.single-product .dfe-btn:hover,
.single-product .dfe-btn:focus {
  background: var(--dfe-accent-soft);
  color: #3f5614;
  border-color: var(--dfe-accent-strong);
}

.single-product .dfe-btn-primary {
  background: var(--dfe-accent);
  color: #fff;
}

.single-product .dfe-btn-primary:hover,
.single-product .dfe-btn-primary:focus {
  background: var(--dfe-accent-strong);
  color: #fff;
}

.single-product .dfe-open-editor-btn {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
}

body.dfe-edit-modal-open {
  overflow: hidden;
}

.dfe-edit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dfe-edit-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dfe-edit-modal {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dfe-edit-overlay.is-open .dfe-edit-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dfe-edit-modal-header {
  background: linear-gradient(135deg, #aace3a 0%, #9bba35 100%);
  color: #fff;
  padding: 18px 24px;
  position: relative;
}

.dfe-edit-modal-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.dfe-edit-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dfe-edit-modal-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.34);
}

.dfe-edit-modal-body {
  padding: 24px;
}

.dfe-edit-modal-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.dfe-edit-modal-input + .dfe-edit-modal-label {
  margin-top: 12px;
}

.dfe-edit-modal-input {
  width: 100%;
  max-width: 100%;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #2c3e50;
  box-sizing: border-box;
}

.dfe-edit-modal-input:focus {
  outline: none;
  border-color: #aace3a;
  box-shadow: 0 0 0 3px rgba(170, 206, 58, 0.14);
}

.dfe-edit-modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 767px) {
  .single-product .dfe-open-editor-btn {
    width: 100%;
    margin-top: 8px;
  }

  .dfe-edit-modal {
    max-width: 96vw;
  }

  .dfe-edit-modal-header {
    padding: 16px 20px;
  }

  .dfe-edit-modal-title {
    font-size: 18px;
    padding-right: 36px;
  }

  .dfe-edit-modal-body {
    padding: 18px;
  }
}
