#ae-toolbar img,

.ae-toolbar-logo {
    height: 32px;
    width: auto;
    display: block;
    margin-right: 10px;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

/* Pattern ONLY when toggle is ON */
#ae-styleboard-canvas-wrapper.ae-pattern-on {
    background-image: radial-gradient(#ccc 1px, transparent 0);
    background-size: 30px 30px;
    background-position: 0 0;
}

body.page-template-styleboard-canvas {
    margin: 0 !important;
    padding: 0 !important;
}

#main-container,
#container {
    padding: 0 !important;
    margin: 0 !important;
}

.ae-toolbar-logo-wrap {
    height: 73px;
    width: 73px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    margin: 0;
    padding: 0;
}

.ae-toolbar-logo-wrap img {
    height: 100%;
    width: auto;
    display: block;
}

/* Stronger, consistent shadow */
:root {
    --ae-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ae-floating-logo {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ae-box-shadow);
    padding: 0;
    background: white;
    cursor: pointer;
}

.ae-floating-logo img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.ae-floating-sidebar {
  position: fixed;
  top: 65px;
  left: 15px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  gap: 10px;
}

.ae-sidebar-group-select {
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ae-sidebar-group-main {
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ae-sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e1e1e1;
  cursor: pointer;
  background: white;
}

.ae-sidebar-group-select .ae-sidebar-icon:first-child,
.ae-sidebar-group-main .ae-sidebar-icon:first-child {
  border-top: none;
}

.ae-sidebar-icon img {
  opacity: 0.2;
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
  transition: filter 0.2s ease;
}

/* Main sidebar icons - explicit on/off state */
.ae-main-icon--on img {
  opacity: 1;
  filter: brightness(0.3);
}

.ae-main-icon--off img {
  /* nothing extra, they use the base greyed out style */
}

/* Active sidebar icon */
.ae-sidebar-icon.active {
  background-color: #FF6D46;
}

.ae-sidebar-group-undo {
  margin-top: 24px; /* Same gap as between Select and the main icons */
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ae-sidebar-group-undo .ae-sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e1e1e1;
  cursor: pointer;
  background: white;
}

.ae-sidebar-group-undo .ae-sidebar-icon:first-child {
  border-top: none;
}

.ae-sidebar-group-undo .ae-sidebar-icon img {
  opacity: 0.2;
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
  transition: filter 0.2s ease;
}

.ae-sidebar-group-undo .ae-sidebar-icon:hover img {
  opacity: 0.8;
  filter: brightness(0.3);
}

.ae-sidebar-group-undo {
  margin-top: 0px;
}

/* === PRODUCT Toolbar === */

.ae-product-toolbar{
  position:absolute;
  z-index:100;
  pointer-events:auto;
  background:transparent;
  padding:0;
  margin-top:20px;
}

/* Stack: label on top, row under */
.ae-toolbar-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
}

.toolbar-label{
  font-size:13px;
  font-weight:500;
  color:#2d2d2d;
  padding-left:4px;
}

.toolbar-row{
  display:flex;
  align-items:center;
  gap:10px; /* this is the gap between the 3 containers */
}

/* The 3 “containers” */
.toolbar-top,
.toolbar-actions,
.toolbar-layer-row{
  display:flex;
  align-items:center;
  gap:0;
  background:#fff;
  box-shadow:0 2px 4px rgba(0,0,0,0.06);
  overflow:hidden;
}

/* All toolbar buttons */
.ae-product-toolbar button{
  border:none;
  border-left:1px solid #e1e1e1;
  background:#fff;
  padding:6px;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.ae-product-toolbar .toolbar-top button:first-child,
.ae-product-toolbar .toolbar-actions button:first-child,
.ae-product-toolbar .toolbar-layer-row button:first-child{
  border-left:none;
}

.ae-product-toolbar button img{
  width:18px;
  height:18px;
  object-fit:contain;
  display:block;
}

/* Mode toggle styling */
.ae-product-toolbar .mode-toggle{
  background-color: #fff;
}

.ae-product-toolbar .mode-toggle img{
  opacity:1;
}

.ae-product-toolbar .mode-toggle.active{
  background:#FF6D46;
}

.ae-product-toolbar .mode-toggle.active img{
  filter:invert(100%) brightness(200%) contrast(100%);
  opacity:1;
}

/* Disabled buttons */
#ae-product-toolbar button[disabled],
#ae-product-toolbar button.disabled{
  cursor:default;
  opacity:0.3;
}

/* Crop disabled look (keep your behavior) */
.ae-product-toolbar button[data-action="crop"].disabled{
  pointer-events:none !important;
  opacity:0.3 !important;
  cursor:default !important;
}

.ae-product-toolbar button[data-action="crop"].disabled img{
  filter:grayscale(100%) brightness(80%) !important;
  opacity:0.4 !important;
}

.rotate-90{ transform:rotate(90deg); }

.ae-topview-size-select {
    background: #fff;
    border: none;
    height: 30px;
    font-size: 12px!important;
    margin-bottom: 0!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* === LAYOUT (WALL) TOOLBAR === */

#ae-layout-toolbar {
  position: absolute;
  display: none;
  background: transparent;
  z-index: 100;
  pointer-events: auto;
  padding: 0;
}

/* stack + label ("Wall") */
#ae-layout-toolbar .ae-toolbar-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0; /* title tight to toolbar */
}

#ae-layout-toolbar .toolbar-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* MAIN BAR: lock + dropdown + copy + delete */
#ae-layout-toolbar .toolbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #ffffff;
  padding: 0;
  gap: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  height: 30px; /* requested height */
}

#ae-layout-toolbar .toolbar-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: none;
  border-left: 1px solid #e1e1e1;
  background: #ffffff;
}

#ae-layout-toolbar .toolbar-actions button:first-child {
  border-left: none;
}

/* Wall type dropdown cell */
#ae-layout-toolbar .ae-walltype-block {
  display: flex;
  align-items: center;
  padding: 0;                  /* no inner gap so it sticks to toolbar */
  border-left: 1px solid #e1e1e1;
  background: #ffffff;
  height: 100%;
  min-width: 200px;            /* minimum width */
  flex: 0 0 200px;             /* section is 200px wide */
  box-sizing: border-box;
}

#ae-layout-toolbar .ae-walltype-block select {
  width: 100%;                 /* fill the whole cell */
  height: 100%;                /* same height as the toolbar (30px) */
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  padding: 0 10px;             /* inner padding instead of block padding */
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
}

/* LAYER BUTTONS – same line, small gap, same height */
#ae-layout-toolbar .toolbar-layer-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  height: 30px;
}

#ae-layout-toolbar .toolbar-layer-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: none;
  border-left: 1px solid #e1e1e1;
  background: #ffffff;
}

#ae-layout-toolbar .toolbar-layer-row button:first-child {
  border-left: none;
}

/* Board orientation dropdown cell */
#ae-board-toolbar .ae-board-orientation-control {
  display: flex;
  align-items: left;
  padding: 0 0 0 8px;   /* remove extra right padding */
  border-left: 1px solid #e1e1e1;
  background: #ffffff;
  height: 100%;
  width: 120px;          /* match title width */
  box-sizing: border-box;
  height:30px;
}

