.matching-products {
  max-width: 800px;
  margin: 2em auto;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.matching-products h2 {
  font-size: 22px;
  font-weight: 400;
  color: #151616;
  margin-bottom: 1.5em;
}

.match-look-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 1.5em;
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-select {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.product-select input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.product-select input[type="checkbox"]:checked + .checkmark {
  background: #151616;
  border-color: #151616;
}

.product-select input[type="checkbox"]:checked + .checkmark:after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.product-image {
  width: 100px;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-details {
  flex-grow: 1;
}

.product-details h3 {
  font-size: 14px;
  color: #222222;
  margin: 0 0 0.5em;
  font-weight: 400;
}

.variation-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0.5em 0;
}

.variation-select-wrapper {
  flex: 1;
  min-width: 120px;
}

.variation-select {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 0.9em;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7em top 50%;
  background-size: 0.65em auto;
  padding-right: 2em;
}

.variation-select:focus {
  outline: none;
  border-color: #151616;
}

.product-price {
  font-weight: bold;
  color: #222222;
  font-size: 13px;
}

.match-look-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  margin-top: 1em;
  border-top: 1px solid #ddd;
}

.total-label {
  font-size: 1.2em;
  color: #151616;
}

.total-amount {
  font-size: 1.4em;
  font-weight: bold;
  color: #151616;
}

.match-look-checkout {
  width: 100%;
  padding: 1em;
  background: #151616;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.match-look-checkout:hover {
  background: #151614;
}

@media (max-width: 600px) {
  .product-card {
    flex-direction: column;
    text-align: center;
  }

  .product-select {
    align-self: flex-start;
  }

  .product-image {
    width: 150px;
    margin: 0 auto;
  }

  .variation-select {
    width: 100%;
  }
}

.variation-select-wrapper {
  margin-bottom: 10px;
  position: relative;
}

.variation-select-wrapper.has-error .variation-select {
  border-color: #dc3545;
}

.variation-error {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 4px;
}

/* Optional: Add some animation */
.variation-error {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
