:root{
  --bg:#fff;
  --muted:#f3f4f6;
  --line:rgba(0,0,0,.12);
  --txt:#111827;
  --sub:#856259;
  --accent:#144c8c;
}



*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--txt);background:var(--bg)}

img {
	height: 100%;
	width: 100%;
	object-fit: ;
}

.bb-topbar{
  height:100px;display:flex;align-items:center;justify-content:space-between;
  padding:0 16px;border-bottom:1px solid var(--line);background:#fff;
}


.bb-brand{display:flex;align-items:center;gap:12px}
.bb-logo{font-weight:800;letter-spacing:.3px}

.logotop {
	width: 500px;
	max-width: 100%;
}

.bb-title{color:var(--sub)}
.bb-top-actions{display:flex;align-items:center;gap:10px}

.bb-layout{display:grid;grid-template-columns:1fr 400px;height:calc(100vh - 148px);overflow:hidden}
.mode-htmlcss .bb-layout{grid-template-columns:1fr 430px}
.mode-styling .bb-layout{grid-template-columns:1fr 430px}
.bb-canvas-wrap{background:#fff;display:flex;flex-direction:column;min-height:0}
.bb-panel{border-left:1px solid var(--line);background:#fff;display:flex;flex-direction:column;min-height:0;height:100%}

.bb-canvas-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:var(--muted);
}

.bb-hint {
	color: var(--sub);
	font-size: 13px;
	padding-left: 5px;
  flex:1 1 auto;
  min-width:0;
}

.bb-status{
  font-size:13px;
  color:var(--sub);
  flex:0 0 auto;
  max-width:40%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bb-canvas{padding:16px;min-height:0;height:100%;overflow:auto;flex:1;background:linear-gradient(#fff,#fff), repeating-linear-gradient(0deg,rgba(0,0,0,.03) 0,rgba(0,0,0,.03) 1px,transparent 1px,transparent 24px);}

.bb-tabs{display:flex;gap:6px;padding:10px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.bb-main-tabs{
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:8px 12px;
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.bb-main-tabs-left{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}
.bb-main-tabs-right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.bb-tab{border:1px solid var(--line);background:#fff;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:13px}
.bb-tab.active{border-color:#856259;background: #dfd5d3;color: #856259;}
.bb-tab:disabled{opacity:.55;cursor:not-allowed}
.bb-help-btn{
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid #b99688;
  background:#cfb7ab;
  color:#fff;
  font-weight:800;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  transition:background-color .12s ease, border-color .12s ease, transform .12s ease;
}
.bb-help-btn:hover{
  background:#fa9403;
  border-color:#fa9403;
  transform:translateY(-1px);
}

.bb-help-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.24);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:200;
}
.bb-help-drawer{
  position:absolute;
  top:0;
  right:0;
  width:min(420px,92vw);
  height:100%;
  background:#fa9403;
  border-left:1px solid var(--line);
  box-shadow:-12px 0 36px rgba(0,0,0,.18);
  transform:translateX(100%);
  transition:transform .24s ease;
  display:flex;
  flex-direction:column;
}
.bb-help-overlay.is-open{
  opacity:1;
  pointer-events:auto;
}
.bb-help-overlay.is-open .bb-help-drawer{
  transform:translateX(0);
}
body.bb-help-open{
  overflow:hidden;
}
.bb-help-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:12px;
  border-bottom:1px solid var(--line);
}
.bb-help-head h3{
  margin:0;
  font-size:16px;
}
.bb-help-close{
  width:30px;
  height:30px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}
.bb-help-body{
  padding:12px;
  overflow:auto;
}
.bb-help-body h4{
  margin:14px 0 8px 0;
  font-size:20px;
  color:#fff;
}
.bb-help-body p{
  margin:0 0 8px 0;
  font-size:13px;
  color:#333;
}

.bb-subtabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.bb-unit-tabs{margin-top:4px;margin-bottom:6px}
.bb-subtab{border:1px solid var(--line);background:#fff;padding:6px 9px;border-radius:6px;cursor:pointer;font-size:12px}
.bb-subtab.active{border-color:#856259;background:#dfd5d3;color:#856259}
.bb-subtab.is-picked{box-shadow:inset 0 0 0 1px rgba(20,76,140,.25)}
.bb-subtab-mark{font-size:10px;font-weight:700;color:#144c8c;margin-left:6px}
.bb-starter-sep{border:0;border-top:1px solid var(--line);margin:8px 0 10px 0}
.bb-components-headline{font-weight:700;font-size:12px;color:#5a4039;margin:2px 0 2px 0}
.bb-components-subline{font-size:11px;color:var(--sub);margin:0 0 8px 0}
.bb-starter-tab{
  flex:0 0 calc(50% - 3px);
  max-width:calc(50% - 3px);
  text-align:center;
}

.bb-panel-body{padding:12px;overflow-y:auto !important;overflow-x:hidden;flex:1 1 auto;min-height:0;height:0;-webkit-overflow-scrolling:touch}
.bb-panel-list{display:grid;gap:10px}
.bb-item{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;cursor:grab}
.bb-item:active{cursor:grabbing}
.bb-item-title{font-weight:700;font-size:13px;margin-bottom:6px}
.bb-item-preview{font-size:12px;color:var(--sub)}
.bb-item-list{margin:6px 0 0 16px;padding:0;color:var(--sub);font-size:12px}
.bb-item-list li{margin:2px 0}

.bb-input{
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  min-width:240px;
  width:100%;
}
.bb-btn{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;cursor:pointer}
.bb-btn-primary{border-color:#856259;background:#856259;color: #fff;}

.bb-cnode{border:1px solid var(--line);border-radius:12px;background:transparent;margin-bottom:10px;overflow:hidden}
.bb-cnode-head{display:flex;align-items:center;gap:10px;padding:8px 10px;background:var(--muted);cursor:pointer}
.bb-cnode-head.selected{outline:2px solid rgba(20,76,140,.35)}
.bb-chip{font-size:12px;padding:2px 8px;border:1px solid var(--line);border-radius:999px;background:#fff}
.bb-id{font-size:12px;color:var(--sub);margin-left:auto}
.bb-x{border:1px solid var(--line);background:#fff;border-radius:8px;width:30px;height:30px;cursor:pointer}

.bb-cnode-body{padding:10px}
.bb-drop-hint{color:var(--sub);font-size:12px;padding:10px;border:1px dashed rgba(0,0,0,.15);border-radius:10px}

.bb-inspector{display:none;margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.bb-inspector h3{margin:0 0 10px 0;font-size:14px}
.bb-inspector label{display:block;margin:10px 0 6px 0;font-size:12px;color:var(--sub)}
.bb-note{margin-top:12px;color:var(--sub);font-size:12px}
.bb-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.bb-inspector-empty{color:var(--sub);font-size:13px}

.bb-lock{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff}
.bb-lock h3{margin:0 0 8px 0;font-size:15px}
.bb-lock p{margin:0 0 12px 0;font-size:13px;color:var(--sub)}

.bb-wire-tools{display:flex;flex-direction:column;gap:8px}
.bb-wire-tools label{font-size:13px;color:var(--txt)}

.bb-editors{display:grid;gap:12px}
.bb-editors-main{height:100%}
.bb-editor-block{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.bb-editor-title{padding:8px 10px;font-size:12px;font-weight:700;background:var(--muted);border-bottom:1px solid var(--line)}
.bb-ace{height:230px;width:100%}
.bb-ace-main{height:calc(100vh - 250px)}
.bb-ace-side{height:calc(100vh - 280px)}
.bb-editor-search{padding:8px;border-bottom:1px solid var(--line);background:#fff;display:flex;gap:8px;align-items:center}
.bb-editor-search .bb-input{min-width:0;width:100%;flex:1 1 auto}
.bb-frontend-preview{
  height:calc(100vh - 250px);
  min-height:360px;
  display:flex;
  flex-direction:column;
}
.bb-preview-frame{
  display:block;
  flex:1 1 auto;
  width:100%;
  height:100%;
  min-height:0;
  border:0;
  background:#fff;
}

.bb-style-main{display:flex;flex-direction:column;gap:10px}
.bb-style-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.bb-style-card{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;cursor:pointer}
.bb-style-card:hover{border-color:#856259;box-shadow:0 0 0 1px rgba(133,98,89,.25)}
.bb-style-card-title{font-size:12px;font-weight:700;margin-bottom:6px}
.bb-style-controls h3{margin:0 0 10px 0;font-size:14px}
.bb-style-fields label{display:block;margin:8px 0 6px 0;font-size:12px;color:var(--sub)}
.bb-style-row{display:flex;gap:8px;align-items:center}
.bb-style-row input[type="color"]{width:44px;height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:2px}
.bb-style-group{border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:10px;background:#fff}
.bb-style-group-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.bb-style-controls input[type="range"]{display:block;width:100%;margin:4px 0 10px 0}
.bb-checkline{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--sub);margin:4px 0 10px 0}
.bb-checkline input[type="checkbox"]{width:16px;height:16px}
.bb-bg-uploadzone{
  width:100%;
  height:80px;
  border:2px dashed rgba(133,98,89,.45);
  border-radius:10px;
  background:#fff;
  color:var(--sub);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .15s ease, background-color .15s ease, color .15s ease;
}
.bb-bg-uploadzone.is-hover{
  border-color:#cf3d01;
  background:#fff7f3;
  color:#7a2f16;
}
.bb-code-fallback{white-space:pre-wrap;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:12px;overflow:auto}
.bb-var-wrap{display:flex;flex-direction:column;gap:10px}
.bb-var-group{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px}
.bb-var-group h4{margin:0 0 8px 0;font-size:12px;color:var(--sub)}
.bb-var-list{display:flex;flex-direction:column;gap:6px}
.bb-var-item{
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:8px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
}
.bb-var-main{
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:left;
  min-width:0;
  flex:1 1 auto;
}
.bb-var-actions{
  display:flex;
  gap:6px;
  flex:0 0 auto;
}
.bb-var-btn{
  padding:6px 8px;
  border-radius:8px;
  font-size:11px;
}
.bb-var-item:hover{border-color:#856259;background:#fcfaf9}
.bb-var-item code{font-size:12px}
.bb-var-item span{font-size:11px;color:var(--sub)}

.bb-color-import-swatches{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:4px 0 10px 0;
}
.bb-color-import-controls{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.bb-color-import-input{
  width:100%;
  min-width:0;
}
.bb-color-import-make{
  width:100%;
}
.bb-color-import-chip{
  position:relative;
  width:50px;
  height:50px;
  border:1px solid rgba(0,0,0,.2);
  border-radius:8px;
  overflow:hidden;
}
.bb-color-import-chip.is-transparent{
  background:#fff !important;
}
.bb-color-import-chip.is-transparent::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, transparent 46%, #d83a2f 46%, #d83a2f 54%, transparent 54%);
  pointer-events:none;
}
.bb-color-import-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 16px;
	height: 16px;
	border: 1px solid rgba(0,0,0,.28);
	border-radius: 999px;
	background: rgba(255,255,255,.95);
	color: #333;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	z-index: 2;
	display: inline-block;
	padding-bottom: 2px;
}
.bb-color-import-remove:hover {
	background: red;
		border: 1px solid red;
		color: #fff;	
	
}
/* BakerEditor-like color picker */
.be-color-custom{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:8px}
.be-color-picker{display:grid;gap:8px}
.be-color-sv{
  position:relative;
  height:130px;
  border:1px solid rgba(0,0,0,.2);
  border-radius:10px;
  overflow:hidden;
  cursor:crosshair;
  touch-action:none;
}
.be-color-sv::before,
.be-color-sv::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
}
.be-color-sv::before{
  background:linear-gradient(to right,#fff,rgba(255,255,255,0));
}
.be-color-sv::after{
  background:linear-gradient(to top,#000,rgba(0,0,0,0));
}
.be-color-sv-dot{
  position:absolute;
  width:12px;
  height:12px;
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(0,0,0,.35);
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.be-color-hue{width:100%}
.be-color-inputs{display:flex;gap:8px;align-items:center}
.be-color-preview{
  width:36px;
  height:36px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,.2);
  flex:0 0 auto;
  position:relative;
}

.be-color-preview.is-transparent{
  background:#fff !important;
}

.be-color-preview.is-transparent::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, transparent 46%, #d83a2f 46%, #d83a2f 54%, transparent 54%);
  pointer-events:none;
}

.bb-swatch-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:4px 0 8px 0;
}

.bb-swatch{
  width:22px;
  height:22px;
  border:1px solid rgba(0,0,0,.2);
  border-radius:6px;
  cursor:pointer;
  padding:0;
}

.bb-swatch.is-transparent{
  background-color:#fff !important;
  background-image:linear-gradient(135deg, transparent 46%, #d83a2f 46%, #d83a2f 54%, transparent 54%) !important;
}

.bb-cnode-controls{
  display:flex;
  gap:6px;
  margin-left:10px;
}

.bb-handle,
.bb-mirror,
.bb-duplicate,
.bb-x{
  border:1px solid var(--line);
  background:#fff;
  border-radius:8px;
  width:34px;
  height:30px;
  cursor:pointer;
  font-size:14px;
  line-height:1;
}

.bb-handle{ cursor:grab; }
.bb-handle:active{ cursor:grabbing; }

.bb-dragging { opacity: 0.55; }

.bb-drop-before { outline: 2px solid rgba(20,76,140,.35); }
.bb-drop-before::before{
  content:"";
  display:block;
  height:3px;
  background:rgba(20,76,140,.45);
  margin:-10px -10px 10px -10px;
}

.bb-drop-after { outline: 2px solid rgba(20,76,140,.35); }
.bb-drop-after::after{
  content:"";
  display:block;
  height:3px;
  background:rgba(20,76,140,.45);
  margin:10px -10px -10px -10px;
}

.bb-dropzone{
  font-size:12px;
  color:var(--sub);
  padding:8px 10px;
  border:1px dashed rgba(0,0,0,.18);
  border-radius:10px;
  background:rgba(0,0,0,.02);
  margin:8px 0;
  user-select:none;
}

.bb-dropzone.is-disabled{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}

.bb-dropzone-inside{
  margin:0 0 10px 0;
}

.bb-dropzone-before,
.bb-dropzone-after{
  background:rgba(20,76,140,.03);
}

.bb-zone-hover{
  border-color: rgba(20,76,140,.55);
  box-shadow: 0 0 0 2px rgba(20,76,140,.15);
  background: rgba(20,76,140,.06);
}

/* Insertion indicator (only during drag) */
.bb-insert-line{
  position: absolute;
  height: 3px;
  border-radius: 3px;
  background: rgba(20,76,140,.55);
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 0 2px rgba(20,76,140,.15);
}

.bb-drop-target{
  outline: 2px solid rgba(20,76,140,.25);
  outline-offset: 2px;
}

.bb-empty-drop{
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 12px;
  background: #dfd5d3;
  color: #856259;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.bb-empty-drop:hover{
  background: rgba(20,76,140,.07);
}

.bb-cols2,
.bb-cols{
  display:flex;
  gap:16px;
  margin-top:10px;
  width:100%;
}

.bb-col{
  flex:1;
  min-width:0;
}

.bb-col .bb-cnode{
  margin-top:10px;
}

/* Column wrapper: keep it neutral; styles come from node styles */
.bb-colwrap{
  position: relative;
  min-height: 64px;
  width: 100%;
  box-sizing: border-box;
}

/* Keep the subtle hover behavior (visual only) */
.bb-colwrap:hover{
  box-shadow: 0 0 0 2px rgba(20,76,140,.10);
}


.bb-coltag{
  position:absolute;
  top:8px;
  left:10px;
  font-size:12px;
  color: rgba(0,0,0,.55);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(0,0,0,.08);
  padding: 3px 8px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(-3px);
  transition: .12s ease;
  pointer-events:none;
}

.bb-colwrap:hover .bb-coltag{
  opacity: 1;
  transform: translateY(0);
}

.bb-colcontent{
  padding-top: 18px; /* space for label */
}

/* Smaller empty button inside columns */
.bb-empty-drop.bb-empty-small{
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}
/* Force canvas blocks to fill available width */
#canvas,
#canvas .bb-cnode,
#canvas .bb-cnode-body,
#canvas .bb-children{
  width: 100%;
  box-sizing: border-box;
}

/* Make sure the 2-col wrapper stretches */
#canvas .bb-cols2{
  width: 100%;
  display: flex;      /* reinforce */
  gap: 16px;
}

/* Columns should share space equally and not shrink */
#canvas .bb-colwrap{
  flex: 1 1 0;
  min-width: 0;
}

/* --- Canvas must fill remaining width --- */
.bb-app,
.bb-shell,
.bb-main{
  display:flex;
  width:100%;
  min-width:0;
}

.bb-canvas-area{
  flex: 1 1 auto;
  min-width: 0;          /* critical in flex layouts */
  width: 100%;
}

#canvas{
  width:100%;
  min-width:0;
}

/* All canvas nodes should stretch full width */
#canvas .bb-cnode,
#canvas .bb-cnode-body,
#canvas .bb-children{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  display:block;
}

/* Columns wrapper should stretch */

/* Each column fills half */
#canvas .bb-colwrap{
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}

/* Safety-net: in the builder canvas, columns must always stay horizontal */
#canvas .bb-cols2,
#canvas .bb-cols{
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 12px;
}

#canvas .bb-cols2 > *,
#canvas .bb-cols > *{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* === HARD WIDTH FIX FOR GRID CANVAS === */
.bb-layout{
  width: 100%;
  min-width: 0;
}

.bb-canvas-wrap{
  width: 100%;
  min-width: 0;        /* critical */
}

.bb-panel{
  min-width: 0;        /* prevents weird shrink */
}

/* Your canvas container itself */
.bb-canvas{
  width: 100%;
  min-width: 0;
}

/* Ensure all nodes stretch */
.bb-canvas .bb-cnode{
  width: 100%;
}

/* Columns must stretch */
.bb-canvas .bb-cols2{
  width: 100%;
}

/* Columns must share available space */
.bb-canvas .bb-cols2 > .bb-colwrap{
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* Styling mode: show structure as simple 1px boxes */
.mode-styling #canvas .bb-cnode,
.mode-styling #canvas .bb-colwrap{
  outline:1px dashed #333 !important;
  outline-offset:-1px;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  margin-bottom:0;
}

.mode-styling #canvas{
  padding:0 !important;
  background:#fff !important;
}

.mode-styling #canvas .bb-cnode-head,
.mode-styling #canvas .bb-coltag,
.mode-styling #canvas .bb-cnode-controls,
.mode-styling #canvas .bb-empty-drop{
  display:none !important;
}

.mode-styling #canvas .bb-cnode-body{
  padding:0 !important;
}

.mode-styling #canvas .bb-cnode[data-type="text"] .bb-cnode-body::after,
.mode-styling #canvas .bb-cnode[data-type="heading"] .bb-cnode-body::after,
.mode-styling #canvas .bb-cnode[data-type="button"] .bb-cnode-body::after{
  content: attr(data-wire-label);
  display:block;
  padding:8px;
  min-height:28px;
  color:inherit;
  font-family:inherit;
  font-size:inherit;
  font-weight:inherit;
  line-height:inherit;
  letter-spacing:inherit;
  text-align:inherit;
  text-transform:inherit;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}

.mode-styling #canvas .bb-cnode[data-type="image"] .bb-cnode-body{
  position:relative;
  min-height:96px;
  height:100%;
  overflow:hidden;
}

.mode-styling #canvas .bb-cnode[data-type="image"] .bb-cnode-body .bb-node-image{
  display:block;
  width:100%;
  height:100%;
  min-height:96px;
  object-fit:cover;
}

#canvas .bb-cnode[data-type="image"] .bb-cnode-body .bb-node-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

#canvas .bb-cnode[data-type="image"] .bb-children{
  height:100%;
  position:relative;
}

#canvas .bb-cnode[data-type="image"] .bb-children.bb-image-drop-hover{
  outline:0;
}

#canvas .bb-cnode[data-type="image"] .bb-image-dropzone-indicator{
  position:absolute;
  top:25%;
  left:25%;
  width:50%;
  height:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:2px dashed rgba(207,61,1,.55);
  background:rgba(207,61,1,.08);
  color:#7a2f16;
  font-size:12px;
  font-weight:700;
  border-radius:10px;
  opacity:0;
  transform:scale(.98);
  transition:opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease;
  pointer-events:none;
  z-index:2;
}