#ae-board-toolbar .ae-board-orientation-control select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;          /* fill the 90px container */
  min-width: 120px;
  max-width: 120px;
  text-align: left;
  box-sizing: border-box;
  height:30px;
}

/* ICON SIZING */
#ae-layout-toolbar img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* === SHAPE TOOLBAR === */

#ae-shape-toolbar {
  position: absolute;
  display: none;
  background: transparent;
  z-index: 100;
  pointer-events: auto;
  padding: 0;
}

#ae-shape-toolbar .toolbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  padding: 0;
  gap: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06); /* same as product toolbar */
}

#ae-shape-toolbar .toolbar-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  border-left: 1px solid #e1e1e1;
  background: white;
}

#ae-shape-toolbar .toolbar-actions button:first-child {
  border-left: none;
}

/* === Stroke / Fill Controls === */
.ae-toolbar-control {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-left: 1px solid #e1e1e1;
  background: white;
  height: 30px;
}

.ae-arrow-left {
  padding: 6px 0 6px 0 !important;
  border-left: none !important;
}

.ae-arrow-right {
  padding: 6px 0 6px 0 !important;
  border-left: none !important;
}


.ae-toolbar-control:first-child {
  border-left: none;
}

.ae-toolbar-control img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
  opacity: 0.8;
}

.ae-toolbar-value {
  font-size: 13px;
  font-weight: 500;
  color: #2d2d2d;
  min-width: 32px;
  text-align: center;
}

/* Fill Color Circle */
.ae-fill-preview {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #999;
  background: black;
}

.ae-color-trigger {
  cursor: pointer;
  position: relative;
  margin-bottom:0 !important;
}

.ae-color-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e1e1e1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 4px;
  border-radius: 4px;
  z-index: 9999;
}

.ae-color-dropdown input[type="color"] {
  width: 100%;
  height: 28px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
  display: block;
}

.ae-toolbar-control-group {
  position: relative;
}

.ae-color-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.ae-color-input {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  margin: 0; /* ✅ No vertical margin here */
}

#ae-shape-toolbar img {
  opacity: 0.99; /* 🔧 Forces filter to render in some browsers */
}


@keyframes icon-feedback-scale-only {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* For regular icons */
.ae-product-toolbar button img.animate-feedback:not(.rotate-90) {
  animation: icon-feedback-scale-only 300ms ease;
  will-change: transform, opacity;
}

/* For icons that are rotated */
.ae-product-toolbar button img.animate-feedback.rotate-90 {
  animation: icon-feedback-scale-only-rotated 300ms ease;
  will-change: transform, opacity;
}

@keyframes icon-feedback-scale-only-rotated {
  0%   { transform: rotate(90deg) scale(1); opacity: 1; }
  50%  { transform: rotate(90deg) scale(0.8); opacity: 0.6; }
  100% { transform: rotate(90deg) scale(1); opacity: 1; }
}

/* === Sidebar Panels (Submenu + Products) === */
.ae-sidebar-panel {
  position: fixed;
  top: 65px; /* aligns with floating sidebar */
  left: 65px;
  bottom:15px;
  z-index: 998;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 0px;
  padding: 0px;
  width: 320px; /* same width for both panels */
  max-height: calc(100vh - 65px); /* gives breathing room */
  overflow-y: auto;
  overflow-x: hidden;
}

.ae-sidebar-panel-title {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white; /* Or your sidebar bg colour */
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
}

/* ðŸ”’ Force hide scrollbar in WebKit unless hovering */
.ae-sidebar-panel {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}

.ae-sidebar-panel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}

.ae-sidebar-panel::-webkit-scrollbar-thumb {
  background-color: transparent;
}

.ae-sidebar-panel:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
}


/* Title */
.ae-sidebar-panel-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0px;
  color: #2d2d2d;
  padding: 9px 20px 6px 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === AE Panel 1 (Types list) — nicer look, non-destructive overrides === */

/* Room headers */
.ae-sidebar-submenu-list .ae-submenu-room {
  pointer-events: none;              /* keep them non-clickable */
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b5b5b5;
  padding: 8px 20px 6px 20px;       /* match panel padding feel */
  background: none;
  border-top: 1px solid #eee;
}

/* Space between groups */
.ae-sidebar-submenu-list .ae-submenu-room:not(:first-child) {
  margin-top: 6px;
}

/* Type items (clickable) */
.ae-sidebar-submenu-list li[data-term] {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 24px;                /* bigger tap target */
  margin: 0;                   /* inner breathing room */
  border: none solid transparent;     /* for hover/active outline */
  border-radius: 0px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  background: #fff;
}

/* Remove the old bottom rule on these items only */
.ae-sidebar-submenu-list li[data-term] { border-bottom: none !important; }

/* Hover feedback */
.ae-sidebar-submenu-list li[data-term]:hover {
  background: #f6f6f6;
  border-color: #e7e7e7;
}

/* Press feedback (tiny) */
.ae-sidebar-submenu-list li[data-term]:active {
  transform: translateY(1px);
}

/* Keyboard focus */
.ae-sidebar-submenu-list li[data-term]:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Optional: subtle chevron on the right (pure CSS) */
.ae-sidebar-submenu-list li[data-term]::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid #bdbdbd;
  border-top: 2px solid  #bdbdbd;
  transform: rotate(45deg);
  margin-left: 12px;
}

/* Compact the default list padding so the new margins look correct */
.ae-sidebar-submenu-list {
  padding: 0 !important;
}

/* === Product Grid === */
.ae-sidebar-product-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-sizing: border-box;
}

#ae-product-grid {
    display:block;
    width:100%;
}

#ae-product-grid-rugs {
    display:block;
    width:100%;
}

#ae-product-grid-lighting {
    display:block;
    width:100%;
}

.ae-product-thumb {
  aspect-ratio: 1 / 1;
  border-right: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 12px;
  box-sizing: border-box;
}

.ae-product-thumb:nth-child(2n) {
  border-right: none;
}

.ae-product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ae-sidebar-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #2d2d2d;
}

.ae-breadcrumb-link {
  text-decoration: none;
  color: #2d2d2d;
  cursor: pointer;
}

.ae-breadcrumb-link:hover {
  text-decoration: underline;
}

.ae-breadcrumb-icon {
  width: 12px;
  height: auto;
  display: inline-block;
  opacity: 0.4;
  margin-bottom: 1px;
}

.ae-load-more-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  font-size: 14px;
  background-color: #FF6D46;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  margin: 20px;
}

.ae-load-more-btn:hover {
  background-color: #e65b38;
}

/* AE: Panel 2 product tiles — hover bg only (non-destructive) */
.ae-product-thumb {
  transition: background 0.15s ease; /* smooth hover */
}

.ae-product-thumb:hover {
  background: #f6f6f6; /* same vibe as Panel 1 */
}

/* optional: keyboard focus (no layout changes) */
.ae-product-thumb:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}


#ae-load-more-products {
width: 212px;
    border-radius: 30px;
    border: 1px solid #2d2d2d;
    margin: 20px auto 0 auto;
    padding: 2px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    background: white;
    color: #2d2d2d;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.ae-sidebar-icon.active img {
  filter: invert(100%) brightness(200%) contrast(100%) !important;
  opacity: 1 !important;
}

