/* The Optional Accessories list and cart buttons on standard product pages (dash cams with optional
   accessories), copied from dashcam-oem.css so these pages look like the VIOFO pages without the rest
   of that stylesheet. src/site/accessories.ts draws the markup; js/dashcam-cart.js makes it work. */

.csi-dashcam-box {
  margin-top: 20px;
}

/* The photo beside a long accessory list: as wide as its column (the page asks for a bigger
   image) and kept in view while the list scrolls by. Phones stack the two, as before. */
@media only screen and (min-width: 671px) {
  .product--accessories .product_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .product--accessories .product_head:after {
    display: none;
  }

  .product--accessories .product_head .product_picture {
    float: none;
    position: sticky;
    top: 12rem;
  }

  .product--accessories .product_info {
    float: none;
  }
}

.viofo-side-accs {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.viofo-side-acc {
  display: grid;
  grid-template-columns: 22px 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.viofo-side-acc__check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viofo-side-acc__check input {
  width: 18px;
  height: 18px;
  accent-color: #c41230;
}

.viofo-side-acc img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.viofo-side-acc h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 650;
}

.viofo-side-acc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.viofo-side-acc__price {
  color: #c41230;
  font-weight: 700;
  font-size: 15px;
}

.viofo-side-acc__qty {
  display: inline-flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.viofo-side-acc__qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #f6f6f6;
  cursor: pointer;
}

.viofo-side-acc__qty input {
  width: 36px;
  height: 28px;
  border: 0;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  text-align: center;
}

.viofo-side-acc select {
  width: 100%;
  margin-top: 6px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.viofo-oem-accessories-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.csi-dashcam-box .oem-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.csi-dashcam-box .oem-add-cart,
.csi-dashcam-box .oem-go-cart {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--viofo-red, #e60012);
  cursor: pointer;
  line-height: 1.2;
}

.csi-dashcam-box .oem-add-cart {
  background: var(--viofo-red, #e60012);
  color: #fff;
}

.csi-dashcam-box .oem-go-cart {
  background: #fff;
  color: var(--viofo-red, #e60012);
}

.csi-dashcam-box .oem-add-cart:hover,
.csi-dashcam-box .oem-go-cart:hover {
  opacity: 0.9;
}

.csi-dashcam-box .oem-cart-feedback {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
}

.csi-dashcam-box .oem-go-cart-count {
  font-weight: 700;
}
