/* PAGE */
.cmp-page {
  padding: 20px;
  background: #f6f7f9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

/* HEADER */
.cmp-header {
  margin-bottom: 20px;
}
.cmp-header h1 {
  font-size: 22px;
  margin-bottom: 6px;
}
.cmp-header p {
  color: #6b7280;
  font-size: 14px;
}

/* CARD GRID */
.cmp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* CARD */
.cmp-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  position: relative;
}


/* BADGE – FIXED */
.cmp-card {
  position: relative;
}

.cmp-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #facc15;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.cmp-card {
  position: relative;
}

@media (max-width: 480px) {
  .cmp-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 5px 8px;
  }
}

/* META */
.cmp-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* SUMMARY */
.cmp-summary {
  font-size: 14px;
  margin-bottom: 12px;
}

/* METRICS */
.metric {
  margin-bottom: 14px;
}
.metric label {
  font-size: 13px;
  font-weight: 600;
}
.metric small {
  font-size: 11px;
  color: #6b7280;
}

/* BARS */
.bar {
  background: #e5e7eb;
  border-radius: 10px;
  height: 8px;
  margin: 6px 0;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #2563eb;
}
.bar.green span { background: #22c55e; }
.bar.red span { background: #ef4444; }

/* ACTIONS */
.cmp-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
}
.btn.primary {
  background: #2563eb;
  color: #fff;
}
.btn.outline {
  border: 1px solid #d1d5db;
  color: #111827;
}

/* DESKTOP */
@media (min-width: 900px) {
  .cmp-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

  .cmp-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cmp-card {
    padding: 14px;
    border-radius: 14px;
  }

  .cmp-card h2 {
    font-size: 18px;
  }

  .cmp-meta {
    font-size: 12px;
  }

  .cmp-summary {
    font-size: 13px;
    line-height: 1.45;
  }

  .metric label {
    font-size: 12px;
  }

  .metric small {
    font-size: 11px;
  }

  .cmp-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }
}
/* ===== HIGHLIGHTS ===== */
.cmp-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.hl {
  background: #f1f5ff;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
}

.hl .icon {
  font-size: 18px;
}

.hl strong {
  display: block;
  font-size: 12px;
}

.hl p {
  font-weight: 600;
  margin: 2px 0;
}

.hl small {
  font-size: 11px;
  color: #6b7280;
}

/* MOBILE */
@media (max-width: 768px) {
  .cmp-highlights {
    grid-template-columns: 1fr;
  }
}

/* ===== EXTRA INFO ===== */
.cmp-extra {
  margin-top: 10px;
  font-size: 13px;
}

