/* ===== COMPARE LAPTOPS WIDGET ===== */
.t888-compare-laptops-widget {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 32px;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 60%, #f5f0ff 100%);
  border-radius: 16px;
  border: 1px solid #e8e8f0;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.t888-compare-laptops-widget .compare-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.5px;
}

.t888-compare-laptops-widget .compare-desc {
  text-align: center;
  margin-bottom: 36px;
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== INPUTS WRAPPER ===== */
.t888-compare-laptops-widget .compare-inputs-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.t888-compare-laptops-widget .compare-input-group {
  flex: 1;
  position: relative;
  min-width: 260px;
}

.t888-compare-laptops-widget .compare-field-wrap {
  position: relative;
  width: 100%;
}

/* ===== SEARCH INPUT ===== */
.t888-compare-laptops-widget .compare-search-input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  border: 1.5px solid #dde1f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.t888-compare-laptops-widget .compare-search-input::placeholder {
  color: #aab0c4;
}

.t888-compare-laptops-widget .compare-search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.t888-compare-laptops-widget .compare-search-input.selected {
  background: #fafbff;
  color: #1a1a2e;
  font-weight: 600;
  border-color: #667eea;
  padding-right: 44px;
}

/* ===== REMOVE BUTTON (×) ===== */
.t888-compare-laptops-widget .compare-remove-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #e74c3c;
  cursor: pointer;
  font-size: 16px;
  z-index: 5;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
  background: #fff5f5;
}

.t888-compare-laptops-widget .compare-remove-btn:hover {
  color: #fff;
  background: #e74c3c;
  transform: translateY(-50%) scale(1.1);
}

/* ===== VS BADGE ===== */
.t888-compare-laptops-widget .compare-vs-text {
  flex-shrink: 0;
  padding-top: 8px;
}

.t888-compare-laptops-widget .compare-vs-text span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.25);
}

/* ===== SEARCH RESULTS DROPDOWN ===== */
.t888-compare-laptops-widget .compare-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e8e8f0;
  border-radius: 10px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.12);
  scrollbar-width: thin;
}

.t888-compare-laptops-widget .compare-search-results ul {
  list-style: none;
  padding: 6px;
  margin: 0;
}

.t888-compare-laptops-widget .compare-search-results li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 7px;
  transition: background 0.15s;
  font-size: 13.5px;
  font-weight: 500;
}

.t888-compare-laptops-widget .compare-search-results li a:hover {
  background: #f2f4ff;
  color: #667eea;
}

.t888-compare-laptops-widget .compare-search-results li a img {
  width: 36px !important;
  height: 36px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  margin-right: 0 !important;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.t888-compare-laptops-widget .compare-search-results .product-title {
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Loading & no result states */
.t888-compare-laptops-widget .compare-searching,
.t888-compare-laptops-widget .compare-no-result {
  padding: 16px;
  text-align: center;
  color: #999;
  font-size: 13px;
  font-style: italic;
}

/* ===== SUBMIT BUTTON ===== */
.t888-compare-laptops-widget .compare-submit-wrapper {
  text-align: center;
}

.t888-compare-laptops-widget .compare-submit-wrapper .compare-btn {
  padding: 14px 52px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
  position: relative;
  overflow: hidden;
}

.t888-compare-laptops-widget .compare-submit-wrapper .compare-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}

.t888-compare-laptops-widget .compare-submit-wrapper .compare-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}

.t888-compare-laptops-widget .compare-submit-wrapper .compare-btn:not(:disabled):hover::after {
  left: 120%;
}

.t888-compare-laptops-widget .compare-submit-wrapper .compare-btn:disabled {
  background: linear-gradient(135deg, #d0d0e0, #c8c8d8);
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .t888-compare-laptops-widget {
    padding: 24px 16px;
  }

  .t888-compare-laptops-widget .compare-inputs-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .t888-compare-laptops-widget .compare-input-group {
    min-width: 0;
    width: 100%;
  }

  .t888-compare-laptops-widget .compare-vs-text {
    padding: 0;
    text-align: center;
  }

  .t888-compare-laptops-widget .compare-vs-text span {
    margin: 0 auto;
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .t888-compare-laptops-widget .compare-submit-wrapper .compare-btn {
    width: 100%;
    padding: 14px 24px;
  }
}