/* Frame Studio — κοινό στυλ (πρωτότυπο + WordPress). Όλα μέσα στο .fs-root ώστε να μη
   συγκρούονται με το θέμα του site· τα κουμπιά/πεδία μηδενίζονται γιατί τα θέματα τα στυλάρουν. */
.fs-root {
  --fs-bg: #faf9f6;
  --fs-surface: #ffffff;
  --fs-line: #e6e2da;
  --fs-line-strong: #cfc9bf;
  --fs-text: #1d1b19;
  --fs-muted: #6f6a63;
  --fs-gold: #a8854f;
  --fs-radius: 10px;
  --fs-serif: Georgia, 'Times New Roman', serif;
  --fs-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-sticky-top: 16px; /* αν το θέμα έχει σταθερό header, αύξησέ το */

  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  color: var(--fs-text);
  font-family: var(--fs-sans);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}
.fs-root *, .fs-root *::before, .fs-root *::after { box-sizing: border-box; }
.fs-root button {
  appearance: none; -webkit-appearance: none; margin: 0; font: inherit; color: inherit; line-height: 1.3;
  text-transform: none; letter-spacing: normal; text-shadow: none; box-shadow: none; min-height: 0; min-width: 0; width: auto; height: auto;
}
.fs-root input, .fs-root textarea { font: inherit; color: var(--fs-text); margin: 0; box-shadow: none; }
.fs-root h2 { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; color: var(--fs-text); }
.fs-root p { margin: 0; }
.fs-root ul { margin: 0; padding: 0; list-style: none; }
.fs-root ul li { margin: 0; }
.fs-root ul li::before { content: none; }

