/* WEB-1452: Impulse Cart Cross-Sell */
 
/* ======================== CART PAGE ======================== */
 
.cross-sell {
  padding: 24px 0;
}
 
.cross-sell__heading {
  font-family: var(--galls-font-gt-america-condensed);
  font-weight: var(--galls-fw-700);
  font-size: 18px;
  text-transform: capitalize;
  padding: 0 15px;
}
 
@media (min-width: 768px) {
  .cross-sell__heading {
    font-size: 22px;
    padding: 0;
  }
}
 
/* Cart page -- hide Quick View hover overlay, use Add button instead */
.cross-sell .hit-card .hit-header .hit-cta {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Cart page -- equal-height cards so Add buttons align across the row */
.cross-sell .slick-track {
  display: flex !important;
}
.cross-sell .slick-slide {
  height: auto !important;
}
.cross-sell .slick-slide > div {
  height: 100%;
}
.cross-sell .ais-Hits-item {
  height: 100%;
}
.cross-sell .hit-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cross-sell .hit-card .hit-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

/* "Add" button on cart page cards - matches cart drawer style */
.cross-sell .cross-sell__add-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 7px 0;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
 
.cross-sell .cross-sell__add-btn:hover {
  background: #e5e5e5;
}
.cross-sell .cross-sell__add-btn:active {
  transform: scale(0.97);
}
 
/* ======================== MINI CART ======================== */
 
/* No slide-up animation -- renders in-place inside scrollable content */
.cross-sell--mini-cart {
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid #e5e5e5;
  overflow: visible;
}
 
/* ---- Heading (simple label, no collapse) ---- */
 
.cross-sell--mini-cart .cross-sell__heading {
  font-size: 14px;
  font-weight: 400;
  padding: 0 16px;
}
 
.cross-sell--mini-cart .cross-sell__carousel {
  padding: 0 16px;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}
 
/* ---- Card overrides for narrow drawer ---- */
 
/* Tighter slide spacing -- equal-height slides, remove default double box-shadow */
.cross-sell--mini-cart .ais-Hits-item {
  padding: 0 8px;
  height: 100%;
  box-shadow: none;
  background: transparent;
}
 
/* Card body flex layout for consistent height */
.cross-sell--mini-cart .ais-Hits-item .card-body,
.cross-sell--mini-cart .ais-Hits-item .hit-body {
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
 
/* ---- Card styles for drawer-width cards ---- */
 
.cross-sell--mini-cart .hit-card {
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
 
/* Slick slide equal-height fix */
.cross-sell--mini-cart .slick-track {
  display: flex !important;
}
.cross-sell--mini-cart .slick-slide {
  height: auto !important;
    margin: 10px 0;
}
.cross-sell--mini-cart .slick-slide > div {
  height: 100%;
}
 
/* Image container -- square aspect ratio like backorder cards */
.cross-sell--mini-cart .hit-card .hit-header {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
}
 
/* Restore the subtle grey overlay (matches algolia_search.css) */
.cross-sell--mini-cart .hit-card .hit-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128, 128, 128, 3%);
  pointer-events: none;
  z-index: 1;
  display: block;
}
 
.cross-sell--mini-cart .hit-card .hit-header .hit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: unset;
  aspect-ratio: unset;
}
 
/* Quick View button -- HIDE the header overlay version entirely.
* The base .hit-cta hover shows a floating button on color-swatch hover -- unwanted.
* We use a dedicated Add button in hit-body instead. */
.cross-sell--mini-cart .hit-card .hit-header .hit-cta {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
 
/* Disable the hover zoom -- awkward in a narrow drawer */
.cross-sell--mini-cart .hit-card:hover .hit-image {
  transform: none;
}
 
/* Remove the grey hover overlay */
.cross-sell--mini-cart .hit-card:hover .hit-header::before {
  background-color: rgba(128, 128, 128, 8%);
}
 
/* Title */
.cross-sell--mini-cart .hit-title {
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
/* Brand */
.cross-sell--mini-cart .hit-brand {
  font-size: 11px;
}
 
/* Price */
.cross-sell--mini-cart .hit-price {
  font-size: 13px;
  font-weight: 600 !important;
  row-gap: 0 !important;
}
 
/* Star ratings -- hidden in mini cart */
.cross-sell--mini-cart .hit-rating {
  display: none !important;
}
 
/* Color swatches -- show but compact */
.cross-sell--mini-cart .hit-color {
  display: flex !important;
  margin-top: 4px;
}
.cross-sell--mini-cart .hit-color img,
.cross-sell--mini-cart .hit-color div.swatch {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50%;
  margin-right: 2px;
}
.cross-sell--mini-cart .hit-color-slider {
  gap: 2px;
}
 
/* Hide elements that truly don't fit in mini cart */
.cross-sell--mini-cart .hit-whyBuys,
.cross-sell--mini-cart .hit-whybuys,
.cross-sell--mini-cart .hit-social-proof,
.cross-sell--mini-cart .hit-stock-status,
.cross-sell--mini-cart .hit-banner,
.cross-sell--mini-cart .hit-tag-badge,
.cross-sell--mini-cart .hit-tag-inline,
.cross-sell--mini-cart .hit-wishlist,
.cross-sell--mini-cart #ab-test-gwp {
  display: none !important;
}
 
/* "Add" button at the bottom of each card -- matches backorder QV button style */
.cross-sell--mini-cart .cross-sell__add-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 7px 0;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}
.cross-sell--mini-cart .cross-sell__add-btn:hover {
  background: #e5e5e5;
}
.cross-sell--mini-cart .cross-sell__add-btn:active {
  transform: scale(0.97);
}
.cross-sell--mini-cart .cross-sell__add-btn:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
 
/* Slick arrows -- hidden by default, shown on desktop hover */
.cross-sell--mini-cart .slick-prev,
.cross-sell--mini-cart .slick-next {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 2;
  top: 35%;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cross-sell--mini-cart .slick-prev {
  left: 2px;
}
.cross-sell--mini-cart .slick-next {
  right: 2px;
}
 
/* Black chevron icons -- pure CSS, no Slick font dependency */
.cross-sell--mini-cart .slick-prev:before,
.cross-sell--mini-cart .slick-next:before {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1;
  color: #000;
  opacity: 1;
  -webkit-font-smoothing: antialiased;
  font: 10px 'FontAwesome';
}
 
.cross-sell--mini-cart .slick-prev:before {
  content: '\f053';
}
.cross-sell--mini-cart .slick-next:before {
  content: '\f054';
}
.site_Galls .cross-sell--mini-cart .slick-prev:before {
  margin-left: 60px;
}
.site_Galls .cross-sell--mini-cart .slick-next:before {
  margin-left: 34px;
}
 
/* Show arrows on carousel hover (desktop only) */
@media (min-width: 701px) {
  .cross-sell--mini-cart .cross-sell__carousel:hover .slick-prev,
  .cross-sell--mini-cart .cross-sell__carousel:hover .slick-next {
    opacity: 1;
  }
}
 
/* Hide arrows on mobile -- swipe only */
@media (max-width: 700px) {
  .cross-sell--mini-cart .slick-prev,
  .cross-sell--mini-cart .slick-next {
    display: none !important;
  }
}


 
/* Footer styles for variation drawer are in variation-drawer.css */