/* Eemaan Foundation visual inline editor — visible only to authenticated admins. */
#ef-inline-editor,
#ef-inline-editor * { box-sizing: border-box; }

.ef-inline-text { display: inline; }
.ef-editor-removed { display: none !important; }

body.ef-edit-mode { padding-bottom: 92px; }
body.ef-edit-mode a,
body.ef-edit-mode button,
body.ef-edit-mode form { cursor: default; }
body.ef-edit-mode .ef-inline-text,
body.ef-edit-mode img[data-ef-edit-key] {
  outline: 1px dashed rgba(184, 134, 11, .58);
  outline-offset: 3px;
  cursor: text;
  border-radius: 2px;
  transition: outline-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
body.ef-edit-mode img[data-ef-edit-key] { cursor: pointer; }
body.ef-edit-mode .ef-inline-text:hover,
body.ef-edit-mode img[data-ef-edit-key]:hover {
  outline: 2px solid #b8860b;
  box-shadow: 0 0 0 5px rgba(184, 134, 11, .12);
}
body.ef-edit-mode [data-ef-selected="1"] {
  outline: 3px solid #1f6f43 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 7px rgba(31, 111, 67, .16) !important;
}
body.ef-edit-mode .ef-inline-text:focus { min-width: .7em; }
body.ef-edit-mode .ef-inline-text[data-ef-empty="1"]::after {
  content: "Empty text — type here";
  color: #8a5b00;
  background: #fff6d8;
  border: 1px dashed #b8860b;
  padding: 2px 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
body.ef-edit-mode .ef-editor-removed {
  display: inline-block !important;
  opacity: .28;
  filter: grayscale(1);
  min-width: 70px;
  min-height: 48px;
}

.ef-custom-zone { display: block; width: 100%; }
.ef-custom-item {
  max-width: 80rem;
  margin: 1.25rem auto;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(184, 134, 11, .22);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 35px rgba(31,55,33,.08);
}
.ef-custom-item .ef-custom-text {
  display: block;
  color: #26352b;
  font-size: 1.05rem;
  line-height: 1.75;
  white-space: pre-wrap;
}
.ef-custom-item img {
  display: block;
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
}

#ef-inline-editor { position: fixed; inset: auto 0 0 0; z-index: 2147483000; pointer-events: none; font-family: Mulish, Arial, sans-serif; }
#ef-inline-editor .ef-launcher {
  pointer-events: auto;
  position: fixed;
  right: 22px;
  bottom: 22px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: #284d2d;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .01em;
  box-shadow: 0 14px 38px rgba(20,45,25,.32);
  cursor: pointer;
}
#ef-inline-editor .ef-launcher:hover { background: #1e3c23; transform: translateY(-1px); }
#ef-inline-editor .ef-toolbar {
  pointer-events: auto;
  display: none;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid rgba(184,134,11,.38);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 60px rgba(20,45,25,.28);
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
#ef-inline-editor.is-editing .ef-launcher { display: none; }
#ef-inline-editor.is-editing .ef-toolbar { display: flex; }
#ef-inline-editor .ef-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #284d2d;
  font-size: 14px;
  font-weight: 900;
  margin-right: 4px;
  white-space: nowrap;
}
#ef-inline-editor .ef-status {
  flex: 1 1 170px;
  min-width: 150px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f5f2e8;
  color: #4b584e;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ef-inline-editor .ef-btn {
  border: 1px solid #d7d3c5;
  border-radius: 9px;
  background: #fff;
  color: #26352b;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
#ef-inline-editor .ef-btn:hover:not(:disabled) { border-color: #b8860b; background: #fffaf0; }
#ef-inline-editor .ef-btn:disabled { opacity: .4; cursor: not-allowed; }
#ef-inline-editor .ef-btn-primary { background: #284d2d; border-color: #284d2d; color: #fff; }
#ef-inline-editor .ef-btn-primary:hover:not(:disabled) { background: #1e3c23; border-color: #1e3c23; }
#ef-inline-editor .ef-btn-danger { color: #9b1c1c; border-color: #e6bcbc; }
#ef-inline-editor .ef-btn-reset { color: #6b4b00; }
#ef-inline-editor .ef-separator { width: 1px; height: 28px; background: #e2ded2; margin: 0 2px; }
#ef-inline-editor .ef-message {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 94px;
  max-width: min(420px, calc(100% - 44px));
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: #284d2d;
  box-shadow: 0 12px 35px rgba(0,0,0,.22);
  font-size: 13px;
  font-weight: 800;
  pointer-events: auto;
}
#ef-inline-editor .ef-message.error { background: #9b1c1c; }
#ef-inline-editor .ef-message.show { display: block; }

@media (max-width: 780px) {
  body.ef-edit-mode { padding-bottom: 150px; }
  #ef-inline-editor .ef-toolbar { max-height: 145px; overflow-y: auto; border-radius: 13px; }
  #ef-inline-editor .ef-title { width: 100%; }
  #ef-inline-editor .ef-status { order: 20; flex-basis: 100%; }
  #ef-inline-editor .ef-separator { display: none; }
  #ef-inline-editor .ef-btn { padding: 9px 10px; }
}
