/* Eliza Curtis product designer — uses the site's palette (--ink, --gold, --beige) with fallbacks */
html.ecd-open { overflow: hidden; }
.ecd { position: fixed; inset: 0; z-index: 9999; background: rgba(38, 32, 26, .55); display: flex; align-items: center; justify-content: center;
  font-family: Figtree, system-ui, sans-serif; color: var(--ink, #26201A); }
.ecd-box { position: relative; background: #fffdf9; width: min(980px, 100%); max-height: 100%; height: min(940px, 100%); overflow: auto;
  border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; }
@media (max-width: 700px) { .ecd-box { border-radius: 0; height: 100%; } }
.ecd-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eadfcd;
  position: sticky; top: 0; background: #fffdf9; z-index: 2; font-size: 1.05rem; }
.ecd-head b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; }
.ecd-x { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 6px; }
.ecd-steps { display: flex; gap: 6px; padding: 10px 18px 0; }
.ecd-steps button { flex: 1; border: 1.5px solid #eadfcd; background: #fff; border-radius: 999px; padding: 9px; font: inherit; font-weight: 600; cursor: pointer; color: #7c6a55; }
.ecd-steps button.on { border-color: var(--gold, #A9834B); background: var(--gold, #A9834B); color: #fff; }
.ecd-pane { padding: 14px 18px 20px; }
.ecd-tools, .ecd-selrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ecd-btn, .ecd-selrow button, .ecd-nav button, .ecd-closeok { border: 1.5px solid #e2d4bd; background: #fff; border-radius: 999px; padding: 9px 14px;
  font: inherit; font-weight: 600; cursor: pointer; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.ecd-btn:hover, .ecd-selrow button:hover { border-color: var(--gold, #A9834B); }
.ecd-selrow button.on { background: var(--beige, #F1E8D9); border-color: var(--gold, #A9834B); }
.ecd-bg input { width: 28px; height: 22px; border: 0; padding: 0; background: none; }
.ecd-stage { background: repeating-conic-gradient(#f3ece0 0% 25%, #fbf7f0 0% 50%) 50% / 20px 20px; border-radius: 14px; padding: 18px 4px;
  display: flex; justify-content: center; }
.ecd-canvaswrap { position: relative; box-shadow: 0 4px 18px rgba(0,0,0,.18); overflow: hidden; background: #fff; touch-action: none; }
.ecd-guide { position: absolute; border: 1.5px dashed rgba(169, 131, 75, .75); pointer-events: none; }
.ecd-hint, .ecd-fine, .ecd-small { color: #7c6a55; font-size: .88rem; }
.ecd-sel { background: #fbf6ee; border: 1px solid #eadfcd; border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.ecd-textinput { flex: 1; min-width: 200px; padding: 10px 12px; border: 1.5px solid #e2d4bd; border-radius: 10px; font: inherit; }
.ecd-font { padding: 8px 10px; border-radius: 10px; border: 1.5px solid #e2d4bd; font: inherit; background: #fff; }
.ecd-sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #e2d4bd !important; padding: 0 !important; }
.ecd-color { width: 36px; height: 30px; border: 0; background: none; padding: 0; }
.ecd-del { color: #9b2c2c; }
.ecd-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ecd-primary { background: var(--ink, #26201A) !important; color: #fff !important; border-color: var(--ink, #26201A) !important; margin-left: auto; }
.ecd-primary:disabled { opacity: .6; }
.ecd-preview { margin-bottom: 14px; }
.ecd-flat { background: #f3ece0; border-radius: 14px; padding: 22px; display: flex; justify-content: center; }
.ecd-flat img { max-width: 100%; max-height: 46vh; box-shadow: 0 6px 22px rgba(0,0,0,.2); background: #fff; }
.ecd-mock { position: relative; max-width: 640px; margin: 0 auto; } .ecd-mock img { width: 100%; display: block; border-radius: 12px; }
.ecd-mock .ecd-mockart { position: absolute; object-fit: cover; border-radius: 4px; opacity: .97; }
.ecd-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 10px; flex: 1; min-width: 180px; }
.ecd-form input, .ecd-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid #e2d4bd; border-radius: 10px; background: #fff; }
.ecd-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ecd-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.ecd-done { text-align: center; padding: 30px 10px; } .ecd-done h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; margin: 0 0 8px; }
.ecd-loading { position: absolute; inset: 120px 0 auto; text-align: center; color: #7c6a55; }
.ecd-personalize { display: inline-block; margin-top: 10px; border: 1.5px solid var(--gold, #A9834B); background: #fff; color: var(--ink, #26201A);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.ecd-personalize:hover { background: var(--gold, #A9834B); color: #fff; }
