

button#aivc_open_composer {
    background: none;
    border: none;
    padding: 0;
}

div#aivc_composer_popup {
    display: none;
}

.aivc-composer {
    display: flex;
    background: #f6f1fe;
    padding: 24px;
    gap: 10px;
}   



.aivc-product-left {
    width: 60%;
}

.aivc_frontend_preview {
  border: 5px solid red !important;
}
.aivc_frontend_preview .aivc_preview_dots {
  background-color: yellow !important;
}
.aivc_frontend_preview .aivc_preview_dot {
  width: 20px !important;
  height: 20px !important;
  background-color: blue !important;
  border-radius: 50% !important;
  display: inline-block;
  margin: 5px;
}

div#aivc_frontend_preview_dots {
    position: absolute;
    margin-top: -134px;
    left: 43%;
    z-index: 999999;
}
div#aivc_product_preview_dots {
    position: absolute;
    margin-top: -124px;
    left: 44%;
    z-index: 999999;
}

 #ps-row{display:flex;gap:10px;align-items:center}
  .chip{display:flex;align-items:end;gap:7px;background:rgb(243 232 255/.5);border:none;border-radius:11px;padding:7px 9px;position:relative}
  .chip img{width:28px;height:28px;border-radius:50%}
  .rm{position:absolute;left:-7px;top:-7px;width:16px;height:16px;background:#fff;border:1px solid #d9d9e6;border-radius:50%;font-size:12px;cursor:pointer}
  .rm:hover{background:#fcd; color:#d00}
  .type{font-size:12px;padding:2px 7px;border-radius:3px;border:1px solid hsl(210deg 13% 62% / 20%);background:#f9f3ff;cursor:pointer}
  #ps-add{width:32px;height:32px;display:grid;place-items:center;font-size: 32px;background:#fff;border-radius:50%;border:none;cursor:pointer}
  #ps-menu{position:absolute;min-width:160px;background:#fff;border:1px solid #ececff;border-radius:9px;box-shadow:0 6px 16px #0001;z-index:99;padding:5px}
  .mi{display:flex;align-items:center;gap:8px;width:100%;padding:7px;border:none;background:#fff;border-radius:7px;cursor:pointer;font-size:14px}
  .mi:hover{background:#f3f4ff}

  /* hide the check by default; show only on the selected row */
#ps-menu .mi .check{opacity:0}
#ps-menu .mi.active .check{opacity:1}

/* Layout */
.aivc-product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aivc-product-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aivc-product-toolbar-right {
  display: flex;
  align-items: center;
}

.aivc-product-ai {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.aivc-product-ai img { width:18px; height:18px; }
.aivc-Collaborators {
    display: flex;
    gap: 7px;
}
/* Dropdown */
.aivc-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  min-width: 280px;
  max-width: 400px;
  max-height: 60vh;
  overflow: auto;
  z-index: 9999;
  transform-origin: top left;
  animation: fadeIn 0.15s ease-out;
}
/* Drawer root that covers entire screen */
#aivc_ai_slide_root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;  /* Hidden by default */
}

.aivc-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark backdrop */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Slide-in panel */
.aivc-slide__panel {
  position: absolute;
  top: 0;
  right: -420px;  /* Start off-screen */
  width: 420px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: 20px;
  transition: transform 0.3s ease-in-out;
}

/* When opened, slide the panel in */
#aivc_ai_slide_root.is-open .aivc-slide__overlay {
  opacity: 1;
}

#aivc_ai_slide_root.is-open .aivc-slide__panel {
  transform: translateX(-420px); /* Slide panel into view */
}

/* Close button styling */
.aivc-slide__close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #000;
}

/* Button styling */
.aivc-btn-primary {
  background: linear-gradient(90deg, #A78BFA 0%, #5B21B6 100%);  /* Gradient */
  color: white;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  width: 100%;
  cursor: pointer;
}

/* Input styling */
.aivc-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  margin-top: 10px;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.aivc-product-toolbar-left {
  position: relative; /* Required for relative positioning */
}
.aivc-dd-head {
  padding: 12px 14px;
  border-bottom: 1px solid #F3F4F6;
  font-weight: 600;
}
.aivc-dd-body {
  padding: 12px 14px;
}
.aivc-dd-actions {
  padding: 10px 14px;
  border-top: 1px solid #F3F4F6;
  display: flex; justify-content: flex-end; gap: 8px;
}
.aivc-btn {
  background: #111827; color: #fff; border: none; border-radius: 8px;
  padding: 8px 12px; cursor: pointer;
}
.aivc-btn.secondary {
  background: #F3F4F6; color: #111827;
}

/* Emoji grid */
.aivc-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.aivc-emoji {
  font-size: 20px; padding: 6px 0; text-align:center; cursor:pointer;
  border-radius: 6px;
}
.aivc-emoji:hover { background:#F3F4F6; }

/* Hashtag / Location list */
.aivc-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 220px; overflow:auto;
}
.aivc-list-item {
  display:flex; align-items:center; justify-content:space-between;
  border:1px solid #E5E7EB; border-radius:8px; padding:8px 10px; cursor:pointer;
}
.aivc-list-item:hover { background:#F9FAFB; }
.aivc-list-item small { color:#6B7280; }

/* Small input */
.aivc-input, .aivc-input-row input {
  width: 100%; border:1px solid #E5E7EB; border-radius:8px; padding:8px 10px;
}
.aivc-input-row { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top:8px; }

/* AI modal (optional) */
#aivc_ai_modal_root[hidden] { display:none; }
.aivc-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(17,24,39,.5); display:flex; align-items:center; justify-content:center;
}
.aivc-modal-card {
  background:#fff; border-radius:12px; padding:16px; width: 680px; max-width: 92%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

img.blankimg {
    position: absolute;
    top: -18%;
    right: 56%;
    width: 18px;
}


.aivc-product-global-bodyss {
  overflow: hidden;
  max-height: 0; /* collapsed by default */
  transition: max-height 0.4s ease;
}

.aivc-product-global-card.open .aivc-product-global-bodyss {
  max-height: 1000px; /* large enough to fit content */
}

.aivc-product-global-arrow svg {
  transition: transform 0.3s ease;
}

.aivc-product-global-card.open .aivc-product-global-arrow svg {
  transform: rotate(180deg); /* flip arrow when open */
}
