.hd-designer-elementor-friendly { 
  width:100%; 
  box-sizing:border-box; 
}

.hd-wrapper { 
  width:100%; 
  box-sizing:border-box; 
}

.hd-root { 
  width:100%; 
  display:flex; 
  gap:12px; 
  align-items:stretch; 
}

.hd-col {
  background:#fff;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  padding:12px;
  box-sizing:border-box;
  overflow:hidden;
}

/* DISABLE PANELS UNTIL HIGHLIGHTER SELECTED */
.panels-disabled {
  pointer-events: none;
  opacity: 0.4;
}

/* DESKTOP */
@media (min-width:981px){

  /* ⭐ Desktop ratio: 15 | 70 | 15 */
  .hd-frame .col-left,
  .hd-frame .col-right {
    flex:0 0 15% !important;
  }

  .hd-frame .col-center {
    flex:0 0 70% !important;
  }

  .hd-col.side {
    flex: 0 0 12%;
    min-width:110px;
    max-height:600px;
    overflow-y:auto;
  }

  .hd-thumb-grid { 
    max-height:none; 
    overflow-y:visible; 
  }
}

/* DESIGN AREA */
.hd-col.design {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  overflow:hidden;
  padding:0 !important;
  margin:0 !important;
}

.hd-frame-wrap { 
  width:100%; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  padding:0 !important; 
  margin:0 !important;
}

.hd-frame {
  width:100%;
  height:500px;
  border-radius:8px;
  border:1px solid #e6e6e6;
  overflow:hidden;
  display:flex;
  padding:0 !important;
  margin:0 !important;
  position:relative;
}

.hd-frame .col-left,
.hd-frame .col-right {
  flex:0 0 20%;
}

.hd-frame .col-center {
  flex:0 0 60%;
}

/* THUMBS */
.hd-thumb-grid {
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
  width:100%;
}

.hd-thumb{ 
  width:80px; 
  height:80px; 
  border-radius:8px; 
  overflow:hidden; 
  flex:0 0 auto; 
}

.hd-thumb img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
  cursor:pointer;
}

/* ============================================
   ⭐ MOBILE — FULL SHEET + 15/70/15 RATIO
   ============================================ */
@media (max-width:600px){

  .hd-root { 
    flex-direction:column; 
  }

  .hd-col.design { 
    order:1; 
    height:auto; 
    padding:0 !important;
  }

  .hd-col.side { 
    order:2; 
    width:100%; 
    max-height:150px; 
    overflow-y:hidden; 
  }

  .hd-thumb-grid { 
    flex-direction:row; 
    overflow-x:auto; 
    gap:10px; 
    padding-bottom:6px; 
    width:100%; 
  }

  .hd-thumb{ 
    flex:0 0 80px; 
    width:80px; 
    height:80px; 
  }

  .hd-frame { 
    height:350px;
    padding:0 !important;
    margin:0 !important;
    flex-wrap:nowrap !important; 
    overflow:hidden;
    position:relative;
  }

  /* ⭐ NEW MOBILE RATIO: 15 | 70 | 15 */
  .hd-frame .col-left,
  .hd-frame .col-right {
    flex:0 0 15% !important;
  }

  .hd-frame .col-center {
    flex:0 0 70% !important;
  }

  #hd-download-btn {
    display:none !important;
  }
}

/* HEART BUTTON */
#hd-save-heart {
  position:absolute;
  bottom:20px;
  right:20px;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#ffffffd9;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 2px 5px rgba(0,0,0,0.25);
  z-index:50;
}

#hd-save-heart.saved {
  color:#e63946 !important;
}

/* SAVED DESIGNS OVERLAY */
#hd-saved-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#hd-saved-overlay.active {
  display:flex;
}

.hd-saved-inner {
  background:#fff;
  border-radius:10px;
  max-width:480px;
  width:90%;
  max-height:80vh;
  padding:14px;
  box-sizing:border-box;
  overflow:auto;
}

.hd-saved-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.hd-saved-header h3 {
  margin:0;
  font-size:16px;
}

.hd-saved-close {
  border:none;
  background:none;
  font-size:18px;
  cursor:pointer;
}

.hd-saved-list {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.hd-saved-empty {
  font-size:14px;
  color:#6b7280;
}

.hd-saved-item {
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
}

.hd-saved-thumbs {
  display:flex;
  gap:6px;
}

.hd-saved-thumbs img {
  width:50%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:6px;
}

.hd-saved-actions {
  display:flex;
  justify-content:flex-end;
  gap:6px;
}

.hd-saved-btn {
  border:none;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  cursor:pointer;
}

.hd-saved-btn.load {
  background:#111827;
  color:#fff;
}

.hd-saved-btn.delete {
  background:#f3f4f6;
  color:#111827;
}

/* ============================================
   PLACEHOLDER
   ============================================ */
.hd-frame.placeholder {
  background: repeating-linear-gradient(
    to right,
    #f5f5f5 0px,
    #f5f5f5 16px,
    #ececec 17px
  );
  display:flex;
  align-items:center;
  justify-content:center;
}

.hd-frame.placeholder::before {
  content: "Select highlighter first";
  color:#7b7b7b;
  font-size:17px;
  font-weight:500;
  text-align:center;
  padding:0 20px;
}