/* Active icon â€” orange */
.ae-sidebar-icon.active img {
    opacity: 1 !important;
    filter: invert(100%) brightness(200%) contrast(100%) !important;
}

.ae-floating-canvasbar {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 1000;
  background: white;
  display: flex;
  align-items: center;
  box-shadow: var(--ae-box-shadow);
}

.ae-canvasbar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e1e1e1;
  cursor: pointer;
  background: white;
}

  .ae-bottom-right-controls{
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    display: flex;
    gap: 10px; /* ← your requested gap between history and canvas bar */
    z-index: 9990;
  }
  .ae-floating-history,
  .ae-floating-canvasbar{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
/* === Boards Panel === */
.ae-board-grid {
  width: 100%;
  display: block;           /* one board per row */
  box-sizing: border-box;
}

/* One row = 2-column grid: thumb left, info right */
.ae-board-item {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;  /* smaller thumbnail column */
  column-gap: 18px;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #e1e1e1;
  box-sizing: border-box;
}

/* last row: no extra bottom rule */
.ae-board-item:last-child {
  border-bottom: none;
}

/* Thumbnail column */
.ae-board-thumb {
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
  border: 0;
  background: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Square container so rows stay even */
.ae-board-thumb::before {
  content: "";
  display: block;
  padding-top: 100%;          /* always square */
}

/* Inner rectangle to show orientation */
.ae-board-thumb::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  border: 1px solid #b3b3b3;
  background: #ffffff;
  opacity: 0.9;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Landscape inner frame: wider than tall */
.ae-board-thumb.is-landscape::after {
  width: 100%;
  height: 66%;
}

/* Portrait inner frame: taller than wide */
.ae-board-thumb.is-portrait::after {
  width: 66%;
  height: 100%;
}

/* Text inside thumbnail: centered */
.ae-board-thumb-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 12px 6px 6px 6px;
  z-index:1;
}

/* Name inside thumb: Noto Sans bold, bigger */
.ae-board-thumb-name {
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #2d2d2d;
  line-height: 1.2;
}

/* Orientation inside thumb: Questrial, smaller, capitalized text already in HTML */
.ae-board-thumb-orientation {
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #555;
  margin-top: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Text column on the right */
.ae-board-meta {
  font-size: 12px;
  line-height: 1.3;
}

/* Name on right: Noto Sans bold, slightly larger */
.ae-board-name {
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #2d2d2d;
  margin-bottom: 1px;
}

/* Orientation on right: Questrial, slightly larger */
.ae-board-orientation {
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1;
}

/* Print size line */
.ae-board-size {
  color: #555;
}

/* PPI line: only "@ 300 ppi" */
.ae-board-ppi {
  color: #777;
  font-size: 11px;
  margin-top: 2px;
}

/* Button: + STYLEBOARD */
.ae-board-add-btn {
  background: none;
  color: #2d2d2d;
  border: 1px solid #2d2d2d;
  padding: 2px 15px 0px 15px;
  font-size: 12px;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  line-height: 10px;
  background-color: #ececec;
  font-weight: bold;
  height: 22px;
  margin-top: 10px;      /* keep a bit of space under the text */
}

.ae-board-add-btn.added {
  background-color: #b7b7b7 !important;
  cursor: default;
}

.ae-board-add-btn:hover {
  background: #f6f6f6;
}
  
  /* History icons: match canvas bar look */
  
    .ae-floating-history {
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
  }
  
.ae-floating-history .ae-canvasbar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  cursor: pointer;
  border-left: 1px solid #e1e1e1;

}

/* Remove border on the very first history icon */
.ae-floating-history .ae-canvasbar-icon:first-child {
  border-left: none;
}
  
  .ae-floating-history .ae-canvasbar-icon img{
    width: 24px; height: 24px;
  }


.ae-canvasbar-icon:first-child {
  border-left: none;
}

.ae-canvasbar-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
  opacity: 0.8;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.ae-canvasbar-icon:hover img {
  filter: brightness(0.3);
  opacity: 1;
}

.ae-zoom-display {
  font-size: 12px;
  font-weight: 600;
  color: #2d2d2d;
  padding: 0 12px;
  cursor: default;
}

/* Canvas settings active state */
.ae-floating-canvasbar .ae-canvasbar-icon.ae-active {
  background-color: #FF6D46;
}

.ae-floating-canvasbar .ae-canvasbar-icon.ae-active img {
  filter: brightness(0) invert(1);
}

/* === Units toggle (M / IMP) === */
#ae-units-toggle {
  font-size: 12px;          /* smaller text */
  font-weight: 600;         /* bold */
  color: #2d2d2d;           /* dark text */
  letter-spacing: 0.06em;   /* a bit of spacing so "IMP" looks nicer */
}

/* Keep units toggle background white even when active */
#ae-units-toggle.ae-active {
  background: white !important;
}

/* Make sure text stays dark in imperial as well */
#ae-units-toggle.ae-units-imperial {
  color: #2d2d2d;
}


/* === Bottom-right QUOTE button === */
.ae-quote-trigger{
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 12px;
  background:#fff;
  cursor:pointer;
  user-select:none;
  box-shadow: var(--ae-box-shadow);
  font-size:12px;
  color:#2d2d2d;
  letter-spacing:1px;
  width:200px;
  font-weight:600;
}

/* put QUOTE all the way to the right in the bar */
.ae-bottom-right-controls{
  display:flex; /* already set, safe to repeat */
}
.ae-quote-trigger{
  order:99;          /* last item */
  margin-left:auto;  /* push it to the edge */
}

/* === AE: Floating User Avatar (icon-only) === */
.ae-floating-avatar {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--ae-box-shadow);
  overflow: hidden;
  cursor: pointer;
}

.ae-floating-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;     /* show the SVG correctly inside the circle */
  padding: 10px;            /* breathing room around the icon */
  box-sizing: border-box;  /* stays within 40x40 including padding */
  font-weight: 700;
}

.ae-user-letter{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  background:#FF6D46;
  color:#ffffff;
  font-size:18px;
  font-weight:700;
  text-transform:uppercase;
  line-height:1;
  border-radius:0;
}
.ae-floating-avatar a{
  display:block;
}

#ae-styleboard-name {
  position: fixed;
  top: 15px;
  left: 55px;
  height: 40px;
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 999;
  pointer-events: none;
}

#ae-styleboard-name.open {
  width: 331px;
  pointer-events: auto;
}

#ae-styleboard-name input {
  height: 40px;
  width: 100%;
  border: none;
  padding: 11px 12px 10px 15px;
  font-size: 14px !important;
  box-shadow: none;
  background: #fff;
  color: #2d2d2d;
  font-weight: 500;
  margin: 0;
  box-sizing: border-box;
}

/* === Styleboard name + Export button === */
.ae-styleboard-name {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  box-shadow: none;    /* keep this */
  height: 40px;
}

/* Make the input take remaining space */
.ae-styleboard-name input[type="text"] {
  flex: 1;
  min-width: 0;       /* avoid overflow */
}

/* Export button next to the input */
.ae-export-btn {
  border: none;
  background: #fff;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  box-shadow: none;
  box-sizing: border-box;
}