.mode-styling #canvas .bb-cnode[data-type="image"]:hover .bb-image-dropzone-indicator{
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
}

.mode-styling #canvas .bb-cnode[data-type="image"] .bb-children.bb-image-drop-hover .bb-image-dropzone-indicator{
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
  border-color:#cf3d01;
  background:rgba(207,61,1,.16);
}

.mode-styling #canvas .bb-cols,
.mode-styling #canvas .bb-cols2{
  gap:0;
  margin-top:0;
}

.mode-styling #canvas .bb-colcontent{
  padding-top:0 !important;
}

.mode-styling #canvas .bb-children{
  display:flex;
  flex-direction:column;
}

.mode-styling #canvas .bb-selected-node{
  outline:2px dashed #fa9403 !important;
  outline-offset:-2px !important;
}

.mode-styling #canvas .bb-cnode:hover,
.mode-styling #canvas .bb-colwrap:hover{
  outline-color:#cfb7ab !important;
}

body.styling-guides-off.mode-styling #canvas .bb-cnode,
body.styling-guides-off.mode-styling #canvas .bb-colwrap{
  outline:none !important;
  box-shadow:none !important;
  border-color:transparent !important;
}

body.styling-guides-off.mode-styling #canvas .bb-selected-node{
  outline:none !important;
}

