.comparator-modal-content {
    /* max-height: 100%; */
    position: absolute;
    bottom: 0;
    transition: bottom 0.4s ease-in-out;
    margin-top: 40px;
    height: 90%;


}
.comparator-modal {
    display: none;
    opacity: 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
}

.comparator-modal.show {
    display: flex;
    opacity: 1;
}

/* Modal content animation */
.comparator-modal-content {
    position: absolute;
    bottom: -100%; /* Start below the viewport */
    transition: bottom 0.4s ease-in-out;
}

/* Show modal content from bottom */
.comparator-modal.show .comparator-modal-content {
    bottom: 0; /* Slide up into visible position */
}

.comparator-modal{
    transition: opacity 0.3s ease-in-out;

}
#comparator-content {
    display: flex;
    margin-block: 25px;
    position: sticky;
    overflow-x: auto; 
  }
  
  .product-card-comparator,
  .product-card {
    background-color: #f8f8f8;
    text-align: center;
    margin: 10px 40px 30px 0;
    width: 270px;
  }
  .table-content-div{
    height:45vh;
    overflow-x : auto

  }
  .product-card-comparator {
    display: inline-block;
    position: relative;
  }
  
  .product-card-comparator img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
  
  .add-to-cart,
  .price-comparator,
  .product-card p,
  .content-card-comparator p {
    font-size: 14px;
  }
  
  .add-to-cart {
    display: inline-block;
    color: #000;
    border-bottom: 1px solid #000;
    font-weight: 400;
    margin-bottom: 20px;
  }
  
  .remove-btn {
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    width: 100%;
    padding-block: 10px;
    font-size: 16px;
    font-weight: 200;
    font-family: 'Poppins';
  }
  
  .product-metafields-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Poppins';
    margin-top: 40px;
  }
  
  .product-metafields-table th,
  .product-metafields-table td {
    padding: 15px;
    text-align: left;
    width: 150px;
  }
  
  .metafield-row {
    background-color: #f8f8f8;
    font-weight: 500;
    width: 100%;
  }
  
  .product-values-row td {
    text-align: center;
  }
  
  #open_comprator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 29px 20px;
    background-color: #000;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  #open_comprator:hover {
    transform: scale(1.1);
  }
  
  #open_comprator svg {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .head-comprator {
    display: flex;
    align-items: center;
  }
  
  #clearAll {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 200;
    font-family: 'Poppins';
    color: #000 !important;
  }
  
  .content-card-comparator {
    width: 100%;
    background-color: #f8f8f8;
    margin-top: 22px;
    padding-bottom: 20px;
  }
  
  .content-card-comparator p {
    padding-left: 20px;
    text-align: left !important;
    font-weight: 600;
    margin: 0 !important;
  }
  
  .price-comparator {
    font-weight: 800 !important;
    font-size: 15px;
  }
  
  .content-card-comparator .block-subtitle {
    padding-left: 20px;
    font-weight: 400;
    margin-block: 2px;
    text-align: left;
  }
  
  .empty-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: #fff;
  }
  
  .empty-product-slot {
    cursor: pointer;
  }
  
  .close-comparator {
    position: absolute;
    top: -27px;
    right: -27px;
    background-color: #fff;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }


  /* ///////////// */

  .comparator-data {

    font-size: 14px;

  }
  
  .comparator-title {
    padding: 15px;
    text-align: left;
    background-color: #F5F3F3;
    font-weight: 500;
  }
  
  .comparator-values {
    display: inline-flex;
  }
  
  .comparator-item {
    padding: 15px;
    text-align: center;
    word-wrap: break-word; /* Allow long words to wrap */
    overflow-wrap: break-word; /* Ensure breaking works in all browsers */
    white-space: normal; /* Allow text wrapping */
  }
  .no-scroll {
    overflow: hidden;
  }
  .comparator-item {
    padding: 15px;
    width: 305px;
    text-align: center;
  }
  .conetnt-table-scroll{
    overflow: hidden;
  }
  .dots-comparator{
    display: none;
    padding-block: 15px;
    justify-content: center;
    width: 100%;
    position: fixed;
    background: rgb(255, 255, 255);
    bottom: 0;
    left: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* offset-x offset-y blur color */
    
  }
  .dots-btn-comparator{
    background: none;
    border: 0;
    margin-inline: 20px;

  }
  #product-number-comparator{
    background-color: #fac60e;
    position: absolute;
    top: 5px;
    width: 24px;
    color: #000;
    height: 24px;
    right: -3px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  @media (max-width: 1200px) {
    .comparator-item {
        padding: 15px;
        width: 250px;
        text-align: center;
      }
      .empty-product-slot {
        cursor: pointer;
        width: 270px;
    }
    .comparator-modal-content {
    width: 100% !important;
    height: 88% ;
    }
    .close-comparator {
        right: 12px;
    }
    .conetnt-scroll{
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
    }
    .conetnt-table-scroll{
        overflow: visible;
        display: inline-table;
      }
      #comparator-content {
        overflow: visible;
        margin-block: 10px;
      }
      .table-content-div {
        overflow-y: auto;
        overflow-x: hidden;
      }
      .product-card-comparator img {
        height: 120px !important;
      }
      .table-content-div{
        height: 34vh;
        margin-bottom: 70px;
      }

      .comparator-title {
        padding: 10px;
      }
      .add-to-cart,
      .price-comparator,
      .product-card p,
      .content-card-comparator p {
        font-size: 12px ;
      }
      .comparator-data {
        font-size: 12px;
      }
      .product-card-comparator, .product-card {
        width: 220px;
      }
      .dots-comparator{
        display: flex;
      }
    
  }
  @media (max-width: 750px) {

    .product-card-comparator, .product-card {
        width: 156px;
        margin: 10px 15px 30px 0;

      }
      .comparator-item {
        padding: 15px;
        width: 165px;
        text-align: center;
      }
      .dots-comparator{
        display: flex;
      }
  }

  @media (max-height: 607px) {

    .comparator-modal{
        background-color: #fff;
        transition: opacity 0.3s ease-in-out;

    }
    .comparator-modal-content {
        border: 0;
        height: 100% ;
        overflow-y: auto;

    }
    .close-comparator {
        position: absolute;
        top: 0px !important;
        right: 0px;
        background-color: #fff;
        width: 50px;
        height: 50px;
        text-align: center;
        border-radius: 50%;
        box-shadow: none;
        cursor: pointer;
      }
    
}
div#conetnt-scroll {
  overflow: auto;
  height: 100%;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  /* pointer-events: none !important; */

}
.badge-comparator
 {
  position: absolute;
  top: 40px;
  right: 70px;
  z-index: 1;
  background-color: white;
  font-size: 15px;
  padding: 10px;
  align-items: center;
 } 