.extra-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid #eef0f4;
}
.cmp-page {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.cmp-header h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.cmp-header p {
  color: #666;
  font-size: 14px;
}

.cmp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cmp-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.cmp-meta {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
}

.cmp-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.kpi {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}

.kpi strong {
  display: block;
  font-size: 16px;
  margin: 4px 0;
}

.cmp-block {
  margin-top: 18px;
}

.cmp-block label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.cmp-block .cmp-value {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cmp-block small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.cmp-value {
  font-size: 16px;
  font-weight: 600;
}

.cmp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cmp-tags span {
  background: #eef2ff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.cmp-list {
  padding-left: 18px;
  font-size: 13px;
}

.cmp-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.outline {
  border: 1px solid #ddd;
  color: #333;
}

/* MOBILE FIX */
@media (max-width: 480px) {
  .cmp-kpis {
    grid-template-columns: 1fr;
  }
}
.cmp-card {
  position: relative;
}

.cmp-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #facc15;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 5;
}
@media (max-width: 768px) {

  .cmp-cards {
    grid-template-columns: 1fr;
  }

  .cmp-card {
    padding: 14px;
  }

  .cmp-kpis {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kpi {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .kpi strong {
    font-size: 15px;
  }

  .cmp-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

}
.kpi span {
  display: block;
  font-size: 11px;
  color: #555;
}
/* ===== BADGE FIX (DO NOT TOUCH ABOVE CSS) ===== */

.cmp-card {
  position: relative !important;
  overflow: visible !important;
}

.cmp-badge {
  position: absolute !important;
  top: 12px;
  right: 12px;
  background: #facc15;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  white-space: nowrap;
}
/* === HARD TEXT VISIBILITY FIX === */
.cmp-card,
.cmp-card * {
  color: #111827;
}

.cmp-meta,
.cmp-block label,
.kpi span,
.kpi small {
  color: #6b7280 !important;
}

.cmp-value,
.kpi strong {
  color: #111827 !important;
}

.cmp-list li {
  color: #111827;
}

/* Risk Breakdown */
.cmp-risk {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.cmp-risk li {
  display: flex;
  align-items: center;
  background: #f6f8fc;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #1f2937;
}


.cmp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cmp-tags span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.cmp-risk {
  margin-top: 10px;
}

.cmp-risk li {
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.risk-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: help;
  position: relative;
}

/* Info icon */
.risk-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  background: #eef2f7;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

/* Tooltip box */
.risk-info::after {
  content: attr(data-tip);
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 1px solid #e5e7eb;

  width: max-content;
  max-width: 280px;
  white-space: normal;
  text-align: left;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}

/* Small arrow */
.risk-info::before {
  content: "";
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Hover state */
.risk-info:hover::after,
.risk-info:hover::before {
  opacity: 1;
}


.risk-info:hover::after {
  opacity: 1;
}
.cmp-risk li {
  color: #1f2937; /* main text */
}

.cmp-risk li strong {
  font-weight: 600;
}

.cmp-block label {
  color: #374151; /* darker label */
}

.cmp-block small {
  color: #6b7280; /* lighter explanation */
}


.cmp-disclaimer {
  margin-top: 32px;
  padding: 16px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.6;
}

.cmp-disclaimer strong {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-weight: 600;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

  /* Stack cards vertically with spacing */
  .cmp-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Reduce card padding */
  .cmp-card {
    padding: 14px;
  }

  /* Project title smaller */
  .cmp-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  /* KPIs: 2 per row instead of 3 */
  .cmp-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cmp-kpis .kpi {
    padding: 10px;
  }

  /* Reduce section spacing */
  .cmp-block {
    margin-top: 14px;
  }

  /* Payment pills tighter */
  .cmp-tags span {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Risk rows smaller */
  .cmp-risk li {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* CTA buttons full width */
  .cmp-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .cmp-actions .btn {
    width: 100%;
  }

  /* Disclaimer more compact */
  .cmp-disclaimer {
    font-size: 12px;
    padding: 14px;
  }
}
@media (max-width: 480px) {
  .cmp-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cmp-kpis .kpi {
    padding: 8px;
  }

  .cmp-kpis .kpi span {
    font-size: 11px;
  }

  .cmp-kpis .kpi strong {
    font-size: 15px;
  }

  .cmp-kpis .kpi small {
    display: none; /* removes extra noise */
  }
}



@media (max-width: 480px) {
  .cmp-block label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .cmp-block .cmp-value {
    font-size: 14px;
  }

  .cmp-block small {
    font-size: 11px;
    line-height: 1.4;
  }
}
@media (max-width: 480px) {
  .cmp-risk li {
    padding: 6px 10px;
    font-size: 12px;
  }

  .cmp-risk li + li {
    margin-top: 4px;
  }
}
@media (max-width: 480px) {
  .cmp-actions {
    gap: 8px;
  }

  .cmp-actions .btn.outline {
    font-size: 13px;
    padding: 10px;
  }

  .cmp-actions .btn.primary {
    font-size: 14px;
    padding: 12px;
  }
}
@media (max-width: 480px) {
  .cmp-block {
    margin-top: 16px;
  }

  .cmp-card {
    padding: 14px;
  }
}
@media (max-width: 480px) {
  .cmp-actions {
    width: 100%;
    box-sizing: border-box;
  }

  .cmp-actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 480px) {

  /* Project title */
  .cmp-card h2 {
    font-size: 20px;
    line-height: 1.25;
  }

  /* Price */
  .cmp-value {
    font-size: 17px;
  }

  /* KPI numbers */
  .cmp-kpis .kpi strong {
    font-size: 16px;
  }

  /* Buttons text */
  .cmp-actions .btn {
    font-size: 15px;
  }
}
@media (max-width: 480px) {

  .cmp-kpis .kpi {
    background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
    border: 1px solid #e6ecff;
  }

  .cmp-kpis .kpi span {
    color: #4b5563;
  }

  .cmp-kpis .kpi strong {
    color: #1f2937;
  }
}
@media (max-width: 480px) {
  .cmp-kpis {
    margin-bottom: 12px;
  }
}
@media (max-width: 480px) {

  /* KPI 1 – ROI (Green) */
  .cmp-kpis .kpi:nth-child(1) {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #dcfce7;
  }

  /* KPI 2 – Demand (Blue) */
  .cmp-kpis .kpi:nth-child(2) {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
  }

  /* KPI 3 – Units Left (Amber) */
  .cmp-kpis .kpi:nth-child(3) {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border: 1px solid #fde68a;
  }
}
@media (max-width: 480px) {
  .cmp-kpis .kpi strong {
    color: #111827;
  }

  .cmp-kpis .kpi span {
    color: #4b5563;
  }
}

.cmp-search {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.cmp-add-row {
  display: flex;
  gap: 10px;
}

.cmp-add-row select {
  flex: 1;
  max-height: 220px;
}

.cmp-add-row button {
  padding: 10px 14px;
  border-radius: 8px;
}
/* Compare add section */
.cmp-add-wrap {
  margin: 24px 0;
  padding: 18px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.cmp-add-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.cmp-add-head span {
  color: #6b7280;
  font-size: 13px;
}

.cmp-add-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

#cmpSearch {
  grid-column: 1 / -1;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  width: 100%;
}

#cmpSelect {
  width: 100%;
  min-height: 140px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

#cmpSelect option {
  padding: 8px;
  font-size: 14px;
}

.cmp-add-btn {
  align-self: stretch;
  padding: 0 20px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.cmp-add-btn:hover {
  background: #1d4ed8;
}

/* Mobile */
@media (max-width: 640px) {
  .cmp-add-controls {
    grid-template-columns: 1fr;
  }

  .cmp-add-btn {
    height: 44px;
  }
}
/* ---------- ADD PROJECT SECTION ---------- */
.cmp-add-section {
  margin: 28px 0 36px;
}

.cmp-add-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  padding: 18px 20px 16px;
  max-width: 920px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.cmp-add-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #101828;
}

/* ---------- SEARCH INPUT ---------- */
.cmp-search {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.cmp-search:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* ---------- ROW ---------- */
.cmp-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- DROPDOWN ---------- */
.cmp-add-row select {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.cmp-add-row select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* when dropdown expands via size */
.cmp-add-row select[size] {
  border-radius: 12px;
  background: #fff;
}

/* dropdown options */
.cmp-add-row option {
  padding: 8px 10px;
  font-size: 14px;
}

/* ---------- ADD BUTTON ---------- */
.cmp-add-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cmp-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* ---------- HINT ---------- */
.cmp-add-hint {
  margin-top: 8px;
  font-size: 12.5px;
  color: #667085;
}
/* ==============================
   ADD PROJECT COMPARE BOX – UI
============================== */

.cmp-add-section {
  margin: 24px 0;
}

.cmp-add-box {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Gradient border wrapper */
.cmp-add-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    #ff9f0a,
    #6c7cff,
    #32d2aa
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Title */
.cmp-add-title {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 12px;
}

/* Search input (Google-style) */
.cmp-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: linear-gradient(
    180deg,
    #ffffff,
    #f9fafb
  );
  outline: none;
  margin-bottom: 10px;
}

.cmp-search:focus {
  border-color: #6c7cff;
  box-shadow: 0 0 0 3px rgba(108,124,255,0.15);
}

/* Row */
.cmp-add-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* Dropdown */
#compareSelect {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  background: #ffffff;
  cursor: pointer;
}

/* Force dropdown to open downward */
#compareSelect[size] {
  overflow-y: auto;
}

/* Add button */
.cmp-add-btn {
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    #6c7cff,
    #32d2aa
  );
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.cmp-add-btn:hover {
  opacity: 0.95;
}

/* Hint */
.cmp-add-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}
/* ==============================
   FIX DROPDOWN CLIPPING / STUCK
============================== */

/* Allow dropdown to escape container */
.cmp-add-box {
  overflow: visible;
}

/* When select is expanded via JS size */
#compareSelect[size] {
  position: relative;
  z-index: 9999;
  margin-top: 6px;
  border-radius: 12px;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.12);
}

/* Make expanded dropdown feel like overlay */
#compareSelect[size] option {
  padding: 10px 12px;
}

/* Prevent gradient border from masking dropdown */
.cmp-add-box::before {
  pointer-events: none;
}

/* Smooth open feel */
#compareSelect {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#compareSelect:focus {
  border-color: #6c7cff;
  box-shadow: 0 0 0 3px rgba(108,124,255,0.15);
}

/* ==============================
   FIX DROPDOWN CLIPPING / STUCK
============================== */

/* Allow dropdown to escape container */
.cmp-add-box {
  overflow: visible;
}

/* When select is expanded via JS size */
#compareSelect[size] {
  position: relative;
  z-index: 9999;
  margin-top: 6px;
  border-radius: 12px;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.12);
}

