/* Brick3DP Studio 1.2.1 — shortcode-driven styling, independent of Elementor IDs.
   Adjust the palette below without changing JS/PHP. */
.b3dp-studio {
  --studio-bg:#111216;
  --studio-panel:#1b1c22;
  --studio-border:#353740;
  --studio-text:#f6f6f7;
  --studio-muted:#a9abb4;
  --studio-accent:#ffda34;
  --studio-quote:#254fdb;
  box-sizing:border-box; width:100%; max-width:1640px;
  margin-inline:auto!important; padding:clamp(18px,3vw,44px)!important;
  background:var(--studio-bg); color:var(--studio-text);
  border-radius:22px; min-height:640px;
}
.b3dp-studio *, .b3dp-studio *::before,.b3dp-studio *::after {box-sizing:border-box}
.b3dp-studio.b3dp-studio__layout,
.b3dp-studio .b3dp-studio__layout {
  display:flex!important; flex-direction:column!important; align-items:center!important;
  gap:0!important; width:100%; min-width:0;
}
.b3dp-studio .b3dp-studio__intro{width:100%;max-width:940px;margin:40px auto 14px!important;text-align:center}
.b3dp-studio .b3dp-studio__intro .elementor-heading-title,
.b3dp-studio .b3dp-studio__intro h1 {font-size:clamp(30px,3.6vw,54px)!important;font-weight:750;line-height:1.12!important;letter-spacing:-.035em;color:var(--studio-text)!important}
.b3dp-studio .b3dp-studio__intro p{color:var(--studio-muted)!important;font-size:clamp(14px,1.25vw,17px);line-height:1.65;text-align:center;margin:0 0 15px}
.b3dp-studio .b3dp-studio__sidebar{
  width:min(100%,960px)!important; max-width:960px;
  flex:0 1 auto!important; margin:auto!important;padding:0!important;
  border:0!important;background:transparent; align-self:center;min-width:0;
  display:flex!important;flex-direction:column!important;gap:8px!important;
}
.b3dp-studio .b3dp-studio__viewer{display:none!important}
.b3dp-studio .stlgen{
  width:100%;max-width:none;margin:0!important;padding:26px!important;
  background:linear-gradient(120deg,#212128,#28252a);
  border:1px solid var(--studio-border);border-radius:24px;color:var(--studio-text);
  box-shadow:0 24px 80px rgba(0,0,0,.18);
}
.b3dp-studio .stlgen__form{display:flex;flex-direction:column;gap:16px}
.b3dp-studio .stlgen__drop{
  position:relative;margin:0;min-height:220px;padding:28px;
  display:flex;justify-content:center;align-items:center;flex-direction:column;gap:9px;
  border:1.5px dashed #5a5c68;border-radius:18px;
  background:rgba(9,10,14,.16);cursor:pointer;transition:background .15s,border-color .15s;
}
.b3dp-studio .stlgen__drop::before{
  content:'↑';display:grid;place-items:center;width:56px;height:56px;
  margin:0 auto 5px;border-radius:15px;background:rgba(255,218,52,.10);
  color:var(--studio-accent);font-size:36px;line-height:1;
}
.b3dp-studio .stlgen__drop:hover,.b3dp-studio .stlgen__drop:focus-within,
.b3dp-studio .stlgen__drop.b3dp-drop--dragging {background:rgba(255,218,52,.065);border-color:var(--studio-accent)}
.b3dp-studio .stlgen__drop-title{color:var(--studio-text);font-size:21px;font-weight:700}
.b3dp-studio .stlgen__drop-hint{color:var(--studio-muted);font-size:13px;line-height:1.65}
.b3dp-studio .stlgen__drop input[type=file]{
  position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;
  margin:0;max-width:none;z-index:2;font-size:0;
}
.b3dp-studio .stlgen__button{
  align-self:flex-end;min-width:190px;padding:14px 24px;color:#191919;
  border:0;border-radius:999px;background:var(--studio-accent);
  font-family:inherit;font-size:15px;font-weight:750;line-height:1.2;
  cursor:pointer;box-shadow:0 5px 20px rgba(255,218,52,.12);
}
.b3dp-studio .stlgen__button:disabled{background:#6b6870!important;color:#e1dee4;cursor:not-allowed;box-shadow:none}
.b3dp-studio .stlgen__preview{max-width:100%;max-height:260px;object-fit:contain;background:#25262d;border:1px solid var(--studio-border);padding:8px}
.b3dp-studio .stlgen__status{color:#c2c8d1;margin:5px 0 0;min-height:0}
.b3dp-studio .stlgen__status--error{color:#ffb4b4!important}
.b3dp-studio .stlgen__note{color:var(--studio-muted);font-size:12px}
.b3dp-studio .stlgen__download{background:none;color:#ffe17d!important;font-size:13px;margin-top:12px;padding:6px;text-decoration:underline;border-radius:0}

/* Transition to the large workspace on a validated image selection. */
.b3dp-studio.b3dp-workspace--active{min-height:0;padding:18px!important}
.b3dp-studio.b3dp-workspace--active.b3dp-studio__layout,
.b3dp-studio.b3dp-workspace--active .b3dp-studio__layout{
  display:grid!important;align-items:start!important;
  grid-template-columns:minmax(290px,350px) minmax(0,1fr)!important;
  gap:18px!important;
}
.b3dp-studio.b3dp-workspace--active .b3dp-studio__intro{display:none!important}
.b3dp-studio.b3dp-workspace--active .b3dp-studio__sidebar{
  grid-column:1;grid-row:1;width:100%!important;max-width:none;
  margin:0!important;align-self:start;position:sticky;top:20px;height:max-content;
  border:1px solid var(--studio-border)!important;border-radius:18px;
  padding:16px!important;background:var(--studio-panel);
}
.b3dp-studio.b3dp-workspace--active .b3dp-studio__sidebar::before{
  content:'SOURCE IMAGE';display:block;font-size:11px;letter-spacing:.12em;
  font-weight:750;color:#c6c9d2;padding:3px 2px 0;
}
.b3dp-studio.b3dp-workspace--active .b3dp-studio__viewer{
  display:block!important;grid-column:2;grid-row:1;width:100%!important;min-width:0;
}
.b3dp-studio.b3dp-workspace--active .stlgen{border:0;background:transparent;box-shadow:none;padding:0!important;border-radius:0}
.b3dp-studio.b3dp-workspace--active .stlgen__form{gap:11px}
.b3dp-studio.b3dp-workspace--active .stlgen__preview:not([hidden]){
  order:-1;display:block;width:100%;max-height:280px;height:260px;
  border-radius:13px;margin:0 auto;background:#292b32;
}
.b3dp-studio.b3dp-workspace--active .stlgen__drop{
  min-height:0;padding:12px 10px;border-radius:10px;gap:2px;
  border:1px solid #535863;background:#2a2b33;
}
.b3dp-studio.b3dp-workspace--active .stlgen__drop::before{display:none}
.b3dp-studio.b3dp-workspace--active .stlgen__drop-title{font-size:13px}
.b3dp-studio.b3dp-workspace--active .stlgen__drop-hint{display:none}
.b3dp-studio.b3dp-workspace--active .stlgen__button{width:100%;align-self:stretch;min-width:0;border-radius:10px;margin-top:3px}
.b3dp-studio.b3dp-workspace--generating .stlgen__drop{opacity:.65}
.b3dp-studio.b3dp-workspace--active .b3dp-quote-button{
  display:block;width:100%;text-align:center;color:#fff!important;
  border-radius:10px;padding:13px 12px;background:var(--studio-quote);
}
.b3dp-studio.b3dp-workspace--active .b3dp-quote-button[hidden]{display:none!important}
.b3dp-studio.b3dp-workspace--active .b3dp-viewer{
  margin:0!important;border:1px solid var(--studio-border);border-radius:18px;
  background:#1b1d23;color:var(--studio-text);
}
.b3dp-studio.b3dp-workspace--active .b3dp-viewer__header{padding:16px 20px}
.b3dp-studio.b3dp-workspace--active .b3dp-viewer__viewport{height:var(--b3dp-viewer-height,1320px);background:#161c24}
.b3dp-studio.b3dp-workspace--active .b3dp-viewer__header strong{color:var(--studio-text)}
.b3dp-studio.b3dp-workspace--active .b3dp-viewer__help,
.b3dp-studio.b3dp-workspace--active .b3dp-viewer__status{color:#aab2c3}
@media(max-width:900px){
 .b3dp-studio.b3dp-workspace--active.b3dp-studio__layout,
.b3dp-studio.b3dp-workspace--active .b3dp-studio__layout{grid-template-columns:minmax(230px,32%) minmax(0,1fr)!important;gap:12px!important}
 .b3dp-studio.b3dp-workspace--active .b3dp-studio__sidebar{position:static;padding:12px!important}
}
@media(max-width:700px){
 .b3dp-studio{border-radius:14px;min-height:0;padding:18px!important}
 .b3dp-studio .b3dp-studio__intro{margin:18px auto 12px!important}
 .b3dp-studio .stlgen{padding:14px!important}
 .b3dp-studio .stlgen__drop{min-height:190px;padding:14px}
 .b3dp-studio.b3dp-workspace--active{padding:10px!important}
 .b3dp-studio.b3dp-workspace--active.b3dp-studio__layout,
.b3dp-studio.b3dp-workspace--active .b3dp-studio__layout{display:flex!important;flex-direction:column!important;gap:12px!important}
 .b3dp-studio.b3dp-workspace--active .b3dp-studio__sidebar{order:0;width:100%!important;padding:12px!important}
 .b3dp-studio.b3dp-workspace--active .b3dp-studio__viewer{order:1;width:100%!important}
 .b3dp-studio.b3dp-workspace--active .stlgen__preview{height:160px;max-height:160px}
 .b3dp-studio.b3dp-workspace--active .b3dp-viewer__viewport{height:72vh;min-height:400px;max-height:720px}
}
