.acf-compare-wrapper { padding: 0 10px; }
#product-compare-slots { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.compare-slot:hover { border-color: #0073aa; }

.compare-slot {
    width: 30%;
    background: #fff;
    border: 2px dashed #243853;
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.selected-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}
.selected-product .product-details { margin-top: 0.5rem; }
.selected-product .product-rating { color: #ff9900; margin-top: 5px; }
.review-rating { display: flex; justify-content: center !important; }
button.remove-slot:hover{ color: white }
button.remove-slot { border-radius: 50%; padding: 10px 15px !important; }

.selected-product button {
    margin-top: 10px;
    padding: 12px 30px;
    background: #243853;
    color: #fff;
      border: 1.8px solid #243853 !important;
    border: none;
    border-radius: 30px;
}
.add-product {
    padding: 12px 28px;
    background: #243853;
    color: #fff;
    border: 1.8px solid #243853 !important;
    border: none;
    border-radius: 30px;
}
.add-product:hover, #compare-button:hover, .selected-product button:hover {
  background: transparent;
  border: 1.8px solid #243853;
  color: #243853;
}
#compare-button {
    display: block;
    margin: 0 auto;
      border: 1.8px solid #243853 !important; 
    padding: 12px 35px; 
    background: #243853;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}
span.popup-close {
    background: #243853;
    color: white;
    padding: 0px 9px;
    border-radius: 30px;
    font-size: 17px;
    margin: 0;
}
.compare-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.popup-inner {
    width: 90%;
    max-width: 800px;
    margin: 9% auto;
    padding: 20px;
    border-radius: 5px;
    border: 5px solid transparent;
    position: relative;
       background: linear-gradient(#fffffff5, #fffffffc) padding-box, linear-gradient(90deg, #006dff, #0f0f0f, #bd9d00, #ffd200, #243853) border-box !important;
	backdrop-filter: blur(60px);
	    -webkit-backdrop-filter: blur(12px);
}

.popup-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    cursor: pointer;
}

#product-search {
    width: 100%;
    padding: 25px 16px;
    border:2px solid #243853;
    border-radius: 4px;
    font-size: 24px;
    outline: none;
    transition: all 0.3s ease;
   background-color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
	    margin-bottom: 10px;
}

#product-search::placeholder {
    color: #999;
	font-size: 20px !important;
}

#product-search:focus {
    border-color: #243853;
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.3);
    background-color: #fafcff;
}
#search-results { max-height: 345px; overflow-y: auto; }
.search-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 2px solid #243853;
    margin-bottom: 8px;
    border-radius: 4px;
    background: #ffffff;
    backdrop-filter: blur(52px);
    cursor: pointer;
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.2s;
}
.search-item:hover { background: #1223540f; }
.search-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
        align-items: flex-start;
}
.search-info h4 { margin: 0; }
.acf-comparison-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #fff;
  overflow-x: auto;
  margin: 40px auto;
  max-width: 100%;
  margin-bottom: 0;
}
.comparison-row { display: flex; border: 1px solid #6c6c6c26; }
.comparison-header {
  background-color: #f7f7f7;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.feature-name {
  flex: 0 0 180px;
  background: #fafafa;
  padding: 15px;
  border-right: 1px solid #e0e0e0;
  font-weight: 600;
  color: #222;
  box-sizing: border-box;
}

.product-title-cell,
.feature-value {
  flex: 1;
  padding: 15px;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  word-break: break-word;
  box-sizing: border-box;
}
.feature-value:last-child, .product-title-cell:last-child { border-right: none; }
.feature-value { background: #fff; color: #444; }
.product-title-cell { background-color: #f0f0f0; color: #111; font-weight: 600; }
.acf-comparison-table { overflow-x: auto; }


@media (max-width: 768px) {
  .comparison-row {
    font-size: 0.9rem;
  }
  .feature-name {
    flex: 0 0 140px;
    padding: 10px;
  }
  .product-title-cell,
  .feature-value {
    padding: 10px;
  }
}
/* 
.comparison-row:hover {
  background-color: #f9f9f9;
}

.comparison-row:nth-child(even):not(.comparison-header) {
  background-color: #fcfcfc;
} */

.acf-comparison-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.compare-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: bold;
  text-transform: capitalize;
}
.acf-comparison-table { display: flex; flex-direction: column; }
.comparison-row { display: flex; }
.comparison-header { background: #f5f5f5; font-weight: bold; }
.feature-name {
  flex: 0 0 200px;
  padding: 1rem;
  background: #fafafa;
  border-right: 1px solid #ddd;
  font-weight: bold;
}

.product-title-cell,
.feature-value {
  flex: 1;
  padding: 1rem;
  text-align: left;
  border-right: 1px solid #ddd;
}

.product-title-cell img { margin-top: 0.5rem; object-fit: contain; }
.feature-value ul { margin: 0; text-align: left; padding: 0 15px; }
.remove-slot {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    z-index: 10;
}
.compare-slot { position: relative; }
.remove-slot:hover { color: #000; }
.acf-comparison-main { width: 100% !important; }
.acf-comparison-main .acf-compare-wrapper { padding: 50px 20px !important; }
.archive .review-rating { display: flex; justify-content: flex-start !important; }