.ae-export-btn img {
  display: block;
  width: 24px;
  height: 24px;
}

/* === THUMBNAIL CAROUSEL === */
#ae-panel-thumbs {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: 100%;
  scrollbar-width: none; /* Firefox */
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  pointer-events: auto;
  padding: 0;
}

#ae-panel-thumbs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

#ae-panel-thumbs img.ae-thumb-img {
  width: 74px !important;
  height: 74px !important;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-block;
  position: relative;
  z-index: 10;
  user-select: none;
  cursor: pointer;
  padding: 5px;
  margin: 0 !important;
  opacity: 0.6;
  border: none;
  border-right: 1px solid #e1e1e1;
}

/* Remove right border on last thumbnail */
#ae-panel-thumbs img.ae-thumb-img:last-child {
  border-right: none;
}

/* Selected thumbnail: full opacity, no border */
#ae-panel-thumbs img.ae-thumb-img.active-thumb {
  opacity: 1;
}

/* === BACK LINK === */
.ae-back-link {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  padding: 12px 20px;
  border-bottom: 1px solid #dddddd;
}

.ae-back-link a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #2d2d2d;
}

/* === PANEL TITLE === */
.ae-sidebar-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2d2d2d;
  padding: 13px 20px 11px 20px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === BREADCRUMB === */
.ae-breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 600;
  font-size: 14px;
}

.ae-breadcrumb-icon {
  width: 12px;
  opacity: 0.4;
  display: inline-block;
  margin-bottom: 1px;
}

/* === STYLEBOARD BUTTON === */
.ae-add-styleboard {
  background: none;
  color: #2d2d2d;
  border: 1px solid #2d2d2d;
  padding: 2px 15px;
  font-size: 12px;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  line-height: 10px;
  background-color: #ececec;
  font-weight: bold;
  height: 24px;
}

/* ✓ ADDED state */
.ae-add-styleboard.added {
  background-color: #b7b7b7 !important;
  cursor: default;
}

/* Button wrapper inside image */
.ae-product-main-image {
  position: relative;
}

.ae-add-styleboard-wrapper {
  position: absolute;
  bottom: 85px;
  right: 10px;
  z-index: 10;
}

/* PRODUCT INFO */
.ae-product-info {
    padding: 5px 15px;
}

h2#ae-panel-name {
    font-family: 'Noto Sans'!important;
    margin-bottom:0!important;
    font-size:24px!important;
    line-height: 26px!important;
}

p#ae-panel-brand {
    font-weight: 700!important;
    font-size: 16px!important;
    color: #9d9d9d!important;
    margin-bottom:10px;
}

.ae-chevron-wrapper {
  position: absolute;
  bottom: 80px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 15;
}

.ae-panel-chevron {
  width: 25px;
  height: 35px;
  background: white;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1; /* doesn't need to be high here */
}

.ae-panel-chevron img {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  filter: brightness(0);
  transition: opacity 0.2s ease;
}

.ae-panel-chevron:hover img {
  opacity: 1;
}

.ae-panel-chevron.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.ae-product-variations {
    margin-bottom:10px;
}

.ae-product-option-group {
  margin: 30px 0 0 0;
}

/* Fabric Process Button Styles */
.ae-fabric-process-wrapper {
    padding: 0;
    background: none;
    border-radius: 30px;
    border: 0;
    margin: 20px 0 0 0;
}

.ae-process-fabric-btn {
    width: 100%;
    padding: 14px 24px;
    background: none;
    color: white;
    border: none;
    border-radius: 30px;
    border:solid 1px #b9b9b9;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height:40px;
    text-transform: uppercase;
    letter-spacing:1px;
    color:#b9b9b9;
}

.ae-process-fabric-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: none;
}

.ae-process-fabric-btn:disabled {
    background: none;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.ae-process-fabric-btn.processing {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-icon {
    font-size: 20px;
    line-height: 1;
}

.btn-text {
    font-size: 15px;
}

.ae-process-status {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
    background: white;
    min-height: 20px;
}

.ae-process-status:empty {
    display: none;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(0.98);
    }
}

.ae-process-status.ready {
    color: #4CAF50;
    background: #e8f5e9;
    border: 1px solid #4CAF50;
}

.ae-process-status.warning {
    color: #ff9800;
    background: #fff3e0;
    border: 1px solid #ff9800;
}

.ae-process-status.processing {
    color: #2196F3;
    background: #e3f2fd;
    border: 1px solid #2196F3;
}

.ae-process-status.error {
    color: #f44336;
    background: #ffebee;
    border: 1px solid #f44336;
}

.ae-process-status.success {
    color: #4CAF50;
    background: #e8f5e9;
    border: 1px solid #4CAF50;
}

.ae-product-option-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 14px;
  color: #2d2d2d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ae-panel-info-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: #2d2d2d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ae-option-btn {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 4px;
  margin-bottom: 4px;
  border: 1px solid #999;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  
}

.ae-option-btn:hover {
  border-color: #000;
}

.ae-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ae-swatch {
  width: 92px;
  height: 92px;
  border: 1px solid #999;
  cursor: pointer;
  transition: border-color 0.2s ease;
  padding:0;
  margin-bottom:42px;
}

.ae-swatch-label {
    font-size: 12px;
    line-height: 13px;
    padding-top: 4px;
}

.ae-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ae-swatch:hover {
  border-color: #000;
}

.ae-quote-btn-wrapper {
  margin-top: 0;
  text-align: center;
}

.ae-add-quote-btn {
  width: 100%;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 400;
  background: #2d2d2d;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom:6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius:30px;
}

.ae-add-quote-btn:enabled {
  opacity: 1;
}

#ae-add-to-quote.disabled,
#ae-add-to-quote:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Add to Quote pulse state */
.ae-add-quote-btn.ae-quote-pulse {
  background-color: #FF6D46;
  border-color: #FF6D46;
  color: #ffffff;
}

/* Updated swatch + option selection style */
.ae-swatch.selected,
.ae-option-btn.selected {
  border-color: #FF6D46 !important;
  outline: 2px solid #FF6D46 !important;
  outline-offset: 0;
  box-shadow: none !important;
}

.ae-divider {
  border: none;
  border-top: 1px solid #e1e1e1;
  margin: 10px -20px; /* pushes beyond padding */
}

.ae-product-info .ae-divider {
  margin-left: -16px;
  margin-right: -16px;
}

#ae-panel-shortdesc-table h6{
    font-size: 16px!important;
    line-height:19px!important;
    margin:0!important;
}

#ae-panel-shortdesc-table table tr > th:first-child,
#ae-panel-shortdesc-table table tr > td:first-child {
    vertical-align: top;
}

#ae-panel-shortdesc-table p{
    font-size: 14px!important;
    line-height:16px!important;
    margin:0!important;
}

#ae-panel-shortdesc-table a{
    font-size: 14px!important;
    line-height:16px!important;
    margin:0!important;
}

#ae-panel-shortdesc-table td {
    border:none!important;
}

#ae-panel-shortdesc-table table {
    border:none!important;
    margin-bottom:20px;
}

/* Spacing between each DETAILS line */
#ae-panel-shortdesc-table table tr:last-child td:last-child p {
    margin: 0 0 5px 0!important;
}

