/* ============================================================
   MANE — editor UI (stripped from exports)
   ============================================================ */

.ec-fab {
  position: fixed;
  right: 1.4rem; bottom: 1.15rem;
  z-index: 500;
  width: 50px; height: 50px;
  border-radius: 2px;
  border: 1px solid var(--ink, #16130f);
  background: var(--ink, #16130f);
  color: #f4f1ec;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(22, 19, 15, .55);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.ec-fab:hover { transform: translateY(-2px) rotate(-8deg); background: var(--accent, #b76e79); border-color: var(--accent, #b76e79); }

.ec-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 490;
  width: min(330px, 88vw);
  background: #ffffff;
  border-left: 1px solid #e6e2db;
  box-shadow: -18px 0 44px -26px rgba(22, 19, 15, .4);
  padding: 1.7rem 1.4rem 5.5rem;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform .35s ease;
  font-family: "Jost", sans-serif;
  font-size: .9rem;
  color: #16130f;
}
.ec-panel.open { transform: none; }

.ec-head {
  font-size: .9rem;
  letter-spacing: .08em;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e6e2db;
}
.ec-head strong { font-family: "Prata", serif; font-weight: 400; letter-spacing: .3em; }

.ec-hint { color: #5c564d; line-height: 1.6; margin-bottom: 1.4rem; }
.ec-hint b { font-weight: 500; color: #16130f; }

.ec-sec { margin-bottom: 1.6rem; }
.ec-lab {
  display: block;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-ink, #a05560);
  margin-bottom: .6rem;
}
.ec-note { font-size: .78rem; color: #a09a90; margin-top: .55rem; line-height: 1.5; }

.ec-accent-row { display: flex; align-items: center; gap: .8rem; }
.ec-accent-row input[type="color"] {
  width: 46px; height: 38px;
  border: 1px solid #e6e2db;
  border-radius: 2px;
  background: none;
  padding: 2px;
  cursor: pointer;
}
.ec-swatches { display: flex; gap: .5rem; }
.ec-sw {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  outline: 1px solid #e6e2db;
  cursor: pointer;
  transition: transform .2s ease;
}
.ec-sw:hover { transform: scale(1.15); }

.ec-check {
  display: flex; align-items: center; gap: .55rem;
  font-size: .84rem;
  margin-bottom: .8rem;
  cursor: pointer;
}
.ec-btn {
  width: 100%;
  padding: .8rem 1rem;
  font-family: "Jost", sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: #16130f;
  color: #f4f1ec;
  border: 1px solid #16130f;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ec-btn:hover { background: var(--accent, #b76e79); border-color: var(--accent, #b76e79); }
.ec-btn--ghost { background: transparent; color: #5c564d; border-color: #e6e2db; }
.ec-btn--ghost:hover { background: #b3402e; border-color: #b3402e; color: #ffffff; }

/* -------- editing affordances on the page -------- */
body.ec-editing [contenteditable] {
  outline: 1px dashed color-mix(in srgb, var(--accent, #b76e79) 60%, transparent);
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
  transition: outline-color .2s ease, background .2s ease;
}
body.ec-editing [contenteditable]:hover {
  outline-color: var(--accent, #b76e79);
  background: color-mix(in srgb, var(--accent, #b76e79) 8%, transparent);
}
body.ec-editing [contenteditable]:focus {
  outline: 1.5px solid var(--accent, #b76e79);
  background: color-mix(in srgb, var(--accent, #b76e79) 10%, transparent);
}

body.ec-editing [data-ec-img] { cursor: copy; }
body.ec-editing [data-ec-img]:hover { box-shadow: 0 0 0 2.5px var(--accent, #b76e79); }

/* remove / add buttons on repeatable items */
.ec-rm {
  position: absolute;
  top: -.55rem; right: -.55rem;
  z-index: 6;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid #e6e2db;
  background: #ffffff;
  color: #b3402e;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(22, 19, 15, .3);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.ec-rm:hover { transform: scale(1.15); background: #b3402e; color: #ffffff; border-color: #b3402e; }
[data-ec-item] { position: relative; }
.row.ec-has-rm { padding-right: 1.5rem; }

.ec-add {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: .75rem 1rem;
  font-family: "Jost", sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--accent-ink, #a05560);
  background: color-mix(in srgb, var(--accent, #b76e79) 7%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--accent, #b76e79) 45%, transparent);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.ec-add:hover {
  background: color-mix(in srgb, var(--accent, #b76e79) 14%, transparent);
  border-color: var(--accent, #b76e79);
}

/* the dark bridal section needs light-friendly buttons */
.sec--dark .ec-add {
  color: #f4f1ec;
  background: rgba(244, 241, 236, .08);
  border-color: rgba(244, 241, 236, .4);
}

@media (max-width: 640px) {
  .ec-panel { padding-bottom: 7rem; }
  .ec-fab { right: .9rem; bottom: 4.6rem; }
}
