/* ==========================================================================
   DR. KULTHE 3-LAYER VISUAL BUILDER & GUTENBERG BLOCK EDITOR STYLES
   ========================================================================== */
.editor-styles-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #343C38 !important;
  background-color: #FAFAF7 !important;
}
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #173D30 !important;
}

/* Admin Bar Button Highlight */
#wpadminbar #wp-admin-bar-kulthe-visual-editor > .ab-item {
  background: #287A57 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
#wpadminbar #wp-admin-bar-kulthe-visual-editor:hover > .ab-item {
  background: #1E5C42 !important;
  color: #FFFFFF !important;
}

/* Front-End Live Visual Builder Floating Dock & Overlays */
.kp-ve-dock {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #173D30;
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid #287A57;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
}
.kp-ve-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.kp-ve-dock-btn-primary {
  background: #287A57;
  color: #FFFFFF;
}
.kp-ve-dock-btn-primary:hover {
  background: #3EA357;
  color: #FFFFFF;
}
.kp-ve-dock-btn-save {
  background: #3EA357;
  color: #FFFFFF;
}
.kp-ve-dock-btn-save:hover {
  background: #287A57;
}
.kp-ve-dock-btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}
.kp-ve-dock-btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Editable Text Highlights in Visual Builder Mode */
body.kp-visual-editor-active [data-ve-key] {
  outline: 1.5px dashed rgba(40, 122, 87, 0.55);
  outline-offset: 3px;
  cursor: text;
  transition: outline 0.15s ease, background-color 0.15s ease;
}
body.kp-visual-editor-active [data-ve-key]:hover,
body.kp-visual-editor-active [data-ve-key]:focus {
  outline: 2px solid #287A57 !important;
  background-color: rgba(232, 240, 233, 0.35);
}

/* Image Wrapper & Floating "📷 Change Image" Button in Visual Builder Mode */
.kp-ve-img-wrap {
  position: relative;
}
.kp-ve-change-img-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 60;
  background: rgba(23, 61, 48, 0.94);
  color: #FFFFFF !important;
  border: 2px solid #3EA357;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.kp-ve-change-img-btn:hover {
  background: #287A57;
  transform: scale(1.04);
}
body.kp-visual-editor-active .kp-ve-change-img-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Toast Notification */
.kp-ve-toast {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 100000;
  background: #173D30;
  color: #FFFFFF;
  border-left: 5px solid #3EA357;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  display: none;
}
.kp-ve-toast.show {
  display: block;
}
