/* Complete comparison-tool.css - Restored original structure with fixed animations */

.comparison-header {
    text-align: center;
    margin-bottom: 1rem;
}

.comparison-title {
    font-size: 45px;
    line-height: 45px;
    color: #55BBF4;
    margin: 0;
    text-align: center;
}


.comparison-subtitle {
    margin: 0rem 0 0 0;
    color: #666;
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
    visibility: hidden;
}

.category-tab {
    flex: 1 1 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    border: none;
    padding: 1rem;
    text-align: center;
    white-space: nowrap;
    font-size: 17px;
    transition: all 0.2s ease;
    outline: none;
}

.category-tab:focus {
    outline: none;
    border: none;
}

.category-tabs.four-rows {
    display: block;
}

.category-tabs.four-rows .category-tab {
    width: 100%;
    flex: none;
}

.category-tab:hover {
    color: #55BBF4;
}

.category-tab.active {
    background: #55BBF4;
    color: #FFFFFF;
}

.product-selection-area {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0rem;
    border: 1px solid #f0f0f0;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

#product-search {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0px;
    transition: border-color 0.2s ease;
}

#product-search:focus {
    outline: none;
    border-color: #55BBF4;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 0px solid #ddd;
    border-radius: 0px;
    max-height: 222px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0px;
    margin: 1rem;
    background: #f8f9fa;
}

.search-result-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.search-result-info h4 {
    margin: 0 0 0rem 0;
    color: #333;
}

.search-result-info p {
    margin: 0;
    color: #666;
}

.filters-section {
    background: #f8f9fa;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem 1rem;
    align-items: start;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0rem;
    grid-column: 1 / -1;
}

.filters-header h3 {
    margin: 0;
}

.clear-filters-container {
    display: none;
}

.clear-filters-container.show {
    display: block;
}

.clear-filters-btn {
    background: transparent;
    color: black;
    border: none;
    padding: 0rem 0rem;
    border-radius: 0rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    color: red;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    display: block;
    font-weight: 500;
    margin: 0;
    color: #555;
}

.range-slider-container {
    width: 100%;
}

.range-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.range-input {
    width: 80px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0px;
    text-align: center;
}

.range-separator {
    color: #333;
    font-weight: 500;
}

.range-inputs {
    position: relative;
    height: 1px;
    margin-bottom: 1rem;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    border-radius: 1rem;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    pointer-events: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #55BBF4;
    cursor: pointer;
    border: 1px solid white;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.range-slider::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #55BBF4;
    cursor: pointer;
    border: 1px solid white;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.range-max {
    background: transparent;
    z-index: 2;
}

.range-min {
    z-index: 1;
}

.filter-item input[type="checkbox"] {
    margin-right: 1rem;
    transform: scale(1);
    accent-color: #55BBF4;
    outline: none;
}

.filter-item label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.category-products {
    display: none;
}

.category-products.active {
    display: block;
}

.section-title {
    font-size: 28px;
    line-height: 28pt;
    margin: 0.5rem 0rem;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(var(--fixed-cols, 4), 1fr);
    gap: 1rem;
    margin: 0rem 0;
    width: 100%;
}

.product-card-comparison {
    width: 100%;
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.0);
    opacity: 0;
    transform: translateY(20px);
}

.product-card-comparison.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card-comparison:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card-comparison.selected {
    border-color: #2B617F;
    box-shadow: 0 4px 12px rgba(85, 187, 244, 0.3);
}

.product-card-comparison.top-pick {
    border-color: #00AA00;
}

.product-card-comparison.selected.top-pick {
    border-color: #2B617F;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.product-card-comparison.pop {
    animation: pop 0.2s ease;
}

.product-image-comparison {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.2s ease;
}

.product-card-comparison:hover .product-image {
    transform: scale(1.05);
}

.title-badge-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0rem 0;
}

.title-badge-container h4 {
    margin: 0;
    color: #333;
    font-weight: 700;
    flex: 1;
}

.top-pick-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    padding: 0rem;
    background: #ffcc00;
    border-radius: 50%;
    font-weight: 700;
}

.product-specs-preview {
    margin: 0;
}

.product-specs-preview div {
    margin-bottom: 0;
}

.product-price-display {
    font-weight: 700;
}

.product-card-comparison.top-pick {
    position: relative;
    overflow: hidden;
}

