.mcp-scroll-container {
  position: relative;
}

.mcp-scroll-container .mcp-arrow {
  margin: 0;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
  color: inherit;
  position: absolute;
  top: 177px;
  transform: translateY(-50%);
  z-index: 2;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  & svg {
    width: 25px;
    height: 25px;
    color: #666666;
  }
}

.mcp-scroll-container .mcp-arrow:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mcp-arrow-left {
  left: 140px;
}

.mcp-arrow-right {
  right: -22px;
}

.mcp-arrow[disabled] {
  display: none;
}

.mcp-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  scroll-snap-type: x proximity;
}

.mcp-table th:not(:first-child),
.mcp-table td:not(.mcp-label) {
  scroll-snap-align: start;
  scroll-margin-left: 160px;
}

.mcp-table {
  font-size: 15px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: Arial, sans-serif;
}

.mcp-table tbody tr:hover > td {
  background-color: #e8e8e8 !important;
}

.mcp-wrapper .mcp-table th,
.mcp-wrapper .mcp-table td {
  border-left: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  border-right: none;
  border-top: none;
  padding: 12px;
  text-align: left;
}
.mcp-wrapper .mcp-table th:first-of-type {
  border-left: none;
}
.mcp-product-image {
  max-width: 250px !important;
  max-height: 300px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.mcp-table th {
  background: #fff !important;
  font-weight: 600;
}

.mcp-table th:first-child,
.mcp-label {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 #e5e5e5;
}

.mcp-table th {
  vertical-align: bottom;
  position: relative;
}

.mcp-scroll-container .mcp-remove-product {
  margin: 0;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 45px;
  height: 45px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 32px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcp-scroll-container .mcp-remove-product:hover {
  color: #e05555;
}

.mcp-remove-product:active,
.mcp-remove-product:focus,
.mcp-arrow:active,
.mcp-arrow:focus {
  outline: none;
}

table.mcp-table tbody > tr:nth-child(even) > td {
  background: #f5f5f5;
}

table.mcp-table tbody > tr:nth-child(odd) > td {
  background: #fff;
}

table.mcp-table tbody > tr:last-of-type > td {
  border-bottom: none;
}

.mcp-label {
  text-align: left !important;
  font-weight: 600;
  background: #fff;
  border-left: none !important;
}

#mcp-run-compare:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.mcp-compare-check {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 30px;
  &:hover input:not(:checked) {
    border-color: black !important;
  }
}

.mcp-compare-check input[type="checkbox"] {
  appearance: none;
  min-width: 24px;
  height: 24px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  position: relative;
}

.mcp-compare-check input[type="checkbox"]:focus {
  outline: none;
}

.mcp-compare-check input[type="checkbox"]:checked {
  background-color: #3ab778;
  border-color: transparent;
}

.mcp-icon-yes,
.mcp-icon-no {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
  vertical-align: middle;
}

.mcp-icon-yes::after {
  content: "";
  position: absolute;
  left: 1px;
  top: -4px;
  width: 8px;
  height: 12px;
  border: 3px solid #3ab778;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.mcp-icon-no::before,
.mcp-icon-no::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% - 2px);
  width: 14px;
  height: 3px;
  background: #e05555;
}

.mcp-icon-no::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mcp-icon-no::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mcp-compare-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 12px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -60%) rotate(45deg);
}

.mcp-row-identical td:not(.mcp-label) {
  color: #b0b0b0;
}

.mcp-row-identical .mcp-icon-yes,
.mcp-row-identical .mcp-icon-no {
  opacity: 0.4;
}

.mcp-cell-label {
  display: none;
}

@media (max-width: 767px) {
  .mcp-wrapper .mcp-table th:nth-child(2),
  .mcp-wrapper .mcp-table td:nth-child(2) {
    border-left: none;
  }

  .mcp-label {
    border-left: 1px solid #e5e5e5 !important;
  }

  .mcp-table {
    table-layout: auto;
  }

  .mcp-table colgroup {
    display: none;
  }

  .mcp-table th:first-child,
  .mcp-label {
    display: none;
  }

  .mcp-table th:not(:first-child),
  .mcp-table td:not(.mcp-label) {
    max-width: calc(50vw - 23px);
    scroll-snap-align: start;
    scroll-margin-left: 0 !important;
    padding-top: 36px;
    padding-bottom: 12px;
    position: relative;
  }
  .mcp-table th:not(:first-child) {
    min-width: calc(50vw - 23px);
  }

  .mcp-cell-label {
    display: block;
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 13px;
    color: #888;
  }

  .mcp-scroll-container .mcp-arrow {
    top: 114px;
  }

  .mcp-arrow-left {
    left: -22px;
  }

  .mcp-product-image {
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: contain;
  }
  .mcp-icon-yes,
  .mcp-icon-no {
    margin-left: 5px;
  }
}
