/* ============================================================
   TWT VISUAL EDITOR — styling for the in-browser editing tool.
   Loaded on every page; inert until the "Edit Site" button is
   clicked, so it never affects the normal visitor experience.
   ============================================================ */
#twtEditorToggle{
  position:fixed;bottom:1.8rem;left:1.8rem;z-index:99998;
  width:52px;height:52px;border-radius:50%;
  background:#111;border:1px solid rgba(245,211,94,.5);
  color:#F5D35E;font-size:1.3rem;cursor:pointer!important;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.5);
  font-family:sans-serif;
}
#twtEditorToggle:hover{background:#F5D35E;color:#111}

body.twt-editing{cursor:default!important}
body.twt-editing *{cursor:default!important}
body.twt-editing .cursor{display:none!important}

.twt-editor-panel *{box-sizing:border-box}
.twt-editor-panel{
  position:fixed;top:0;right:0;bottom:0;width:320px;max-width:88vw;
  background:#0c0c0e;border-left:1px solid rgba(255,255,255,.12);
  z-index:99997;overflow-y:auto;
  font-family:-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#eee;font-size:13px;line-height:1.5;
  transform:translateX(100%);transition:transform .25s ease;
}
.twt-editor-panel.open{transform:translateX(0)}
.twt-editor-panel h3{
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:#F5D35E;margin:0;padding:1rem 1.1rem .6rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.twt-ep-section{padding:1rem 1.1rem;border-bottom:1px solid rgba(255,255,255,.08)}
.twt-ep-row{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.8rem}
.twt-ep-row:last-child{margin-bottom:0}
.twt-ep-row label{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#999}
.twt-ep-row-inline{display:flex;gap:.5rem;align-items:center}
.twt-ep-row-inline label{flex:1;margin:0}
.twt-editor-panel select,
.twt-editor-panel input[type=number],
.twt-editor-panel input[type=text]{
  width:100%;background:#1a1a1d;border:1px solid rgba(255,255,255,.15);
  color:#fff;font-size:13px;padding:.45rem .55rem;border-radius:3px;
  cursor:text!important;font-family:inherit;
}
.twt-editor-panel select{cursor:pointer!important}
.twt-editor-panel input[type=color]{
  width:36px;height:28px;padding:0;border:1px solid rgba(255,255,255,.15);
  border-radius:3px;background:none;cursor:pointer!important;
}
.twt-ep-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  background:#1a1a1d;border:1px solid rgba(255,255,255,.15);color:#eee;
  font-size:12px;padding:.55rem .7rem;border-radius:3px;cursor:pointer!important;
  width:100%;transition:background .15s,border-color .15s;
}
.twt-ep-btn:hover{border-color:#F5D35E;color:#F5D35E}
.twt-ep-btn.danger:hover{border-color:#e5484d;color:#e5484d}
.twt-ep-btn.primary{background:#F5D35E;color:#111;border-color:#F5D35E;font-weight:600}
.twt-ep-btn.primary:hover{background:#FFE788}
.twt-ep-btngrid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.twt-ep-hint{font-size:11.5px;color:#888;line-height:1.6}
.twt-ep-tag{
  display:inline-block;font-family:monospace;font-size:11px;color:#F5D35E;
  background:rgba(245,211,94,.1);border:1px solid rgba(245,211,94,.3);
  padding:.15rem .4rem;border-radius:3px;margin-bottom:.3rem;
}
.twt-ep-empty{padding:1.4rem 1.1rem;color:#888;font-size:12.5px;line-height:1.7}
.twt-ep-closebtn{
  position:absolute;top:.8rem;right:.9rem;background:none;border:none;
  color:#888;font-size:1.1rem;cursor:pointer!important;line-height:1;
}
.twt-ep-closebtn:hover{color:#fff}
.twt-ep-hiddenlist{display:flex;flex-direction:column;gap:.4rem}
.twt-ep-hiddenitem{
  display:flex;justify-content:space-between;align-items:center;gap:.5rem;
  font-size:11.5px;color:#aaa;
}
.twt-ep-hiddenitem button{
  background:none;border:1px solid rgba(255,255,255,.2);color:#F5D35E;
  font-size:10.5px;padding:.2rem .5rem;border-radius:3px;cursor:pointer!important;
}

/* hover / selection outlines on the page itself */
.twt-hover-outline{outline:1.5px dashed rgba(245,211,94,.7)!important;outline-offset:2px}
.twt-selected-outline{outline:2px solid #F5D35E!important;outline-offset:2px}
.twt-dragging{opacity:.35!important}
.twt-drop-indicator{
  position:absolute;left:0;right:0;height:3px;background:#F5D35E;
  box-shadow:0 0 8px rgba(245,211,94,.8);z-index:99996;pointer-events:none;
  display:none;
}
[contenteditable="true"].twt-editing-text{
  outline:2px dashed #FFE788!important;outline-offset:2px;
  background:rgba(245,211,94,.06);
}

#twtEditorToast{
  position:fixed;bottom:1.8rem;left:50%;transform:translateX(-50%) translateY(0);
  background:#111;border:1px solid rgba(245,211,94,.5);color:#F5D35E;
  font-family:-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:12.5px;
  padding:.7rem 1.1rem;border-radius:6px;z-index:99999;opacity:0;
  pointer-events:none;transition:opacity .25s;
}
#twtEditorToast.show{opacity:1}
