.wcboost-products-compare {
  color: #111;
}

.powertech-compare-toolbar {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  margin: 0 0 28px;
  position: relative;
  z-index: 8;
}

.powertech-compare-search {
  min-width: 0;
  position: relative;
}

.powertech-compare-search__control {
  position: relative;
}

.powertech-compare-search__icon {
  height: 18px;
  left: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  color: #708096;
}

.powertech-compare-search__input {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-height: 52px;
  padding: 0 16px 0 45px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  width: 100%;
}

.powertech-compare-search__control--highlight .powertech-compare-search__input {
  border-color: #68bd00;
  box-shadow:
    0 0 0 4px rgba(104, 189, 0, 0.18),
    0 2px 12px rgba(104, 189, 0, 0.2);
}

.powertech-compare-search__control--highlight .powertech-compare-search__icon {
  color: #68bd00;
}

.powertech-compare-search__status {
  bottom: -22px;
  color: #708096;
  display: block;
  font-size: 12px;
  left: 0;
  min-height: 18px;
  position: absolute;
}

.powertech-compare-search__results {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(15, 31, 53, 0.14);
  left: 0;
  margin-top: 8px;
  max-height: 360px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
}

.powertech-compare-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.powertech-compare-search__item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px 12px;
}

.powertech-compare-search__item + .powertech-compare-search__item {
  border-top: 1px solid #eef2f6;
}