.ae-hidden-line {
  display: none;
}

.ae-panel-info {
  font-size: 14px;
  padding: 6px 0;
}

.ae-panel-info strong {
  font-weight: 600;
  display: inline-block;
  width: 120px;
}

.ae-panel-desc {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.ae-panel-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  border:none;
}

.ae-panel-info-table th {
  text-align: left;
  font-weight: 400;
  padding: 2px 8px 2px 0;
  white-space: nowrap;
  vertical-align: top;
  width: 40%;
    text-transform: lowercase;
    font-size: 16px;
    font-family: 'Noto Sans';
}

.ae-panel-info-table td {
  padding: 4px 0;
  vertical-align: middle;
  border:none;
  line-height: 20px;
    font-size: 14px;
}

.ae-panel-product-link {
  margin-top: 16px;
  text-align: left;
}

.ae-panel-product-link a {
  display: block;
  width: 100%;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 400;
  color: #2d2d2d;
  background: none;
  border: 1px solid #2d2d2d;
  border-radius: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom:20px;
}

.ae-panel-product-link a:hover {
      color: #000;
    border: 1px solid #000;
}

/*shapes pannel*/

#ae-shape-panel {
  position: absolute;
  top: 395px;
  left: 65px;
  width: 40px;
  background: white;
  padding: 0;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  z-index: 1000;
  display: none;
}

.ae-shape-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e1e1e1;
  cursor: pointer;
}

.ae-shape-icon img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.ae-shape-icon:last-child {
  border-bottom: none;
}

/* active shape tool (Rectangle / Line / Poly / Circle) */
.ae-shape-icon.active {
  background: #ff6d46; /* same orange as layouts */
}

.ae-shape-icon.active img {
  filter: brightness(0) invert(1); /* turn icon white */
}

/* layouts panel */

#ae-layout-panel {
  position: absolute;
  top: 115px;
  left: 65px;
  width: 40px;
  background: white;
  padding: 0;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  z-index: 1000;
  display: none;
}

.ae-layout-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e1e1e1;
  cursor: pointer;
}

.ae-layout-icon img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.ae-layout-icon:last-child {
  border-bottom: none;
}

/* grey out disabled items (Door, Window) */
.ae-layout-icon.ae-layout-disabled {
  opacity: 0.3;
  cursor: default;
}

/* active layout tool (Wall/Room) */
.ae-layout-icon.active {
  background: #ff6d46;       /* same orange as the UI */
}

.ae-layout-icon.active img {
  filter: brightness(0) invert(1);  /* turn icon white */
}


/* === GROUP / MULTI-SELECT TOOLBAR — match product toolbar === */

/* Use the same layout + shadow as product toolbar */
#ae-group-toolbar.ae-product-toolbar .toolbar-row { gap: 10px; }
#ae-group-toolbar.ae-product-toolbar .toolbar-actions {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  display: flex;
  gap: 0;
  padding: 0;
}

/* Buttons inside containers: identical to product toolbar */
#ae-group-toolbar.ae-product-toolbar .toolbar-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  border-left: 1px solid #e1e1e1;
  background: #fff;
  cursor: pointer;
}
#ae-group-toolbar.ae-product-toolbar .toolbar-actions button:first-child {
  border-left: none;
}
#ae-group-toolbar.ae-product-toolbar .toolbar-actions button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* Fixed-width GROUP/UNGROUP button so width doesn't change */
#ae-group-toolbar .group-toggle-btn {
  min-width: 140px;             /* keep size constant */
  height: 30px;                  /* match icon-row height (18px icon + 6px + 6px padding) */
  line-height: 18px;
  font-size: 14px;
  text-align: left;
  padding: 6px 14px;
  border: 1px solid #e1e1e1;
  background: #fff;
  cursor: pointer;
  font-weight:700;
  color:#2d2d2d;
  letter-spacing:1px;
  opacity: 0.8;
}

/* === Blueprints panel (clean) === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap');

/* Panel scroll: edge-to-edge, no inner padding, hide scrollbar */
#ae-blueprints-panel .ae-bp-scroll{
  padding: 0;
  max-height: calc(100vh - 140px);
  overflow: auto;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/old Edge */
}
#ae-blueprints-panel .ae-bp-scroll::-webkit-scrollbar{ display: none; }

/* Edge-to-edge list */
.ae-bp-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Card: only bottom border, no radius, no shadow */
.ae-bp-card{
  background: #fff;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
  box-shadow: none;
}

/* Thumbnail (4:3), no rounding */
.ae-bp-thumbwrap{
  width: 100%;
  aspect-ratio: 4 / 3; /* 600x450 */
  background: #f3f3f3;
  overflow: hidden;
  border-radius: 0;
}
.ae-bp-thumbwrap .ae-bp-thumb{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Meta */
.ae-bp-meta{ padding: 10px 12px 14px; }

/* Title: Noto Sans */
.ae-bp-title{
  font-family: "Noto Sans";
  font-size: 20px;
  line-height: 1.3;
  margin: 5px 0 0px;
  color: #222;
}

/* Subtext */
.ae-bp-sub{
color: #969696;
    font-size: 16px;
    margin: 5px 0 10px 0;
    font-weight: 400;
    line-height: 1.2;
}

/* Actions */
.ae-bp-actions{
  display: grid;
  grid-template-columns: calc(65% - 8px) 35%;  /* ← widths: first 65%, second 35% */
  gap: 8px;
  padding: 0px 0px 30px 0px;
}

.ae-bp-actions .ae-bp-use,
.ae-bp-actions .ae-bp-preview{
  appearance: none;
  border-radius: 30px;          /* pill */
  padding: 3px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

/* First button: #2d2d2d */
.ae-bp-actions .ae-bp-use{
  background: #2d2d2d;
  color: #fff;
  border: 1px solid #2d2d2d;
}

/* Second button: transparent, black text + black border */
.ae-bp-actions .ae-bp-preview{
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

/* Optional hovers */
.ae-bp-actions .ae-bp-use:hover{
  background: #1f1f1f;
  border-color: #1f1f1f;
}
.ae-bp-actions .ae-bp-preview:hover{
  background: #000;
  color: #fff;
}

/* ===========================
   BLUEPRINT PREVIEW OVERLAY
   =========================== */

/* Full-screen overlay, blurred background */
.ae-bp-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;                 /* JS sets this to flex when open */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Dialog container */
.ae-bp-preview-dialog {
  position: relative;
  background: #ffffff;
  max-width: 1150px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Close button (top right) */
.ae-bp-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.ae-bp-preview-close img {
  display: block;
  width: 16px;
  height: 16px;
}

/* 70 / 30 body layout */
.ae-bp-preview-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Left image column */
.ae-bp-preview-image-wrap {
  flex: 7 1 0;
}

.ae-bp-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e5e5e5;
  background: #f7f7f7;
  object-fit: contain;
}

/* Right meta column */
.ae-bp-preview-meta {
  flex: 3 1 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: #2d2d2d;
}

/* Name (special class, so you can style differently) */
.ae-bp-name {
    margin: 15px 0 20px 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.25;
    font-family: 'Noto Sans';
}

/* Generic field wrapper */
.ae-bp-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height:1.25;
}

/* Field label (ROOM, STYLE, etc.) */
.ae-bp-label {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b5b5b5;
}

/* Field value */
.ae-bp-value {
  font-size: 14px;
  color: #2d2d2d;
  Height:30px;
}

/* Components list */
.ae-bp-components {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ae-bp-component-chip {
  font-size: 12px;
  color: #2d2d2d;
  Height:25px;
}

/* Insert button */
.ae-bp-actions {
  margin-top: 8px;
}

.ae-bp-insert-btn {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius:30px;
  height:40px;
  margin-top:12px;
}

/* Only the INSERT BLUEPRINT button inside the preview modal */
.ae-bp-preview-dialog .ae-bp-insert-btn {
  display: block;
  width: 100%;
}

/* Card image in the Blueprints list (left panel) */
.ae-bp-card .ae-bp-thumb {
  cursor: pointer;
}

/* Big image inside the preview modal */
.ae-bp-preview-overlay .ae-bp-preview-img {
  cursor: pointer;
}

/* Sidebar panels are hidden when aria-hidden="true" */
.ae-sidebar-panel[aria-hidden="true"]{
  display: none !important;
}

/* Force Undo/Redo icons to be fully visible */
.ae-floating-history img {
  opacity: 1 !important;
}

/* Reset layout for the actions row inside the PREVIEW dialog only */
.ae-bp-preview-dialog .ae-bp-actions {
  display: block;          /* kill the grid from the card list */
  grid-template-columns: none;
  padding: 0;
  margin-top: 12px;        /* adjust spacing as you like */
}

/* Make the INSERT button full width only in the preview dialog */
.ae-bp-preview-dialog .ae-bp-insert-btn {
  display: block;
  width: 100%;
}

/* === TEXT TOOLBAR — match product & shapes === */
#ae-text-toolbar {
  position: absolute;
  display: none;              /* shown by JS on select */
  background: transparent;
  z-index: 100;
  pointer-events: auto;
  padding: 0;
}

/* Main row looks like other toolbars */
#ae-text-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* 40×40 “cells” */
#ae-text-toolbar button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-left: 1px solid #e1e1e1;
  background: #fff;
  cursor: pointer;
}
#ae-text-toolbar button:first-child { border-left: none; }

#ae-text-toolbar button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

/* Wider font block, still 40px tall */
#ae-text-toolbar [data-type="font-block"] {
  height: 30px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 0;
  margin: 0; /* no extra space */
}
#ae-text-toolbar select#ae-text-font {
  flex: 1 1 auto;
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  appearance: none;
  font-size: 14px;
  margin:0;
  width:200px;
}