.fs-stage { position: sticky; top: var(--fs-sticky-top); }
.fs-stage-frame { background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); overflow: hidden; }
.fs-stage .fs-view { display: block; width: 100%; height: min(72vh, 680px); max-width: none; }
.fs-stage .fs-view[hidden] { display: none; }
.fs-stage .fd-stage { cursor: grab; }
.fs-stage-bar { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 12px; border-top: 1px solid var(--fs-line); flex-wrap: wrap; }
.fs-stage-info { font-size: 13px; color: var(--fs-muted); }
.fs-stage-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fs-root .fs-ghost { background: transparent; border: 1px solid var(--fs-line-strong); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--fs-text); }
.fs-root .fs-ghost:hover { border-color: var(--fs-text); background: transparent; }
.fs-root .fs-ghost[hidden] { display: none; }
.fs-root .fs-ghost[aria-pressed="true"] { background: var(--fs-text); color: #fff; border-color: var(--fs-text); }
.fs-stage:fullscreen { background: var(--fs-bg); display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.fs-stage:fullscreen .fs-view { height: calc(100vh - 110px); }

.fs-panel { display: flex; flex-direction: column; gap: 14px; }
.fs-step { background: var(--fs-surface); border: 1px solid var(--fs-line); border-radius: var(--fs-radius); padding: 18px 18px 16px; }
.fs-root .fs-step h2 { font-family: var(--fs-serif); font-weight: 400; font-size: 19px; line-height: 1.3; margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
.fs-n { font-family: var(--fs-sans); font-size: 12px; color: var(--fs-gold); letter-spacing: 0.08em; }
.fs-root .fs-hint { font-size: 13px; color: var(--fs-muted); margin: 8px 0 0; line-height: 1.5; }

.fs-drop { display: flex; gap: 14px; align-items: center; border: 1.5px dashed var(--fs-line-strong); border-radius: var(--fs-radius); padding: 16px; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.fs-drop:hover, .fs-drop.fs-drag { border-color: var(--fs-text); background: #f6f4ef; }
.fs-thumb { width: 64px; height: 64px; border-radius: 6px; background: #efece6 center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--fs-muted); font-size: 22px; }
.fs-drop strong { display: block; font-size: 15px; font-weight: 600; }
.fs-drop span span, .fs-drop strong + span { font-size: 13px; color: var(--fs-muted); }
.fs-drop input { display: none; }

.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-root .fs-chip { border: 1px solid var(--fs-line-strong); background: var(--fs-surface); border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; transition: all .12s; color: var(--fs-text); }
.fs-root .fs-chip:hover { border-color: var(--fs-text); background: var(--fs-surface); }
.fs-root .fs-chip[aria-pressed="true"] { background: var(--fs-text); border-color: var(--fs-text); color: #fff; }
.fs-chip small { color: inherit; opacity: .6; margin-left: 4px; font-size: 12px; }
.fs-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.fs-custom-size { display: none; gap: 8px; align-items: center; margin-top: 10px; }
.fs-custom-size.fs-on { display: flex; }
.fs-root .fs-custom-size input { width: 84px; padding: 8px 10px; border: 1px solid var(--fs-line-strong); border-radius: 8px; background: var(--fs-surface); }
.fs-seg { display: inline-flex; border: 1px solid var(--fs-line-strong); border-radius: 999px; overflow: hidden; }
.fs-root .fs-seg button { border: 0; border-radius: 0; background: transparent; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--fs-text); }
.fs-root .fs-seg button[aria-pressed="true"] { background: var(--fs-text); color: #fff; }

.fs-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; max-height: 360px; overflow: auto; padding: 2px; }
.fs-root .fs-tile { display: block; border: 1px solid var(--fs-line); border-radius: 8px; background: var(--fs-surface); padding: 0; cursor: pointer; overflow: hidden; text-align: left; transition: border-color .12s, box-shadow .12s; color: var(--fs-text); }
.fs-root .fs-tile:hover { border-color: var(--fs-line-strong); background: var(--fs-surface); }
.fs-root .fs-tile[aria-pressed="true"] { border-color: var(--fs-text); box-shadow: 0 0 0 1px var(--fs-text); }
.fs-tile canvas { display: block; width: 100%; aspect-ratio: 1; }
.fs-none { display: grid; place-items: center; aspect-ratio: 1; color: var(--fs-muted); font-size: 12px; background: #f4f2ed; text-align: center; }
.fs-tile span { display: block; font-size: 11px; padding: 4px 6px 5px; color: var(--fs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-picked { margin-top: 10px; font-size: 14px; }
.fs-picked em { font-style: normal; color: var(--fs-muted); }

.fs-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; position: relative; margin: 0; }
.fs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fs-switch i { width: 42px; height: 24px; border-radius: 999px; background: #d6d1c8; position: relative; transition: background .15s; flex: none; }
.fs-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.fs-switch input:checked + i { background: var(--fs-text); }
.fs-switch input:checked + i::after { transform: translateX(18px); }
.fs-switch input:focus-visible + i { outline: 2px solid var(--fs-gold); outline-offset: 2px; }
.fs-mat-options[hidden] { display: none; }
.fs-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fs-root .fs-sw { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; position: relative; }
.fs-root .fs-sw[aria-pressed="true"]::after { content: ''; position: absolute; inset: -5px; border-radius: 9px; border: 2px solid var(--fs-text); }
.fs-range { display: flex; gap: 12px; align-items: center; margin-top: 14px; font-size: 14px; }
.fs-range input { flex: 1; accent-color: var(--fs-text); }

.fs-glass { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fs-root .fs-glass button { display: block; text-align: left; border: 1px solid var(--fs-line); background: var(--fs-surface); border-radius: 8px; padding: 10px 12px; cursor: pointer; color: var(--fs-text); }
.fs-root .fs-glass button:hover { background: var(--fs-surface); border-color: var(--fs-line-strong); }
.fs-glass button strong { display: block; font-size: 14px; font-weight: 600; }
.fs-glass button span { font-size: 12px; color: var(--fs-muted); }
.fs-root .fs-glass button[aria-pressed="true"] { border-color: var(--fs-text); box-shadow: 0 0 0 1px var(--fs-text); }

.fs-root .fs-summary { margin: 0 0 14px; font-size: 14px; }
.fs-root .fs-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--fs-line); }
.fs-summary li span:first-child { color: var(--fs-muted); }
.fs-summary li span:last-child { text-align: right; }
.fs-quote { display: grid; gap: 10px; margin: 0; }
.fs-quote[hidden] { display: none; }
.fs-quote label { font-size: 13px; color: var(--fs-muted); display: grid; gap: 4px; margin: 0; font-weight: 400; }
.fs-root .fs-quote input[type=text], .fs-root .fs-quote input[type=email], .fs-root .fs-quote input[type=tel], .fs-root .fs-quote textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--fs-line-strong); border-radius: 8px; background: var(--fs-surface); font-size: 15px; color: var(--fs-text);
}
.fs-quote textarea { min-height: 70px; resize: vertical; }
.fs-root .fs-quote .fs-check { display: flex; gap: 8px; align-items: flex-start; color: var(--fs-text); font-size: 13px; }
.fs-check input { margin-top: 2px; }
.fs-check a { color: inherit; }
.fs-root .fs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fs-root .fs-cta { background: var(--fs-text); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font-size: 15px; cursor: pointer; letter-spacing: .02em; }
.fs-root .fs-cta:hover { background: #000; color: #fff; }
.fs-root .fs-cta:disabled { opacity: .6; cursor: progress; }
.fs-err { color: #b3261e; font-size: 13px; min-height: 1em; }
.fs-done { display: none; border: 1px solid #cfe3d8; background: #f1f8f4; border-radius: var(--fs-radius); padding: 14px; font-size: 14px; }
.fs-done.fs-on { display: block; }
.fs-done pre { white-space: pre-wrap; font-size: 12px; color: var(--fs-muted); margin: 8px 0 0; background: none; border: 0; padding: 0; }
/* Πλήρης οθόνη για όλο το εργαλείο */
html.fs-studio-lock, html.fs-studio-lock body { overflow: hidden !important; }
.fs-root.fs-studio {
  position: fixed; inset: 0; z-index: 100000; margin: 0; max-width: none;
  background: var(--fs-bg); padding: 16px; gap: 20px; overflow: hidden;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: stretch;
}
.fs-root.fs-studio .fs-stage { position: relative; top: 0; display: flex; flex-direction: column; min-height: 0; }
.fs-root.fs-studio .fs-stage-frame { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.fs-root.fs-studio .fs-view { flex: 1; height: auto; min-height: 0; }
.fs-root.fs-studio .fs-view[hidden] { display: none; }
.fs-root.fs-studio .fs-panel { overflow-y: auto; min-height: 0; padding-right: 4px; overscroll-behavior: contain; }
.fs-root .fs-studio-btn[aria-pressed="true"] { background: var(--fs-text); color: #fff; border-color: var(--fs-text); }

.fs-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--fs-text); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 100001; }
.fs-toast.fs-on { opacity: 1; }

@media (max-width: 900px) {
  /* minmax(0, …): αλλιώς η γραμμή με τα κουμπιά (χωρίς αναδίπλωση) απλώνει τη στήλη πέρα από την οθόνη */
  .fs-root { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fs-stage { top: 0; z-index: 5; }
  .fs-stage .fs-view { height: 34vh; }
  .fs-stage-frame { border-radius: 0 0 var(--fs-radius) var(--fs-radius); }
  .fs-stage-bar { padding: 6px 8px; gap: 4px; }
  .fs-stage-info { font-size: 12px; width: 100%; }
  .fs-stage-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; } /* σε δύο γραμμές αν δεν χωράνε, ώστε να φαίνονται όλα τα κουμπιά */
  .fs-root .fs-ghost { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
  .fs-glass { grid-template-columns: 1fr; }
  .fs-root.fs-studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding: 0; gap: 10px; }
  .fs-root.fs-studio .fs-stage-actions { flex-wrap: wrap; }
  .fs-root.fs-studio .fs-studio-btn { order: -1; } /* το «Κλείσιμο» πρώτο, πάντα ορατό */
  .fs-root.fs-studio .fs-stage { height: 46vh; }
  .fs-root.fs-studio .fs-stage-frame { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
  .fs-root.fs-studio .fs-panel { padding: 0 10px 24px; }
}
