#block-cohesion-theme-productcomparisonblock {
  padding-right: 30px;
  padding-bottom: 30px;
  padding-left: 30px;
  max-width: 1105px;
  margin-top: 0;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

/* ------------------------
   SELECT BOX & FORM STYLES
------------------------ */

.comparison-header {
  display: grid;
  grid-template-columns: 35% 30% 30%; /* Attribute | Product 1 | Product 2 */
  gap: 20px;
  justify-content: center;
}

.comparison-header .column-label {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.product-comparison-form {
  width: 100%;
}

.product-comparison-form .form-item {
  margin-bottom: 0;
  -ms-flex-item-align: center;
  align-self: center;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(141, 144, 147);
  -webkit-border-radius: 10px;
  border-radius: 10px;
  margin-top: 0;
  margin-right: 12px;
  margin-left: 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-comparison-form .form-select:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

form.product-comparison-form .form-select {
  appearance: none;
  gap: 21px;
  text-overflow: ellipsis;
  cursor: pointer;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  height: 66px;
  width: 100%;
  padding-top: 8px;
  padding-right: 40px;
  padding-bottom: 8px;
  padding-left: 20px;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  border: 0 none;
  outline-width: 0;
  background-color: #fff;
}

.product-comparison-form .form-item::after {
  line-height: 1;
  font-weight: normal;
  text-transform: none;
  pointer-events: none;
  content: "\f078";
  font-family: icomoon;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 16px;
}

/* ------------------------
    PRODUCT DETAILS (Image + Learn More)
  ------------------------ */
.product-details-wrapper {
  display: grid;
  grid-template-columns: 40% 30% 30%;
  gap: 0;
  margin: 0 0 20px 0;
}

.product-detail-column {
  text-align: center;
}

.no-image {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 15px;
  margin-bottom: 30px;

  width: 144px;
  height: 52px;

  border: 2px solid rgb(81, 181, 223);
  border-radius: 5px;
  background-color: #fff;

  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-align: center;
  white-space: nowrap;

  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;

  transition: all 0.4s ease;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.product-link::after {
  content: "\f054";
  font-family: "icomoon";
  font-size: 14px;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  speak: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.product-link:hover,
.product-link:focus {
  background-color: rgb(81, 181, 223);
  color: #000;
  text-decoration: none;
}

.product-link:hover::after,
.product-link:focus::after {
  /*color: #fff;*/
}

/* ------------------------
    COMPARISON TABLE
  ------------------------ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Arial, "elvetica Neue";
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 10px;
  text-align: center;
  vertical-align: middle;
  border: none;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 40%;
  font-weight: bold;
  text-align: left;
}

.compare-table th:nth-child(2),
.compare-table td:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  width: 30%;
}

.compare-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.compare-table tbody tr:nth-child(even) {
  background-color: rgb(250, 250, 250);
}

.attribute-row.row-odd {
  background-color: #ffffff;
}

.attribute-row.row-even {
  background-color: rgb(250, 250, 250);
}

/* ------------------------
    ICONS (Tick, Hyphen)
  ------------------------ */
.icon-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: black;
}

.icon-status--yes::before,
.icon-status--no::before {
  font-family: icomoon, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 11px;
}

.icon-status--yes {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgb(81, 181, 223);
  flex-shrink: 0;
}

.icon-status--yes::before {
  content: "\f00c";
}

.icon-status--no {
  background: none;
  width: auto;
  height: auto;
  padding: 0;
}

.icon-status--no::before {
  content: "\f068";
}

.icon-status--neutral::before {
  content: "";
}

.info-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 6px;
}

.info-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background-color: white;
  color: black;
  font-size: 11px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  border: 1px solid #aaa;
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  background-color: rgb(219, 219, 220);
  color: #000;
  text-align: left;
  border-radius: 4px;
  padding: 6px 10px;
  position: absolute;
  z-index: 1;
  width: max-content;
  max-width: 220px;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  white-space: normal;
}

.tooltip-text p {
  margin-bottom: 0px;
}

.info-icon-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Hide/show based on device */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

img.product-image {
  width: 235px;
  margin: auto auto 40px;
  align-self: center;
  height: 165px;
}

@media (max-width: 820px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }

  .product-details-wrapper .spacer-div {
    display: none;
  }

  .comparison-header .column-label {
    display: block;
    font-size: 18px;
  }

  .compare-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .attribute-row {
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 0.75rem 10px;
    border-radius: 6px;
    line-height: 18px;
  }

  .attribute-col {
    width: 48%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .attribute-label {
    font-size: 0.85rem;
    color: #4d4d4f;
    font-weight: normal;
  }

  .icon-status--no {
    height: 20px;
    width: 20px;
  }

  /* Hide tooltip/info icons */
  .info-icon-wrapper {
    display: none !important;
  }
  /* Comparison Header in 2 columns */
  .comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns: Product 1 and Product 2 */
    gap: 16px;
    margin-bottom: 0px;
    padding: 0 1rem 1rem;
    grid-column-gap: 32px;
  }

  .comparison-header .column-label:first-child {
    grid-column: span 2; /* Attribute label spans both columns */
    text-align: left;
    margin-bottom: 10px;
    display: none;
  }

  /* Product Details Wrapper in 2 columns */
  .product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns for mobile */
    gap: 16px;
    margin: 0 0 20px 0;
  }

  /* Center content in each column */
  .product-detail-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .product-title-for-mobile {
    min-height: 3.6em;
  }

  .product-link {
    font-size: 14px;
    padding: 6px 10px;
    margin-bottom: 12px;
  }

  form.product-comparison-form .form-select {
    height: 50px;
    padding-right: 40px;
  }
  #block-cohesion-theme-productcomparisonblock {
  padding-left: 0;
  padding-right: 0;
  }
  .product-comparison-form .form-item {
    margin-right: 0;
    margin-left: 0;
  }
  img.product-image {
    height: 123px;
    width: auto;
    padding-top: 0;
    padding-right: 16px;
    padding-bottom: 0;
    padding-left: 16px;
    margin-bottom: 26px;
  }
}

@media (max-width: 425px){
    img.product-image {
    height: 106px;
    width: auto;
    padding-top: 0;
    padding-right: 16px;
    padding-bottom: 0;
    padding-left: 16px;
    margin-bottom: 26px;
  }
}