#ae-text-toolbar select#ae-text-font{
  width: 200px;
  max-width: 200px;
  min-width: 200px;
  box-sizing: border-box;
}

#ae-text-toolbar .ae-divider, #ae-text-toolbar-layers .ae-divider {
    display:none;
}

/* Size badge (same typographic feel as others) */
#ae-text-toolbar [data-type="font-size"] {
  font-size: 13px;
  font-weight: 500;
  color: #2d2d2d;
  min-width: 32px;
  text-align: center;
}

/* Colour button preview dot */
#ae-text-toolbar [data-action="fill"] { position: relative; }
#ae-text-toolbar .ae-fill-preview {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #999;
  position: absolute;
  right: 6px;
  bottom: 6px;
}

/* Vertical dividers only inside text toolbars */
#ae-text-toolbar .ae-divider,
#ae-text-toolbar-layers .ae-divider {
  width: 1px;
  height: 30px;
  background: #e1e1e1;
  margin: 0;
  border: none;
}

/* === TEXT LAYERS MINI BAR — same as group/product look === */
#ae-text-toolbar-layers {
  position: absolute;
  display: none;              /* shown by JS on select */
  background: transparent;
  z-index: 100;
  pointer-events: auto;
  padding: 0;
}
#ae-text-toolbar-layers {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
#ae-text-toolbar-layers button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-left: 1px solid #e1e1e1;
  background: #fff;
  cursor: pointer;
}
#ae-text-toolbar-layers button:first-child { border-left: none; }
#ae-text-toolbar-layers button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

/* Text toolbar: remove inner border on the right arrow */
#ae-text-toolbar button[data-action="font-size-inc"] {
  border-left: none !important;
}

/* === QUOTE PANEL === */
#ae-quote-panel {
  position: fixed;
  top: 15px;                                  /* force start near top */
  right: 15px;
  bottom: calc(66px + env(safe-area-inset-bottom));
  width: 500px;
  display: none;            /* toggled by JS */
  flex-direction: column;
  background: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 9999;
  pointer-events: auto;
  max-height: calc(100vh - 30px); /* 15px top + 15px bottom */
}

.ae-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #e1e1e1;
}

.ae-quote-title {
  font-weight: 600;
  font-size: 14px;
  color: #2d2d2d;
  text-transform:uppercase;
  
}

.ae-quote-close {
  border: none;
  background: #fff;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ae-quote-body {
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Group title: FURNITURE / RUGS / LIGHTING / ACCESSORIES */
.ae-quote-group-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .5px;
  color: #b5b5b5;
  padding:0 10px;
}

/* Card */
.ae-quote-card {
  background: #eeeeee;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 10px;
  position: relative;
}

.ae-quote-imgwrap {
  background: #fff;
  border: none;
  display: grid;
  place-items: center;
  height: 100%;
    aspect-ratio: 1 / 1;   /* ← add this */
  width: auto;           /* ← add this */
}

.ae-quote-imgwrap img {
      width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove (X) button, top-right of card */
.ae-quote-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: .8;
}

.ae-quote-name {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 2px;
  line-height:17px;
}

.ae-quote-brand {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 20px;
  margin-bottom: 22px;
}

/* Attribute grid: left/right columns like screenshot */
.ae-quote-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-items: start;
}

.ae-attr {
  font-size: 12px;
  color: #2d2d2d;
}

.ae-attr .ae-label {
  display: block;
  color: #888;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 500;
  line-height:2px;
}

.ae-attr .ae-value {
  font-size: 14px;
  color: #2d2d2d;
  vertical-align: bottom;
}

.ae-quote-details {
    padding-left:5px;
}

/* full-width attribute row (spans two columns) */
.ae-attr--full { grid-column: 1 / -1; }


/* Qty controls bottom-right of the card */
.ae-quote-qty {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2d2d2d;
}

.ae-qty-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Footer (totals + buttons) */
.ae-quote-foot {
  border-top: 1px solid #e1e1e1;
  padding: 10px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#ae-quote-totals {
  font-size: 13px;
  color: #2d2d2d;
}

.ae-quote-actions {
  display: flex;
  gap: 8px;
}

.ae-quote-btn {
  border: 1px solid #a3a3a3;
  background: #fff;
  height: 36px;
  cursor: pointer;
}

.ae-quote-btn--export { flex: 1; }
.ae-quote-btn--clear  { width: 110px; }

/* =========================
   QUOTE panel: breadcrumb
   ========================= */