.mode-wireframe #canvas .bb-empty-drop{
  display:none !important;
}

#canvas.bb-wireframe-content-dummy .bb-cnode[data-type="text"] .bb-cnode-body::after,
#canvas.bb-wireframe-content-dummy .bb-cnode[data-type="heading"] .bb-cnode-body::after,
#canvas.bb-wireframe-content-dummy .bb-cnode[data-type="button"] .bb-cnode-body::after{
  content: attr(data-wire-label);
  display:block;
  border:1px dashed #333;
  padding:6px 8px;
  font-size:12px;
  color:#333;
  background:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bb-cnode,
.bb-colwrap{
  position:relative;
}

.bb-resize-zone{
  position:absolute;
  right:0;
  bottom:0;
  width:88px;
  height:38px;
  border:1px dashed rgba(133,98,89,.5);
  border-radius:8px 0 0 0;
  background:rgba(133,98,89,.08);
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease, background .12s ease, border-color .12s ease;
  z-index:4;
}

.bb-resize-handle{
  position:absolute;
  right:4px;
  bottom:4px;
  width:24px;
  height:24px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:6px;
  background:#fff;
  color:#856259;
  font-size:13px;
  line-height:1;
  cursor:nwse-resize;
  z-index:5;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease, background .12s ease;
}

