.elementor-419 .elementor-element.elementor-element-20d9da6{--display:flex;}.elementor-419 .elementor-element.elementor-element-50ff3b5{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;}.elementor-419 .elementor-element.elementor-element-50ff3b5.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-419 .elementor-element.elementor-element-d12f296{width:var( --container-widget-width, 101.143% );max-width:101.143%;--container-widget-width:101.143%;--container-widget-flex-grow:0;}.elementor-419 .elementor-element.elementor-element-d12f296.elementor-element{--flex-grow:0;--flex-shrink:0;}@media(max-width:1024px){.elementor-419 .elementor-element.elementor-element-50ff3b5{--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}}@media(max-width:1024px) and (min-width:768px){.elementor-419 .elementor-element.elementor-element-50ff3b5{--width:100%;}}@media(max-width:767px){.elementor-419 .elementor-element.elementor-element-50ff3b5{--width:100%;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}body.elementor-page-419{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}}/* Start custom CSS *//* ====================== */
/* MAIN GRID STYLES       */
/* ====================== */
.compare-grid {
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Poppins', sans-serif;
}

/* Each row */
.compare-row {
  display: table-row !important;  /* Ensure rows behave like table rows */
}

/* First column (labels) */
.label-col, .specs-label-col {
  display: table-cell !important;  /* Ensure label columns behave as table cells */
  width: 120px;
  font-weight: 600;
  color: #2776ea;
  background: #f9f9f9;
  padding: 8px;
  border: 1px solid #eee;
  vertical-align: middle;
  font-size: 14px;
  text-align: left;
}

/* Device columns */
.device-col, .specs-device-col {
  display: table-cell !important;  /* Ensure device columns behave as table cells */
  padding: 10px;
  border: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
  position: relative;
}

/* ====================== */
/* SEARCH BAR ROW FIX     */
/* ====================== */
.compare-row:first-child .device-col {
  padding: 15px;
  background: #fdfdfd;
}

.compare-row:first-child .device-col input[type="text"] {
  width: 100%;
  max-width: 250px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  text-align: left;
}

/* ====================== */
/* DROPDOWN RESULTS       */
/* ====================== */

.device-col {
  position: relative;
  overflow: visible !important;
}

.compare-grid,
.compare-row {
  overflow: visible !important;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ddd;
  max-height: 260px;
  overflow-y: auto;
  width: min(280px, 95vw);
  z-index: 999999;
  list-style: none;
  padding: 6px;
  margin: 0;
  box-shadow: 0 14px 34px rgba(15,23,42,0.16);
  border-radius: 12px;
}

.search-results li {
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 0;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px !important;
  border-radius: 10px;
  width: 100%;
}

.dropdown-item .device-thumb {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  object-fit: contain !important;
}

.dropdown-item .device-title {
  flex: 1;
  min-width: 0;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700;
  text-align: left;
  white-space: normal;
}

@media (max-width: 600px) {
  .compare-row:first-child {
    position: relative;
    z-index: 20;
  }

  .search-results {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    max-height: 250px;
  }

  .device-col:nth-of-type(3) .search-results {
    left: 0 !important;
    right: auto !important;
  }

  .dropdown-item {
    gap: 6px !important;
    padding: 7px !important;
  }

  .dropdown-item .device-thumb {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }

  .dropdown-item .device-title {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .compare-grid {
    padding-bottom: 270px !important;
  }
}

/* Compare card → title on top, image below */
.compare-card {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: left;
  text-align: left;
}

.compare-card .device-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 0px;
}

.compare-card .device-image {
  width: 300px;
  height: auto;
  object-fit: contain;
}

/* ====================== */
/* SPEC ROW STYLES        */
/* ====================== */
.specs-container {
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Poppins', sans-serif;
}

.spec-row {
  border-bottom: 1px solid #eee;
}

/* Ensure the spec label and device columns are aligned */
.label-col {
  display: table-cell !important;
  width: 120px;
  font-weight: 600;
  color: #2776ea;
  background: #f9f9f9;
  padding: 8px;
  border: 1px solid #eee;
  vertical-align: middle;
  font-size: 14px;
  text-align: left;
}

.device-col {
  display: table-cell !important;
  padding: 10px;
  border: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
  position: relative;
}

/* ====================== */
/* RESPONSIVE TABLET      */
/* ====================== */
@media (max-width: 1024px) {
  .device-col:nth-of-type(3) {
    display: none; /* Hide 3rd device on tablet */
  }

  .label-col {
    width: 100px;
    font-size: 13px;
  }

  .compare-row:first-child .device-col input[type="text"] {
    max-width: 220px;
  }
}

/* ====================== */
/* RESPONSIVE TABLET      */
/* ====================== */
@media (max-width: 1024px) {
  .device-col:nth-of-type(3) {
    display: none !important; /* Hide 3rd device column */
  }

  .compare-grid,
  .specs-container {
    table-layout: auto;  /* Allow dynamic width on tablet */
  }

  .label-col {
    width: 100px;
    font-size: 13px;
  }

  .compare-row:first-child .device-col input[type="text"] {
    max-width: 220px;
  }
}

/* ====================== */
/* RESPONSIVE MOBILE VIEW */
/* ====================== */
@media (max-width: 600px) {

  /* ✅ Hide 3rd device column */
  .device-col:nth-of-type(3) {
    display: none !important;
  }

  /* ✅ Ensure dynamic widths and remove table behavior */
  .compare-grid {
    display: block !important;
    overflow-x: auto;
    padding: 0 !important;
  }

  .compare-row {
    display: flex !important;
    flex-direction: row;
    width: 100%;
  }

  /* ✅ Responsive column sizing */
  .compare-row .label-col {
    flex: 0 0 20% !important;   /* First column: 25% */
    min-width: 0;
  }

  .compare-row .device-col {
    flex: 1 0 37.5% !important; /* Two columns: 37.5% each */
    min-width: 0;
  }

  /* ✅ Input width inside search row */
  .compare-row input[type="text"] {
    width: 95% !important;
    max-width: 100% !important;
    padding: 8px;
    font-size: 10px;
  }

  /* ✅ Remove left/right spacing from Elementor wrapper */
  .elementor-container,
  .container,
  .site-content,
  .elementor-section,
  .elementor-column,
  .elementor-widget-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ✅ Prevent unwanted horizontal scroll */
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
 /* ✅ Reduce font size for text in label and device columns */
  .compare-row .label-col,
  .compare-row .device-col {
    font-size: 10px !important; /* or 11px if you want it smaller */
  }
  
  body {
    position: relative;
    left: 0 !important;
  }
}

.su-compare-clear-search {
  position: absolute;
  top: 50%;
  right: calc(50% - 120px);
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #e5e7eb;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000000;
  padding: 0;
}

@media (max-width: 600px) {
  .su-compare-clear-search {
    right: 8px;
    width: 20px;
    height: 20px;
    font-size: 16px;
  }
}/* End custom CSS */