.ae-quote-head{
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid #e9e9e9; padding:10px 12px;
}
.ae-quote-breadcrumb{
  display:flex; align-items:center; gap:8px;
  font-weight:600; letter-spacing:.02em; color:#2d2d2d;
  padding: 0 10px;
  font-size:14px;
}
.ae-breadcrumb-link{
  text-decoration:none; color:#2d2d2d; cursor:pointer;
}
.ae-breadcrumb-link:hover{ text-decoration:underline; }
.ae-breadcrumb-icon{ width:12px; height:12px; opacity:.5; }
.ae-quote-close{
  width:32px; height:32px; display:grid; place-items:center;
  border:none; background:#fff; cursor:pointer;
}

/* =========================
   REQUEST QUOTE form (in-panel)
   ========================= */
#ae-quote-panel.is-request .ae-quote-body{ padding:12px; }

/* Form container */
.ae-qr-form{ display:flex; flex-direction:column; gap:5px; padding:10px;}

/* Two-per-row pairs (Country|Province, City|Postal) */
.ae-qr-row{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
@media (max-width:560px){
  .ae-qr-row{ grid-template-columns:1fr; }
}

/* Label (small title) + field */
/* NEW: title and * stay on the same line */
.ae-qr-form label{
  display:block;            /* inline text + asterisk on one line */
  font-size:12px;
  color:#555;
  line-height:20px;
}

/* add a little space before the field */
.ae-qr-form label > input,
.ae-qr-form label > select{
  display:block;
  margin-top:0;
  width:100%;
}

/* asterisk sits right beside the title */
.ae-qr-form label .req{
  display:inline;
  margin-left:4px;
  color:#d11;
  font-weight:600;
}

/* Fields: same height, simple 1px border */
.ae-qr-form input,
.ae-qr-form select{
  height:40px; border:1px solid #cfcfcf; border-radius:0;
  padding:6px 10px; background:#fff; outline:none; box-shadow:none;
  font-size:14px;
}

/* Disabled option appearance */
.ae-qr-form select:disabled,
.ae-qr-form option:disabled{ color:#aaa; }

/* Red asterisk for required labels */
.req{ color:#d11; margin-left:4px; font-weight:600; }

/* Submit button inside the form (not sticky) */
.ae-qr-submit{
  width:100%; height:42px; border:1px solid #2d2d2d; border-radius:28px;
  background:#2d2d2d; color:#fff; font-weight:600; cursor:pointer; margin-top:4px;
}
.ae-qr-submit:hover{ filter:brightness(.95); }

/* Hide footer in Request Quote mode */
#ae-quote-panel.is-request .ae-quote-foot {
  display: none !important;
}

.ae-quote-btn .ae-qr-submit {
    margin-top: 0px !important;
    height: 45px !important;
    padding-top:11px !important;
}

.ae-quote-btn .ae-qr-submit:hover {
    margin-top: 0px !important;
    height: 40px !important;
    padding-top:10px !important;
}

.ae-qr-form label > input, .ae-qr-form label > select {
    height: 40px;
    border: 1px solid #cfcfcf;
    margin-bottom:0 !important;
}

/* Optional notes field */
.ae-qr-form textarea,
.ae-qr-notes-field {
  min-height: 96px;
  border: 1px solid #cfcfcf;
  padding: 8px 10px;
  outline: none;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  font-size: 14px;
  resize: vertical;  /* allow user to expand if needed */
}

/* keep the label spacing consistent for the notes block */
.ae-qr-notes > textarea {
  display: block;
  margin-top: 0px;
  margin-bottom:0 !important;
}

/* ------------- Breadcrumb: make QUOTE only clickable in request mode ------------- */
#ae-quote-panel:not(.is-request) .ae-breadcrumb-link {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

/* ------------- First panel (list) footer: sticky to bottom ------------- */
#ae-quote-panel:not(.is-request) .ae-quote-foot {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e9e9e9;
  z-index: 1; /* keeps it above card box-shadows */
}

/* Footer layout: totals left, buttons right */
#ae-quote-panel:not(.is-request) .ae-quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#ae-quote-totals { font-size: 14px; color: #444; }

/* Actions: 2/3 : 1/3 split */
#ae-quote-panel:not(.is-request) .ae-quote-actions {
  display: grid;
  grid-template-columns: 2fr 1fr;  /* Request = 2/3, Clear = 1/3 */
  gap: 12px;
  width: 100%;                      /* keep totals visible; tweak if needed */
  min-width: 320px;                /* prevents it collapsing on narrow panels */
}

/* Buttons fill their grid cells */
#ae-quote-panel:not(.is-request) .ae-quote-actions .ae-quote-btn {
  width: 100%;
  height: 40px;
font-size: 16px;
    text-transform: lowercase;
}

.ae-quote-btn--export {
      border-radius:30px;
  background-color:#2d2d2d;
  color:#fff;
  border:none;
}

.ae-quote-btn--export:hover {
  background-color:#000;
}

.ae-quote-btn--clear {
    border-radius:30px;
}

/* ------------- Request panel: hide footer completely (form has own submit) ------------- */
#ae-quote-panel.is-request .ae-quote-foot {
  display: none !important;
}

/* ------------- Request form: checkbox styling ------------- */
.ae-qr-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  margin-top: 4px;
}
.ae-qr-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* List panel: body fills space so footer can sit at bottom */
#ae-quote-panel:not(.is-request) .ae-quote-body {
  flex: 1;           /* take remaining height */
  overflow: auto;    /* scroll cards if needed */
}

/* Footer: always at the bottom; buttons on the right */
#ae-quote-panel:not(.is-request) .ae-quote-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e9e9e9;
  background: #fff;
  padding: 10px 20px 20px 20px;
  margin-top: auto;      /* ← pins footer to bottom when content is short */
  position: sticky;      /* ← also sticks when content is tall */
  bottom: 0;
  z-index: 1;
}

/* "Items: X" stays on the left */
#ae-quote-totals {
  font-size: 14px;
  color: #444;
  margin-right: auto;    /* ← pushes buttons to the right */
}

/* Bottom-right QUOTE button: highlight when panel is open */
#ae-quote-btn.is-active {
  background-color: #FF6D46;
  border-color: #FF6D46;
  color: #fff;
}

/* === Talk to Designer row === */
.ae-qr-designer {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #2d2d2d;
  height:30px;
}

.ae-qr-designer-label {
  white-space: nowrap;
  font-weight: 500;
  padding-right:10px;
}

.ae-qr-designer label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
}

.ae-qr-designer input[type="radio"] {
  accent-color: #2d2d2d;
  transform: scale(1.1);
}

.ae-quote-btn .ae-quote-btn--submit:hover {
    background-color:#000 !important;
}

/* ===== Panel 2: Search (UI) ===== */
.ae-panel2-controls {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.ae-panel2-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-bottom: 1px solid #e1e1e1;
}

#ae-panel2-search,
#ae-panel2-search-rugs,
#ae-panel2-search-lighting {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: none !important;
  border-radius: 0;
  background: #fff;
  outline: none;
  margin: 0 !important;
}

#ae-panel2-search:focus {
  border-color: #2d2d2d;
}

/* fix typo in selector */
#ae-panel2-search::placeholder {
  color: #999;
}