/* Make expanded dropdown feel like overlay */
#compareSelect[size] option {
  padding: 10px 12px;
}

/* Prevent gradient border from masking dropdown */
.cmp-add-box::before {
  pointer-events: none;
}

/* Smooth open feel */
#compareSelect {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#compareSelect:focus {
  border-color: #6c7cff;
  box-shadow: 0 0 0 3px rgba(108,124,255,0.15);
}
.cmp-search-wrap {
  position: relative;
}

#cmpSearch {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe2f0;
}

.cmp-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
  margin-top: 6px;
  z-index: 9999;
  overflow: hidden;
}

.cmp-suggestion {
  padding: 12px 16px;
  cursor: pointer;
}

.cmp-suggestion:hover {
  background: #f4f6ff;
}
/* --- Add section layout fix --- */
.cmp-add-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Row: search + button */
.cmp-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search input size */
#cmpSearch {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #dbe2f0;
  font-size: 15px;
  background: #fff;
}

/* Keep suggestions floating OUTSIDE the box */
.cmp-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  overflow: hidden;
}

/* Button stays right */
.cmp-add-box form {
  display: flex;
  justify-content: flex-end;
}

/* Bigger button */
.cmp-add-btn {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #4f8cff, #2dd4bf);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79,140,255,.25);
}

.cmp-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79,140,255,.35);
}