.bb-resize-full{
  position:absolute;
  right:32px;
  bottom:4px;
  height:24px;
  min-width:44px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:6px;
  background:#fff;
  color:#856259;
  font-size:11px;
  line-height:1;
  cursor:pointer;
  z-index:5;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease, background .12s ease;
}

.bb-resize-dims{
  position:absolute;
  top:4px;
  left:4px;
  z-index:6;
  padding:2px 6px;
  border-radius:6px;
  border:1px solid rgba(0,0,0,.16);
  background:rgba(255,255,255,.92);
  color:#222;
  font-size:11px;
  line-height:1.2;
}

.mode-components .bb-resize-handle,
.mode-components .bb-resize-full,
.mode-wireframe .bb-resize-handle,
.mode-wireframe .bb-resize-full,
.mode-components .bb-resize-zone,
.mode-wireframe .bb-resize-zone{
  display:none;
}

.mode-styling #canvas .bb-cnode.bb-hover-resize .bb-resize-zone,
.mode-styling #canvas .bb-colwrap.bb-hover-resize .bb-resize-zone,
.mode-styling #canvas .bb-cnode.is-resizing .bb-resize-zone,
.mode-styling #canvas .bb-colwrap.is-resizing .bb-resize-zone{
  opacity:1;
}

.mode-styling #canvas .bb-cnode.bb-hover-resize .bb-resize-handle,
.mode-styling #canvas .bb-cnode.bb-hover-resize .bb-resize-full,
.mode-styling #canvas .bb-colwrap.bb-hover-resize .bb-resize-handle,
.mode-styling #canvas .bb-colwrap.bb-hover-resize .bb-resize-full,
.mode-styling #canvas .bb-cnode.is-resizing .bb-resize-handle,
.mode-styling #canvas .bb-colwrap.is-resizing .bb-resize-handle{
  opacity:1;
  pointer-events:auto;
}

