/*
 Theme Name:   EMS WP Starter
 Template:     generatepress
 Version:      0.1
*/


/* Comparison styles */

.comparison-wrapper {
  position: relative;
  padding-top: 50px;
}

.comparison-table {
  max-width: 100%;
  margin: auto;
  background: transparent;
  border-radius: 10px;
  overflow: visible;
}
.column {
  flex: 1;
  padding: 20px 20px;
  text-align: center;
}
.column h2 {
  margin: 0;
}

.bg-header-cell-1 {
  background-color: #f7f8f9;
}

.bg-header-cell-2 {
  background-color: #f7f8f9;
}

.hide-description {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  transition: opacity 0.4s ease-out, max-height 0.4s ease-out;
}

.show-description {
  opacity: 1;
  max-height: 500px;
  transition: opacity 0.4s ease-out, max-height 0.4s ease-out;
}

.text-center {
  text-align: center !important;
}

.column span {
  color: #5865f2;
  text-transform: uppercase;
}
.column button {
  align-items: center;
  margin: 15px;
  background: #07ece1;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}
.comparison-grid {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.comparison-section {
  margin: 0;
}

.header-row {
  display: flex;
  background-color: transparent;
  gap: 20px;
}
.header-cell {
  flex: 1;
  padding: 0;
  text-align: center;
  font-weight: 500;
}

.header-cell:first-child {
  flex: 0 0 auto;
  min-width: 400px;
}

.data-cell:nth-child(2),
.data-cell:last-child {
  background-color: #f7f8f9;
}

.data-row:last-of-type .data-cell:nth-child(2),
.data-row:last-of-type .data-cell:last-child {
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

.data-row:hover {
  background-color: #e9edfe;
}

.data-row:hover .data-cell:nth-child(2),
.data-row:hover .data-cell:last-child {
  background-color: #e9edfe;
}

.header-cell:nth-child(2) {
  background-color: transparent;
}

.header-cell:last-child {
  background-color: transparent;
}

.no-hover-row {
  display: flex;
  gap: 20px;
}

.data-row {
  display: flex;
  gap: 20px;
  transition: background-color 0.2s ease;
}
.data-row:hover {
  background-color: #e9edfe;
}

.data-cell {
  display: flex;
  flex: 1;
  padding: 10px 0px;
  text-align: center;
  border: none;
  align-items: center;
  align-content: stretch;
  flex-wrap: wrap;
}

.data-cell:nth-child(2) {
  background-color: #f7f8f9;
}

.data-cell:last-child(2) {
  background-color: #f7f8f9;
}

.data-cell:first-child {
  flex: 0 0 auto;
  min-width: 400px;
  text-align: left;
  gap: 15px;
}
.section-title-row {
  display: flex;
  max-width: 400px;
}
.section-title {
  display: flex;
  flex-wrap: nowrap;
  flex: 1;
  font-weight: bold;
  text-align: left;
  padding: 16px 20px;
}

.section-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  max-width: 285px;
}

.section-description {
  font-size: 16px;
  text-align: left;
}

.product-info {
  background-color: #5b7cfb;
  padding: 20px 36px;
  border-radius: 20px 20px 0px 0px;
}
.product-info h2 {
  color: white;
  text-align: center;
}
.product-info span {
  color: white;
}

.alt-text-comparisontable {
  color: #11132b !important;
}

.product-info p {
  color: white;
  text-align: left;
}
.featured--title {
  max-width: 400px;
  text-align: left;
  padding: 16px 20px;
  margin: 0;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.featured--title p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.featured--item {
  max-width: 100%;
  text-align: center;
  justify-content: center;
  padding: 16px 20px;
  margin: 0;
  gap: 5px;
}

.featured--item p {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.sticky-effect {
  position: sticky;
  top: 96px;
  z-index: 9999;
  background-color: transparent;
}

.section-description {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease-out, visibility 0.3s ease-out;
}

.is-stuck {
  background-color: #fff;
}

.is-stuck .section-description {
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

.product-info h2 {
  transition: text-align 0.3s ease;
  margin: 10px 0px;
}

.img-class-width {
  width: 100%!important;
  height: auto;
}

.linnworks .product-info h2 img{
  transform: translateZ(0);
  width: 45%;
  height: auto;
}

.is-stuck .product-info h2 {
  text-align: center;
}

.hidden-on-sticky {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}



/* Tol tip styles */

.icon-hover {
  position: relative;
  display: inline-block;
}

.icon-hover img {
  display: block;
  transition: opacity 0.3s ease;
}

/* Hover image hidden initially */
.icon-hover .hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none; /* prevents touch from activating it prematurely */
  visibility: hidden; /* NEW: makes Safari not render it until hover */
}

.icon-hover .default {
  opacity: 1;
  visibility: visible;
}

/* On hover/focus, swap visibility + opacity */
.icon-hover:hover .hover,
.icon-hover:focus .hover {
  opacity: 1;
  visibility: visible;
}

.icon-hover:hover .default,
.icon-hover:focus .default {
  opacity: 0;
  visibility: hidden;
}



.icon-hover .icon-fill {
  transition: fill 0.3s ease;
  fill: #5B7CFB; 
}

.icon-hover:hover .icon-rect {
  fill: #5B7CFB;
  border-radius: 55555px;
  background-color: #5b7cfb; 
}

.icon-hover:hover .icon-fill {
  fill: #ffffff; 
}


.tooltip-wrapper{
    position: relative;
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: baseline;
    align-content: center;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  background: linear-gradient(to right, #11132b, #5b7cfb);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: normal;
  width: max-content;
  max-width: 270px;
  word-wrap: break-word;
  line-height: 1.4;
  text-align: left;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(30px);
  z-index: 99999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.tooltip-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid #11132b;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) translateX(50);
}

.theme-button-style {
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500 !important;
  background-color: #07ece1;
  color: #11132b !important;
  box-shadow: 0 10px 40px 0 rgba(7, 236, 225, 0.3);
  transition: box-shadow .3s;
  padding: 10px 20px;
}

.theme-button-style:hover {
  box-shadow: 0 6px 10px 0 rgba(7, 236, 225, .9);
}

.button-col-style {
  background-color: #f7f8f9;
}

.accordion-icon {
  visibility: hidden;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header-row {
    gap: 0;
  }
  .data-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .data-row .data-cell {
    width: 100%;
    background-color: #f7f8f9;
  }

  .data-row .data-cell:nth-child(2),
  .data-row .data-cell:nth-child(3) {
    width: 50%;
    background-color: #ffffff;
    border: solid #11132b33;
    border-width: 0 1px 1px 1px;
  }

  .data-cell:first-child {
    min-width: 100%;
    max-width: 100%;
    text-align: left;
    border: solid #11132b33;
    border-width: 0 1px 1px 1px;
  }

  .data-row:last-of-type .data-cell:nth-child(2),
  .data-row:last-of-type .data-cell:last-child {
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
  }

  .empty-cell {
    display: none !important;
  }

  .empty-cell.show-if-not-gb{
    display: none!important;
  }

  .tooltip-text {
    width: max-content;
    max-width: 275px;
    left: auto;
    right: 110%;
    transform: translateY(-50%) translateX(-10px);
  }

  .tooltip-text::before {
    left: auto;
    right: -6px;
    border-right: none;
    border-left: 6px solid #5b7cfb;
  }

  .site-footer .footer-columns{
      column-gap: 5px!important;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .comparison-wrapper {
    padding-top: 20px;
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
  }

  .header-row {
    gap: 0;
  }
  .data-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .data-row .data-cell {
    width: 100%;
    background-color: #f7f8f9;
  }

  .data-row .data-cell:nth-child(2),
  .data-row .data-cell:nth-child(3) {
    width: 50%;
    background-color: #ffffff;
    border: solid #11132b33;
    border-width: 0 1px 1px 1px;
  }

  .data-cell:first-child {
    min-width: 100%;
    max-width: 100%;
    text-align: left;
    border: solid #11132b33;
    border-width: 0 1px 1px 1px;
  }

  .data-row:last-of-type .data-cell:nth-child(2),
  .data-row:last-of-type .data-cell:last-child {
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
  }

  .empty-cell {
    display: none !important;
  }

  .empty-cell.show-if-not-gb{
    display: none!important;
  }

  .product-info {
    padding: 15px;
    gap: 0px;
    border-radius: 0px !important;
  }

  .product-info h2 {
    text-align: center;
  }

  .section-description {
    display: none !important;
  }

  .bg-header-cell-1 {
    background-color: #5b7cfb !important;
  }

  .bg-header-cell-2 {
    background-color: #e9edfe;
  }

  .section-title {
    font-size: 16px;
    font-weight: 600;
  }

  .section-title h3 {
    max-width: 100%;
  }

  .featured--title {
    font-size: 14px;
    background-color: #f7f8f9;
  }

  .featured--item p {
    font-size: 14px;
  }

  .tooltip-text {
    width: max-content;
    max-width: 275px;
    left: auto;
    right: 110%;
    transform: translateY(-50%) translateX(-10px);
  }

  .tooltip-text::before {
    left: auto;
    right: -6px;
    border-right: none;
    border-left: 6px solid #5b7cfb;
  }

  .sticky-effect {
    position: sticky;
    top: 95px;
    background-color: #fff;
  }

  .data-rows {
    max-height: 0;
    overflow: visible;
    transition: max-height 0.4s ease;
  }

  .comparison-section .data-rows {
    overflow-y: hidden; /* or your default value */
  }

  .comparison-section.active .data-rows {
    overflow-y: visible;
  }


  .accordion-icon {
    visibility: visible;
    margin-left: auto;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transform: rotate(180deg);
  }

  .comparison-section.active .accordion-icon {
    transform: rotate(0deg);
  }

  .comparison-section.active .data-rows {
    max-height: fit-content;
  }

  .no-hover-row {
    cursor: pointer;
  }

  .pricing-hero-block{
        background-position: bottom 260px center!important;
    }

  .linnworks .product-info h2 img{
  width: 72%;
}
}


@media (max-width: 490px) {
      .sticky-effect{
        top: 133px;
      }

      .product-info{
        padding: 10px;
      }

      .bg-header-cell-1, .bg-header-cell-2{
        padding: 0px 10px 20px 0;
      }


      #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-blocks-right .mega-toggle-block{
        margin-right: 0px!important;
     }

     #mobile-header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-blocks-right {
        -moz-column-gap: 5px!important;
        column-gap: 5px!important;
    }

    .navigation-branding, .site-logo.mobile-header-logo {
     margin-right: 0px!important;
   } 

}


/* Force each Slick slide to stay 202px wide */
.wp-block-image.slick-slide {
  width: 202px !important;
  flex: 0 0 202px !important;
  max-width: 202px !important;
}

/* Ensure images fill their slide properly */
.wp-block-image.slick-slide img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
}


.v2-our-products-1 .cards .__mobile-container .__mobile-top .cta-container .cta{
    width: fit-content!important;
}