/* START_SNIPPET:ocd-product-carousel (INDEX:210) */
ocd-product-carousel {
  display:block; min-width:0; max-width:100%; container-type:inline-size;
  color:#1b1b1b; background:#fff; border:1px solid #ddd; border-radius:5px; overflow:hidden;
}
.ocd-pair-head { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:4px 10px 4px 14px; background:#1b1b1b; color:white; }
.ocd-pair-head h2 { margin:0; padding-inline-start:0; border:0; color:white; font-size:16px; line-height:1.2; }
.ocd-pair-nav { display:flex; gap:4px; }
.ocd-pair-nav[hidden] { display:none; }
.ocd-pair-nav button { width:40px; height:40px; padding:0; border:0; border-radius:3px; background:#323232; color:white; font:700 26px/1 sans-serif; cursor:pointer; }
.ocd-pair-nav button:hover:enabled { background:#00e400; color:#111; }
.ocd-pair-nav button:disabled { opacity:.35; cursor:default; }
ocd-product-carousel .ocd-pair-track {
  display:flex; gap:10px; align-items:stretch; overflow-x:auto; overscroll-behavior-x:contain;
  list-style:none; margin:0; padding:10px; scroll-padding-inline:10px; scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.ocd-pair-card {
  display:flex; flex-direction:column; box-sizing:border-box; flex:0 0 clamp(146px,40%,196px);
  min-width:0; padding:10px; margin:0; scroll-snap-align:start;
  border:1px solid #ddd; border-radius:3px; background:#fff; overflow-wrap:anywhere;
}
.ocd-pair-link { display:grid; gap:4px; color:inherit; text-decoration:none; }
.ocd-pair-image { display:block; width:100%; height:clamp(76px,15cqi,94px); object-fit:contain; margin-bottom:3px; }
.ocd-pair-vendor { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#555; }
.ocd-pair-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13px; line-height:1.25; min-height:2.5em; }
.ocd-pair-link:hover .ocd-pair-title, .ocd-pair-link:focus-visible .ocd-pair-title { text-decoration:underline; }
ocd-product-carousel .ocd-pair-track::-webkit-scrollbar { display:none; }
.ocd-pair-stock { display:flex; align-items:center; min-height:23px; margin-top:4px; color:#777; }
ocd-product-carousel .ocd-pair-stock :is(.badge-stock,.ocd-inventory-row) { display:inline-flex !important; }
.ocd-pair-stock .badge-stock, .ocd-pair-stock > :only-child:not(:has(.badge-stock)) {
  width:fit-content; max-width:100%; position:static; border:1px solid currentColor;
  border-radius:999px; padding:3px 8px; background-color:color-mix(in srgb,currentColor 8%,white);
  font-size:11px; line-height:1.25; font-weight:700; box-sizing:border-box;
}
.ocd-pair-stock-green :is(.badge-stock,:only-child) { color:#008700; }
.ocd-pair-price { margin:3px 0 0; min-height:32px; display:flex; flex-direction:column; justify-content:flex-end; }
ocd-product-carousel .ocd-pair-card .ocd-pair-price,
ocd-product-carousel .ocd-pair-card .ocd-pair-price * {
  font-size:15px !important; font-weight:700 !important; line-height:1.15 !important;
}
ocd-product-carousel .ocd-pair-card .ocd-pair-price :is(s,del,s *,del *) {
  font-size:11px !important; font-weight:400 !important;
}
.ocd-pair-price > :first-child { margin-block:0; }
.ocd-pair-action { margin-top:auto; padding-top:8px; }
.ocd-pair-action, .ocd-pair-action :is(product-form,form,.product-actions,.product-actions-add-to-cart) { display:block; width:100%; max-width:none; }
ocd-product-carousel .ocd-pair-action .button {
  display:flex; align-items:center; justify-content:center; box-sizing:border-box;
  width:100%; max-width:none; min-width:0; padding:8px; font-size:13px;
  background:#1b1b1b linear-gradient(#00e400,#00e400) left center / 0% 100% no-repeat;
  color:white; transition:background-size .24s ease,color .24s ease;
}
ocd-product-carousel .ocd-pair-action .button::before,
ocd-product-carousel .ocd-pair-action .button::after { content:none; }
@media (hover:hover) {
  ocd-product-carousel .ocd-pair-action .button:not(:disabled):not([aria-disabled="true"]):hover {
    background-size:100% 100%; color:#111;
  }
}
ocd-product-carousel .ocd-pair-action .button:focus-visible { background-size:100% 100%; color:#111; }
@media (prefers-reduced-motion:reduce) { ocd-product-carousel .ocd-pair-action .button { transition:none; } }
ocd-product-carousel :focus-visible { outline:2px solid #008400; outline-offset:-2px; }

/* On tune pages, lay out SC's form fields and purchase controls on
   either side of the recommendations. All form ownership stays native. */
.product-info:has(> product-form .ocd-tune-actions):has(> product-form > form > .bold_options_loaded):has(> product-recommendations ocd-product-carousel) {
  display: flex;
  flex-direction: column;
  reading-flow: flex-visual;
}
.product-info:has(> product-form .ocd-tune-actions):has(> product-form > form > .bold_options_loaded):has(> product-recommendations ocd-product-carousel) {
  & > product-form.product-form,
  & > product-form.product-form > form[data-event-context="MainProductPage"] { display: contents; }

  & > product-form > form > .bold_options_loaded { margin-block-end:0 !important; }
  & > product-form > form > .bold_options_loaded > .bold_option_set:last-child { margin-block-end:0 !important; }
  & > product-recommendations:has(ocd-product-carousel) {
    order:1; min-width:0; display:block; margin-block-start:8px !important; padding-block-start:0 !important;
  }
  & > product-recommendations > ocd-product-carousel { margin-block-start:0; }
  & > product-form > form > .product-actions,
  & > product-form > form > .product-actions ~ :not(.bold_options) { order: 2; }

  & > product-form.product-form ~ :not(product-recommendations) { order: 3; }
}
/* END_SNIPPET:ocd-product-carousel */