.mode-styling #canvas .bb-cnode.is-resizing .bb-resize-full,
.mode-styling #canvas .bb-colwrap.is-resizing .bb-resize-full{
  opacity:1;
  pointer-events:auto;
}

.mode-styling #canvas .bb-cnode.is-resizing .bb-resize-zone,
.mode-styling #canvas .bb-colwrap.is-resizing .bb-resize-zone{
  background:rgba(207,61,1,.16);
  border-color:rgba(207,61,1,.58);
}

.mode-styling #canvas .bb-cnode .bb-resize-handle:hover,
.mode-styling #canvas .bb-colwrap .bb-resize-handle:hover{
  background:#fff7f3;
  transform:scale(1.03);
}

.mode-styling #canvas .bb-cnode .bb-resize-full:hover,
.mode-styling #canvas .bb-colwrap .bb-resize-full:hover{
  background:#fff7f3;
  transform:scale(1.02);
}

/* Wireframe mode */
#canvas.bb-wireframe-mode .bb-cnode,
#canvas.bb-wireframe-mode .bb-colwrap{
  border:1px solid #333 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

#canvas.bb-wireframe-mode .bb-cnode-body,
#canvas.bb-wireframe-mode .bb-children,
#canvas.bb-wireframe-mode .bb-colcontent{
  background:transparent !important;
}

#canvas.bb-wireframe-mode .bb-cnode + .bb-cnode{
  margin-top:var(--wf-gap,10px);
}

#canvas.bb-wireframe-mode .bb-empty-drop{
  display:none !important;
}

#canvas.bb-wireframe-mode .bb-cnode-head,
#canvas.bb-wireframe-mode .bb-coltag{
  display:none !important;
}

#canvas.bb-wireframe-content-none .bb-cnode[data-type=\"text\"],
#canvas.bb-wireframe-content-none .bb-cnode[data-type=\"heading\"],
#canvas.bb-wireframe-content-none .bb-cnode[data-type=\"button\"],
#canvas.bb-wireframe-content-none .bb-cnode[data-type=\"image\"]{
  display:none !important;
}

#canvas.bb-wireframe-content-featured .bb-cnode[data-type=\"button\"]{
  display:none !important;
}

@media print {
  body * { visibility: hidden !important; }
  #canvas, #canvas * { visibility: visible !important; }
  #canvas {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    padding: 16px;
    background: #fff !important;
  }
}
