:root {
  --color__white: #ffffff;
  --color__red: #f54336;
  --color__dark-red: #c53227;
  --color__green: #42ca49;
  --color__dark-green: #30a936;
  --color__link: #3e9bf7;
  --font_family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --scrollbar_bg-color: #cacaca;
  --scrollbar-hover_bg-color: #555;
  --white_borders: 1px solid --color__white;
  --row_border: 1px solid #cccccc;
  --cell-bg__color: rgba(230, 230, 230, 0.25);
  --cell-attribute-bg__color: #e6e6e6;
  --cell-hover-bg__color: rgba(230, 230, 230, 0.5);
}
.comparison.actions {
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
}
.comparison.actions > a {
  padding: .5rem 0;
  margin-bottom: .75rem;
}
.comparison.actions > .go-back {
  position: relative;
}
.comparison.actions > .go-back::before {
  content: '\002B';
  position: absolute;
  left: -1.5rem;
}
.comparison.actions .differences {
  width: 7rem;
}
.comparison.actions .differences > .btn_diff {
  display: none;
}
.comparison.actions .differences > .btn_diff:checked ~ label:before {
  content: attr(data-icon-on);
  background: url('../images/pause-circle-outline.svg');
  background-repeat: no-repeat;
  height: 20px;
}
.comparison.actions .differences > .btn_diff:checked ~ label:after {
  content: '';
  background: none;
}
.comparison.actions .differences label:before,
.comparison.actions .differences label:after {
  content: '';
  position: absolute;
  display: flex;
  cursor: pointer;
  padding: .5rem 2.75rem;
  color: var(--color__link);
}
.comparison.actions .differences label:after {
  content: attr(data-icon-off);
  background: url('../images/filter-circle-outline.svg');
  background-repeat: no-repeat;
  height: 18px;
}
.comparison.actions .differences label:hover:before,
.comparison.actions .differences label:hover:after {
  text-decoration: underline;
}
.comparison .table-comparison {
  margin-top: 1rem;
}
.comparison .table-comparison thead {
  background: var(--color__white);
}
.comparison .table-comparison thead tr {
  position: relative;
}
.comparison .table-comparison thead tr .product-item-photo {
  display: flex;
  width: 100%;
  justify-content: center;
}
.comparison .table-comparison thead tr .product-item-name,
.comparison .table-comparison thead tr .product-reviews-summary,
.comparison .table-comparison thead tr .price-box,
.comparison .table-comparison thead tr .product-item-actions {
  text-align: center;
}
.comparison .table-comparison thead tr .price-box .price-container {
  font-weight: bold;
}
.comparison .table-comparison thead tr th {
  position: relative;
  background-color: var(--color__white);
}
.comparison .table-comparison thead tr th.cell.label {
  border: 0;
}
.comparison .table-comparison thead tr td {
  position: relative;
  vertical-align: top;
}
.comparison .table-comparison thead tr td.product.info {
  border: 0;
}
.comparison .table-comparison td:last-child {
  border-right: 0;
}
.comparison .table-comparison tbody tr {
  transition: background-color 0.1s ease-in;
}
.comparison .table-comparison tbody tr th {
  background-color: var(--cell-attribute-bg__color);
  border: var(--white_borders);
}
.comparison .table-comparison tbody tr:not(:last-child) {
  border-bottom: var(--row_border);
}
.comparison .table-comparison tbody tr:hover {
  background-color: var(--cell-hover-bg__color);
}
.comparison .table-comparison tbody tr td:nth-child(odd) {
  background: var(--cell-bg__color);
}
.comparison .table-comparison tbody tr td.cell.attribute {
  text-align: center;
}
.comparison .table-comparison tbody tr td.cell.attribute ul {
  text-align: initial;
}
.comparison .table-comparison tbody tr .cell.label {
  border-right: 0;
}
.comparison .table-comparison .tgl {
  display: none;
}
.comparison .table-comparison .tgl,
.comparison .table-comparison .tgl:after,
.comparison .table-comparison .tgl:before,
.comparison .table-comparison .tgl *,
.comparison .table-comparison .tgl *:after,
.comparison .table-comparison .tgl *:before,
.comparison .table-comparison .tgl + .tgl-btn {
  box-sizing: border-box;
}
.comparison .table-comparison .tgl::-moz-selection,
.comparison .table-comparison .tgl:after::-moz-selection,
.comparison .table-comparison .tgl:before::-moz-selection,
.comparison .table-comparison .tgl *::-moz-selection,
.comparison .table-comparison .tgl *:after::-moz-selection,
.comparison .table-comparison .tgl *:before::-moz-selection,
.comparison .table-comparison .tgl + .tgl-btn::-moz-selection {
  background: none;
}
.comparison .table-comparison .tgl::selection,
.comparison .table-comparison .tgl:after::selection,
.comparison .table-comparison .tgl:before::selection,
.comparison .table-comparison .tgl *::selection,
.comparison .table-comparison .tgl *:after::selection,
.comparison .table-comparison .tgl *:before::selection,
.comparison .table-comparison .tgl + .tgl-btn::selection {
  background: none;
}
.comparison .table-comparison .tgl + .tgl-btn {
  position: absolute;
  top: 50%;
  cursor: pointer;
  width: 100%;
}
.comparison .table-comparison .tgl + .tgl-btn:after,
.comparison .table-comparison .tgl + .tgl-btn:before {
  content: "";
  position: relative;
  display: block;
}
.comparison .table-comparison .tgl + .tgl-btn:after {
  max-width: 14rem;
  left: 0;
}
.comparison .table-comparison .tgl + .tgl-btn:before {
  max-width: 8rem;
  display: none;
}
.comparison .table-comparison .tgl-flip + .tgl-btn {
  -webkit-perspective: 100px;
  perspective: 100px;
  font-family: var(--font_family);
}
.comparison .table-comparison .tgl-flip + .tgl-btn:after,
.comparison .table-comparison .tgl-flip + .tgl-btn:before {
  display: flex;
  width: 100%;
  min-width: 140px;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-weight: 500;
  color: var(--color__white);
  padding: 7px 12px;
  transition: all 0.3s ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 2px;
}
.comparison .table-comparison .tgl-flip + .tgl-btn:after {
  content: attr(data-tg-on);
  background: var(--color__green);
  -webkit-transform: rotateX(-180deg);
  transform: rotateX(-180deg);
}
.comparison .table-comparison .tgl-flip + .tgl-btn:before {
  background: var(--color__red);
  content: attr(data-tg-off);
}
.comparison .table-comparison .tgl-flip + .tgl-btn:hover:before {
  background: var(--color__dark-red);
}
.comparison .table-comparison .tgl-flip + .tgl-btn:hover:after {
  background: var(--color__dark-green);
}
.comparison .table-comparison .tgl-flip:checked + .tgl-btn:before {
  -webkit-transform: rotateX(180deg);
  transform: rotateX(180deg);
}
.comparison .table-comparison .tgl-flip:checked + .tgl-btn:after {
  -webkit-transform: rotateX(0);
  transform: rotateX(0);
  left: 0;
}
#sticky-header-on {
  overflow-y: auto;
  height: 80vh;
}
#sticky-header-on .table-comparison thead td {
  background-color: var(--color__white);
  position: sticky;
  top: 0;
}
#sticky-header-on::-webkit-scrollbar {
  width: 0;
  border-bottom: var(--row_border);
}
#sticky-header-on::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar_bg-color);
}
#sticky-header-on::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-hover_bg-color);
}
@media (min-width: 767px) {
  .comparison .table-comparison {
    margin-top: initial;
  }
  .comparison .table-comparison thead tr th,
  .comparison .table-comparison tbody tr th {
    position: sticky;
    left: 0;
    border-left: 0;
    z-index: 11;
  }
}
