:host {
  display: block;
}

.s-bought-together-checkbox:checked ~ .s-bought-together-checkmark {
  background-color: var(--color-primary, #2ECC71);
  border-color: var(--color-primary, #2ECC71);
}
.s-bought-together-checkbox:checked ~ .s-bought-together-checkmark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.s-bought-together-entry {
  display: block;
  background-color: #fff;
  padding: 1.25rem;
  border-radius: 0.375rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.s-bought-together-header {
  margin-bottom: 1rem;
}

.s-bought-together-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #111827;
}

.s-bought-together-subtitle {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  margin: 0;
}

.s-bought-together-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.s-bought-together-list > * + * {
  border-top: 1px solid #f3f4f6;
}

.s-bought-together-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: opacity 200ms;
}
.s-bought-together-item--unchecked {
  opacity: 0.4;
}

.s-bought-together-checkbox-label {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.s-bought-together-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.s-bought-together-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
  flex-shrink: 0;
}

.s-bought-together-item-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.s-bought-together-item-img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.s-bought-together-item-name {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.375;
}

.s-bought-together-item-price {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.s-bought-together-btn {
  width: 100%;
}

.s-bought-together-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.s-bought-together-skeleton-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.s-bought-together-skeleton-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.s-bought-together-skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}