.ae-icon-btn {
  height: 40px;
  padding: 0 14px;
  border-left: 1px solid #e1e1e1;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ae-icon-btn:hover {
  border-left: 1px solid #e1e1e1;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.ae-icon-btn img {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

/* Panel 2 accordion default closed */
.ae-panel2-accordion { display: none; }

/* ===== Panel 2: Filters layout (2 per row) ===== */
.ae-panel2-accordion .ae-panel2-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; /* 10px between columns and rows */
  width: 100%;
  box-sizing: border-box;
  padding:10px;
  border-bottom: 1px solid #ddd;
}

.ae-panel2-accordion .ae-filter-row {
  width: 100%;
}

.ae-panel2-accordion .ae-filter-row select {
  width: 100%;
  height: 40px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom:0!important;
}

/* ===== Panel 2: Chips ===== */
.ae-panel2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* hide chip row when there are no chips */
.ae-panel2-chips:empty {
  display: none;
}

.ae-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1e1e1;
  background: #fff;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
  font-size: 12px;
}

.ae-chip:hover {
  border-color: #2d2d2d;
}

.ae-chip .ae-chip-label {
  display: inline-block;
}

.ae-chip .ae-chip-x {
  width: 14px;
  height: 14px;
  display: block;
  pointer-events: none;
}

.ae-panel-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    padding: 0 4px;
    gap: 4px;
}

.ae-page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ae-page-btn img {
    width: 18px;
    height: 18px;
    opacity: 1;
}

.ae-page-status {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Base wrapper */
#ae-styleboard-canvas-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: visible;
  position: relative;
  background-color: #f0f0f0; /* default + OFF color */
}

/* Fabric canvases transparent so wrapper can show dotted pattern */
#ae-styleboard-canvas-wrapper canvas {
  background: transparent !important;
}

/* ON state: dotted pattern */
#ae-styleboard-canvas-wrapper.ae-bg-dots-on {
  background-color: #f0f0f0; /* same base, just with dots */
  background-image: radial-gradient(#ccc 1px, transparent 0);
  background-size: 30px 30px;
  background-position: 0 0;
  background-repeat: repeat;
}

/* ===== Export Boards Modal ===== */

#ae-export-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;               /* JS sets to flex */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Full-screen click area for closing (used by JS) */
#ae-export-modal .ae-preview-modal__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* Main white panel – same vibe as AI modal */
#ae-export-modal .ae-preview-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 0;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Close button – top right, NO rotation now */
#ae-export-modal .ae-preview-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #2d2d2d;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#ae-export-modal .ae-preview-modal__close:hover {
  opacity: 0.7;
}

/* Header layout with icon (✦ + text) */

#ae-export-modal .ae-preview-modal__header {
  padding: 32px 32px 0 32px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

#ae-export-modal .header-icon {
  width: 50px;
  height: 50px;
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

#ae-export-modal .header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* Typography – match AI modal */
#ae-export-modal .ae-preview-modal__title {
  margin: 0!important;
  font-size: 34px;
  padding-top:24px;
  line-height: 1.3;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  color: #2d2d2d;
}

#ae-export-modal .ae-preview-modal__subtitle {
  background: none;
    padding: 12px 0 0 0;
    border-radius: 0 !important;
    border-left: none;
    margin-bottom: 36px !important;
    font-size: 24px !important;
    color: #2d2d2d !important;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    line-height: 28px;
}

/* Body / footer padding */
#ae-export-modal .ae-preview-modal__body {
  padding: 0 32px 24px 32px;
}

.ae-preview-modal__footer {
    padding:32px;
}

/* Board list box (same feel as upload-area) */
#ae-export-modal .ae-export-board-list {
  min-height:216px;
  max-height: 260px;
  overflow-y: auto;
  border: 3px dashed #d0d0d0;
  border-radius: 0;
  padding: 24px;
  margin-bottom: 18px;
  background: #fafafa;
  box-sizing: border-box;
}

#ae-export-modal .ae-export-board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

#ae-export-modal .ae-export-board-row:last-child {
  margin-bottom: 0;
}

#ae-export-modal .ae-export-board-row input[type="checkbox"] {
  margin: 0;
}

#ae-export-modal .ae-export-board-name {
  font-weight: 500;
}

#ae-export-modal .ae-export-board-meta {
  margin-left: auto;
  font-size: 12px;
  color: #777;
}

#ae-export-modal .ae-export-empty {
  margin: 0;
  font-size: 14px;
  color: #777;
}

/* Format selector – pill buttons instead of visible radios */
#ae-export-modal .ae-export-format {
  margin-top: 4px;
}

#ae-export-modal .ae-export-format-label {
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
}

#ae-export-modal .ae-export-format-options {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 8px;
}

/* Hide radio circles; style labels as chips */
#ae-export-modal .ae-export-format-options input[type="radio"] {
  display: none;
}

/* Base look for BOTH pills (non-active state) */
#ae-export-modal .ae-export-format-options label {
  flex: 1 1 50%;
  display: flex;               /* center content */
  align-items: center;         /* vertical center */
  justify-content: center;     /* horizontal center */
  cursor: pointer;
  border-radius: 30px;
  border: 1px solid #d4d4d4;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

/* Hide the radio bullets so they don’t shift things */
#ae-export-modal .ae-export-format-options label input[type="radio"] {
  display: none;
}

/* The text span fills the pill and controls padding */
#ae-export-modal .ae-export-format-options label span {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 14px;
  line-height: 1.2;
}

/* Active state: black pill */
#ae-export-modal .ae-export-format-options input[type="radio"]:checked + span {
  background: #2d2d2d;
  color: #ffffff;
  border-color: #2d2d2d;
  border-radius: 30px;
  padding: 10px 20px;
  display: inline-block;
  width:100%;
}

/* Buttons inside export modal – black pill Export like AI */
#ae-export-modal .ae-btn-primary {
  width: 100%;
  padding: 12px 24px;
  background: #2d2d2d;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#ae-export-modal .ae-export-actions {
  margin-top: 10px;
}

#ae-export-modal .ae-btn-secondary {
  min-width: 140px;
}

/* Remove WP admin-bar gap on Styleboard canvas page */
html {
    margin-top: 0 !important;
    border:0 !important;
}

body.admin-bar {
    margin-top: 0 !important;
    border:0 !important;
}

/* ============================
   Sidebar Tooltips
   ============================ */

.ae-sidebar-tooltip {
  position: fixed;
  left: 80px;
  top: 15px;
  width: 625px;
  height: 540px;
  background: #ffffff;
  border: 0px solid #ffffff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  z-index: 9999;
  pointer-events: none;
  overflow: visible;
  padding:15px;
}

.ae-tooltip-arrow {
  position: absolute;
  left: -16px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 16px solid #ffffff;
}

.ae-tooltip-content {
  display: flex;
  flex-direction: column;
}

.ae-tooltip-content img {
  width: 100%;
  height: auto;
  display: block;
}

.ae-tooltip-text {
  padding: 20px 0;
}

.ae-tooltip-text h4 {
  margin: 0 0 15px 0;
  font-size: 27px;
  font-weight: 300;
  color: #2d2d2d;
}

.ae-tooltip-text p {
  margin: 0;
  font-size: 16px;
  line-height: 18px;
  color: #2d2d2d;
}