/* Smart tooltip positioning for comparator */
.comparator-title .tooltip {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

.comparator-title .tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 9999999;
  bottom: 125%;
  left: 0;
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: none;
}

/* Ensure tooltip doesn't overflow container */
.comparator-title .tooltip .tooltiptext {
  max-width: calc(100vw - 40px); /* Prevent overflow on very small screens */
}

/* Smart positioning - show above by default, below if near top */
.comparator-title .tooltip .tooltiptext.smart-position {
  bottom: 125%;
}

.comparator-title .tooltip .tooltiptext.smart-position.top {
  bottom: 125%;
}

.comparator-title .tooltip .tooltiptext.smart-position.bottom {
  bottom: auto;
  top: 125%;
}

.comparator-title .tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Arrow for tooltip */
.comparator-title .tooltip .tooltiptext.bottom::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #333 transparent;
}



/* Container for scroll indicators */
.scroll-container {
  position: relative;
  overflow: hidden;
}

/* Animated scroll down indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 36px;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scroll-down-indicator::before {
  content: '';
  width: 2px;
  height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 1px;
  animation: smoothScroll 2s ease-in-out infinite;
}

@keyframes smoothScroll {
  0% {
    transform: translateY(-4px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
  100% {
    transform: translateY(-4px);
    opacity: 0.4;
  }
}

.scroll-container.has-more-content .scroll-down-indicator {
  opacity: 0.8;
}

/* Enhanced scroll buttons */
.dots-btn-comparator {
  background: none;
  border: 0;
  margin-inline: 20px;
  transition: opacity 0.3s ease;
}

.dots-btn-comparator:hover {
  opacity: 0.7;
}

.dots-btn-comparator:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Ensure tooltips are above the scroll container */
.table-content-div {
  position: relative;
  z-index: 1;
}

.comparator-title .tooltip {
  z-index: 1001;
} 