.powertech-compare-search__product {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.powertech-compare-search__product img {
  border-radius: 8px;
  flex: 0 0 44px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.powertech-compare-search__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.powertech-compare-search__price {
  white-space: nowrap;
}

.powertech-compare-search__empty {
  color: #708096;
  padding: 14px;
}

.powertech-compare-diff-toggle {
  align-items: center;
  display: inline-flex;
  font-weight: 500;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.powertech-compare-diff-toggle__input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.powertech-compare-diff-toggle__switch {
  background: #ccc;
  border-radius: 999px;
  display: inline-block;
  height: 22px;
  position: relative;
  width: 42px;
}

.powertech-compare-diff-toggle__switch::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 31, 53, 0.18);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.18s ease;
  width: 18px;
}

.powertech-compare-diff-toggle__input:checked
  + .powertech-compare-diff-toggle__switch {
  background: #68bd00;
}

.powertech-compare-diff-toggle__input:checked
  + .powertech-compare-diff-toggle__switch::after {
  transform: translateX(20px);
}

.powertech-compare-clear {
  align-items: center;
  color: #333;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  text-decoration: none;
}

.powertech-compare-shell {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.wcboost-products-compare__tools {
  display: none;
}

.powertech-compare-grid,
.powertech-compare-specs,
.powertech-compare-row {
  display: grid;
  grid-template-columns: 220px repeat(
      var(--powertech-compare-columns),
      minmax(190px, 1fr)
    );
}

.powertech-compare-grid--cards {
  min-height: 420px;
}

.powertech-compare-grid__label,
.powertech-compare-grid__product,
.powertech-compare-row__label,
.powertech-compare-cell {
  border-right: 1px solid #ccc;
}

.powertech-compare-grid__product:last-child,
.powertech-compare-cell:last-child {
  border-right: 0;
}

.powertech-compare-grid__label {
  background: #f7f7f7;
}

.powertech-compare-grid__product {
  min-width: 0;
  padding: 36px 20px 22px;
  position: relative;
}

.powertech-compare-grid__product--empty {
  align-items: center;
  display: flex;
  justify-content: center;
}

.powertech-compare-card {
  position: relative;
}

.powertech-compare-card--loading {
  opacity: 0.5;
}

.powertech-compare-card__remove {
  align-items: center;
  background: #f2f2f2;
  border-radius: 50%;
  color: #333;
  display: inline-flex;
  font-size: 20px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -5px;
  text-decoration: none;
  top: -18px;
  width: 28px;
}

.powertech-compare-card__image {
  display: block;
  margin-bottom: 16px;
}

.powertech-compare-card__image img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.powertech-compare-card__brand {
  color: #728097;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.powertech-compare-card__name {
  color: #111;
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  margin: 4px 0 12px;
  text-decoration: none;
}

.powertech-compare-variation {
  margin: 0 0 14px;
}

.powertech-compare-variation__select {
  background: #fff;
  padding-inline: 10px;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 5px;
  font-weight: 500;
  min-height: 38px;
  width: 100%;
  padding-inline-end: 18px;
  cursor: pointer;
}

.powertech-compare-card__price .price {
  color: #111;
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 6px;
}

.powertech-compare-card__stock .stock,
.powertech-compare-card__stock .in-stock {
  color: #12a05c;
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 6px 0 14px;
  text-transform: uppercase;
}

.powertech-compare-card__cart .button {
  align-items: center;
  background: #68bd00;
  border: 0;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  width: 100%;
  height: 40px !important;
  line-height: 40px !important;
  border-radius: 5px !important;
  font-weight: 500 !important;
}

.powertech-compare-empty-slot {
  background: transparent;
  border: 0;
  color: #666;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: center;
  width: 100%;
}

.powertech-compare-empty-slot:focus-visible .powertech-compare-empty-slot__icon,
.powertech-compare-empty-slot:hover .powertech-compare-empty-slot__icon {
  border-color: #68bd00;
  color: #68bd00;
}

.powertech-compare-empty-slot__icon {
  align-items: center;
  border: 1px dashed #d1dce8;
  border-radius: 50%;
  display: inline-flex;
  font-size: 28px;
  height: 54px;
  justify-content: center;
  margin-bottom: 12px;
  width: 54px;
}

.powertech-compare-empty-slot__title {
  color: #333;
  font-weight: 500;
}

.powertech-compare-empty-slot__text {
  font-size: 13px;
  margin-top: 6px;
}

.powertech-compare-section-heading {
  background: #f7f7f7;
  border-top: 1px solid #ccc;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  grid-column: 1 / -1;
  letter-spacing: 0.16em;
  padding: 15px 20px;
  text-transform: uppercase;
  font-family: inherit;
}

.powertech-compare-row {
  display: contents;
}

.powertech-compare-row__label,
.powertech-compare-cell {
  border-top: 1px solid #ccc;
  min-height: 58px;
}

.powertech-compare-row__label {
  align-items: center;
  color: #111;
  display: flex;
  font-weight: 500;
  padding: 14px 20px;
}

.powertech-compare-cell {
  align-items: center;
  display: flex;
  min-width: 0;
  padding: 14px 20px;
  position: relative;
  transition: opacity 0.15s ease;
}

.powertech-compare-cell--loading {
  opacity: 0.45;
}

.powertech-compare-cell--empty {
  color: #aeaeae;
}

.powertech-compare-value {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.powertech-compare-value__content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.powertech-compare-value__dot {
  background: #68bd00;
  border-radius: 50%;
  flex: 0 0 7px;
  height: 7px;
  width: 7px;
}

@media (max-width: 980px) {
  .powertech-compare-toolbar {
    grid-template-columns: 1fr;
  }

  .powertech-compare-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .powertech-compare-grid,
  .powertech-compare-specs,
  .powertech-compare-row {
    min-width: 820px;
  }

  .powertech-compare-section-heading {
    grid-column: 1 / -1;
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .powertech-compare-toolbar {
    gap: 12px;
    margin-bottom: 18px;
  }

  .powertech-compare-search__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .powertech-compare-search__price {
    white-space: normal;
  }

  .powertech-compare-grid,
  .powertech-compare-specs {
    grid-template-columns: 132px repeat(var(--powertech-compare-columns), 176px);
    min-width: 660px;
  }

  .powertech-compare-grid--cards {
    min-height: 0;
  }

  .powertech-compare-grid__product {
    padding: 22px 12px 16px;
  }

  .powertech-compare-card__name {
    font-size: 14px;
  }

  .powertech-compare-row__label,
  .powertech-compare-cell {
    padding: 12px;
  }

  .powertech-compare-section-heading {
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 13px 12px;
  }
}