.top-pick-banner {
    background: linear-gradient(180deg, #33CC33 0%, #33CC33 100%);
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0 0px 10px rgba(0, 204, 102, 0);
    border-radius: 0px;
    margin-top: auto;
}

.product-card-comparison.selected.top-pick .top-pick-banner {
    background: linear-gradient(180deg, #2B617F 0%, #2B617F 100%);
    color: white;
}

.year-dropdown-container {
    margin: 0.5rem 0rem;
    padding: 0px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap; /* Change from wrap to nowrap */
}

.year-selector-label {
    margin: 0;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 28px;
}

.year-dropdown {
    padding: 0rem 0.5rem;
    border: 1px solid #dddddd;
    border-radius: 0rem;
    background: transparent;
    cursor: pointer;
    flex: 1;
    font-size: 28px;
    height: 28pt; /* Add explicit height */
    box-sizing: border-box; /* Include padding/border in height calculation */
}

.year-dropdown:focus,
.year-dropdown:active {
    outline: none;
    border-color: #dddddd; /* Prevent color change on focus AND active */
    background: transparent; /* Ensure background stays white */
}

.year-content {
    position: relative;
}

.year-products {
    display: none;
}

.year-products.active {
    display: block;
}

.product-selection-modal,
.image-expand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vw;
    box-sizing: border-box;
}

.product-selection-modal-content {
    background: white;
    border-radius: 1rem;
    width: max-content;
    max-height: 77vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 28px;
    line-height: 28pt;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-body p {
    margin: 0 0 1rem 0;
    color: #666;
}

.selected-products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.selected-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0px;
    transition: background 0.2s ease, opacity 0.2s ease;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.selected-product-item:hover {
    background: #f0f8ff;
}

.selected-product-item.selected {
    background: #e3f2fd;
    border: 1px solid #55BBF4;
}

.selected-product-item.disabled {
    opacity: 0.5;
    background: #f5f5f5;
}

.selected-product-item.grayed-out {
    opacity: 0.5;
    background: #f5f5f5;
}

.selected-product-item.grayed-out .selected-product-info h4 {
    color: #999;
}

.selected-product-item.grayed-out .modal-product-checkbox:not(:disabled) {
    opacity: 1;
}

.product-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-product-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #55BBF4;
    cursor: pointer;
}

.modal-product-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.product-checkbox-container {
    display: none;
}

.selected-product-image,
.selected-product-no-image {
    width: 54px;
    height: 54px;
    border-radius: 0px;
    flex-shrink: 0;
}

.selected-product-image {
    object-fit: cover;
}

.selected-product-no-image {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.selected-product-info {
    flex: 1;
}

.selected-product-info h4 {
    margin: 0rem;
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.clear-all-products,
.modal-cancel {
    padding: 0.5rem;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
}

.clear-all-products {
    background: #6c757d;
    color: white;
}

.clear-all-products:hover {
    background: #5a6268;
}

.modal-cancel {
    background: #55BBF4;
    color: white;
}

.modal-cancel:hover {
    background: #4a9dd1;
}

.image-expand-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.expanded-image,
.image-expand-close {
    pointer-events: auto;
}

.image-expand-close {
    cursor: pointer;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    line-height: 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background-color 0.2s ease;
}

.expanded-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.image-expand-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

body.modal-open {
    overflow: hidden;
}

.loading-placeholder,
.no-products-message {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-style: italic;
}

.no-products-message {
    background: #f8f9fa;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}

.modal-actions {
    flex-direction: row;
}
    
.clear-all-products,
.modal-cancel {
    width: 100%;
}


@media (max-width: 768px) {


}









/* Main Container Structure */
.comparison-table-container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.comparison-table-integrated {
  border-radius: 1rem;
  border: 1px solid #dddddd;
  width: 100%;
  position: relative;
  overflow: hidden; /* important */
  z-index: 2;
  margin-bottom: 1rem;
  height: auto; /* let content wrapper handle height */
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.comparison-table-integrated.contracted {
  max-height: var(--contracted-height, auto);
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.comparison-specs-table {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.spec-row {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.comparison-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: white;
  position: relative;
  z-index: 3;
}

/* Empty state container fills the wrapper */
.comparison-empty-state {
  flex: 1; /* take all available height */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center; /* horizontal centering */
  text-align: center;
}

/* Specs wrapper - separate from content wrapper to control expansion */
.comparison-specs-wrapper {
  display: flex;
  flex-direction: column;
  background: white;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 3;
  border-top: 0px solid #f0f0f0;
  /* Initial state - hidden */
  height: 0;
  opacity: 0;
  transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

/* Toggle wrapper - now separate and always visible at bottom */
.comparison-toggle-wrapper {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid #dddddd;
  flex-shrink: 0;
  z-index: 4; /* Higher than specs */
}

/* Empty State Styling */

.comparison-empty-state h3 {
  font-weight: 700;
  color: #374151;
  margin-bottom: 0rem;
}

.comparison-empty-state p {
  color: #6b7280;
}

/* Clear All Bar */
.clear-all-bar {
  background: white;
  padding: 0;
  border-radius: 0px;
  overflow: hidden;
  border-bottom: 1px solid #dddddd;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.clear-all-slim-button {
  background: white;
  color: black;
  border: none;
  padding: 0.5rem 0;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.clear-all-slim-button:hover {
  background: #ef4444;
  color: white;
}


/* Product Header Section */
.comparison-products-header {
  display: grid;
  grid-template-columns: repeat(var(--product-count, 1), 1fr);
  gap: 1px;
  background: #dddddd;
  flex-shrink: 0;
}

.product-header-card {
  background: white;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem 0.5rem 1rem;
  text-align: center;
  min-height: fit-content;
  gap: 0; /* Add this to eliminate any flex gap */

}

/* FINAL FIX: Make image header container fill parent width like original */

.product-image-header {
    width: 100%;
    height: 131px;
    margin: 0;
    border-radius: 0px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    /* Remove transition from container */
    padding: 0.5rem 0 0.5rem 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Remove hover from container */
.product-image-header:hover {
    /* Remove transform from container */
}

/* Apply hover to the actual image */
.product-image-header img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border: 0px solid black;
    object-fit: contain;
    padding: 0;
    pointer-events: none;
    cursor: pointer;
    transition: transform 0.2s ease; /* Move transition to image */
}

.product-image-header:hover img {
    transform: scale(1.05); /* Apply scale to image on container hover */
}

/* Also apply hover to no-image placeholder */
.comparison-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    color: #6b7280;
    pointer-events: none;
    transition: transform 0.2s ease; /* Add transition to no-image */
}

.product-image-header:hover .comparison-no-image {
    transform: scale(1.05); /* Apply scale to no-image on container hover */
}

/* Disable hover for placeholders */
.product-header-card.placeholder .product-image-header:hover img,
.product-header-card.placeholder .product-image-header:hover .comparison-no-image {
    transform: none;
}

/* Disable cursor pointer for placeholders */
.product-header-card.placeholder .product-image-header {
    cursor: default;
}

.product-title-header {
    font-weight: 700;
    margin: 0 !important;
    color: #333;
    text-align: center;
    flex-grow: 1;
}

.product-price-header {
    font-weight: 700;
    color: #55BBF4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-bottom: 0rem; /* Only keep bottom spacing */
}

.product-buy-section-header {
  display: flex;
  flex-direction: column;
  margin: 0;
  gap: 0;
  padding: 0;
  flex-shrink: 0;
}

.comparison-remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 28px;
  width: 28pt;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 10;
  opacity: 1;
  transform: scale(1);
}


.comparison-remove-btn:hover {
  background: rgba(0, 0, 0, 1);
  color: white;
  transform: scale(1.05);
}

.comparison-top-pick-indicator {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 28pt;
  font-size: 28px;
  aspect-ratio: 1;
  background: linear-gradient(45deg, #00CC00 0%, #00AA00 100%);
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 1;
  transform: scale(1);
}
.comparison-top-pick-indicator::before {
  content: "✓"; 
  font-weight: 700;
  color: #FFFFFF;
}

.comparison-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: white;
  color: black;
}

/* Toggle Button Styling - Now at bottom and always visible */
.comparison-toggle-button {
  padding: 0;
  border-radius: 0px;
  width: 100%;
  padding: 0.5rem 0 0.5rem 0;
  border: 0px solid #55BBF4;
  background: white;
  color: #55BBF4;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-toggle-button:hover {
  transform: scale(1);
}

.comparison-table-integrated.expanded .comparison-toggle-button {
}

/* Specs Table Styling */
.comparison-specs-table {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: white;
  width: 100%;
}

.comparison-table-integrated.expanded .comparison-specs-table {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.spec-row {
  opacity: 0;
  transform: translateY(10px);
  transition: none; /* Controlled via JavaScript */
}

.spec-label-row {
  background: #f8fafc;
  padding: 1rem 1rem;
  color: #374151;
  font-weight: 700;
  border-top: 1px solid #e5e7eb;
}

.spec-values-row {
  display: grid;
  grid-template-columns: repeat(var(--product-count, 1), 1fr);
  gap: 1px;
  background: #e5e7eb;
}

.spec-value-cell {
  background: white;
  padding: 1rem 0rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.spec-with-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.spec-text {
  font-weight: 700;
  color: #2B617F;
}

.spec-dash {
  color: #dddddd;
}

.boolean-indicator {
  color: #10b981;
  font-weight: 700;
}

/* Buy Buttons */
.buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding: 0rem 0rem;
  border-radius: 0px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.1s ease;
  border: none;
  cursor: pointer;
}

.amazon-button {
  background: transparent;
  color: black;
}

.amazon-button:hover {
  background: transparent;
  color: #ff9900;
  transform: scale(1.05);
}

.other-button {
  background: #4f46e5;
  color: white;
}

.other-button:hover {
  background: #4338ca;
  color: white;
}

/* Product Card Comparison */
.product-card-comparison .product-info-comparison {
  padding: 0 1rem 1rem 1rem;
  background: white;
  transition: background 0.2s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-comparison.selected .product-info-comparison {
  background: linear-gradient(180deg, #ffffff 0%, #55BBF4 100%);
}

.product-card-comparison.selected.top-pick .product-info-comparison {
  background: linear-gradient(180deg, #ffffff 0%, #55BBF4 100%);
}

.product-card-comparison.top-pick .product-info-comparison {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

/* Temp measurement styles for height calculation */

/* Indicator Styles */
.modern-battery-indicator {
  display: flex;
  align-items: center;
  gap: 2px;
}

.battery-outer {
  --battery-w: 40px;
  width: var(--battery-w);
  height: 20px;
  border: 2px solid #dddddd;
  border-radius: 3px;
  background: white;
  overflow: hidden;
  position: relative;
}

.battery-fill {
  height: 100%;
  width: 0%;
  border-radius: 1px;
  background: linear-gradient(90deg, #55FF55 0%, #005500 100%);
  background-size: var(--battery-w) 100%;
  background-position: left top;
  background-repeat: no-repeat;
  transition: width 0.3s ease;
}

.battery-tip {
  width: 2px;
  height: 8px;
  background: #d1d5db;
  border-radius: 0 1px 1px 0;
}

.modern-power-indicator,
.modern-input-indicator {
  display: flex;
  align-items: center;
}

.power-bar-outer,
.input-bar-outer {
  --bar-w: 60px;
  width: var(--bar-w);
  height: 8px;
  border-radius: 1rem;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}

.power-bar-fill,
.input-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 1rem;
  background: linear-gradient(90deg, #55BBF4 0%, #2B617F 100%);
  background-size: var(--bar-w) 100%;
  background-position: left top;
  background-repeat: no-repeat;
  transition: width 0.3s ease;
}

.modern-port-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

.port-dot-modern {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55BBF4;
}

.port-dot-modern.usb-a {
  background: #28a745;
}

.port-overflow-modern {
  color: #666;
  margin-left: 3px;
  font-weight: 600;
}

/* Add these styles to comparison-tool.css */

.product-price-header.no-price .price-na {
    color: #9ca3af;
    font-style: italic;
    font-weight: 500;
}

.product-price-header.has-price {
    font-weight: 700;
    color: #55BBF4;
}


.product-buy-section-header .placeholder-button {
    background: transparent;
    color: transparent;
    border: none;
    border-radius: 0px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

/* Make it Amazon's navy blue (#232f3e) */
.amazon-logo {
  /* filter: brightness(0) invert(1); */
}

.button-content {
  display: flex;
  align-items: baseline; /* This aligns to the text baseline */
  gap: 8px;
  justify-content: center;
}

.amazon-logo {
  align-self: flex-end; /* Forces logo to bottom */
}

.comparison-table-integrated {
    --contracted-height: auto;
    transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.comparison-table-integrated.contracted {
    height: var(--contracted-height, auto);
    overflow: hidden;
}

.comparison-table-integrated.expanded {
    height: auto;
}

.comparison-table-integrated.contracted {
    height: var(--contracted-height, auto) !important;
    min-height: var(--contracted-height, auto);
    max-height: var(--contracted-height, auto);
    overflow: hidden;
}

