/* rm_cart_crossselling - prodotti consigliati nel carrello */
.rmcs { margin-top: 1.5rem; }
.rmcs__title { font-size: 1.25rem; font-weight: 300; margin: 0 0 1rem; text-transform: none; }
.rmcs__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.rmcs__item {
  display: flex; flex-direction: column; text-align: center;
  transition: opacity .3s ease;
}
.rmcs__item.is-added { opacity: 0; }
.rmcs__img { display: block; margin-bottom: .5rem; }
.rmcs__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.rmcs__name { font-size: .95rem; font-weight: 400; line-height: 1.3; margin: 0 0 .35rem; flex-grow: 1; }
.rmcs__name a { color: inherit; text-decoration: none; }
.rmcs__name a:hover { text-decoration: underline; }
.rmcs__price { margin-bottom: .6rem; font-weight: 600; }
.rmcs__price-old { text-decoration: line-through; font-weight: 400; opacity: .6; margin-right: .35rem; font-size: .9em; }
.rmcs__form { margin: 0; }
.rmcs .rmcs__btn {
  display: block; width: 100%; margin: 0; min-height: 44px; padding: .55rem .5rem;
  border-radius: 5px; font-size: 15px; font-weight: 400; line-height: 1.3; text-transform: none;
  white-space: normal; box-shadow: none; transition: background-color .2s ease, color .2s ease;
}
/* verde CTA dello shop (come "Procedi con il checkout"); nel carrello il tema rende .btn-primary grigio */
.rmcs .rmcs__btn--add { background: #5ba718; border: 1px solid #5ba718; color: #fff; }
.rmcs .rmcs__btn--add:hover, .rmcs .rmcs__btn--add:focus { background: #4c8c14; border-color: #4c8c14; color: #fff; }
.rmcs .rmcs__btn--choose { background: #fff; border: 1px solid #5ba718; color: #5ba718; }
.rmcs .rmcs__btn--choose:hover, .rmcs .rmcs__btn--choose:focus { background: #5ba718; color: #fff; }

@media (max-width: 767px) {
  .rmcs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

/* ---------- Carrello laterale: slider a card singola ---------- */
.rmcs-sb { padding: 18px 20px 22px; background: #fff; }
.rmcs-sb__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rmcs-sb__title { font-size: 16px; font-weight: 400; margin: 0; text-transform: none; line-height: 1.3; }
.rmcs-sb__nav { display: flex; gap: 6px; flex-shrink: 0; }
.rmcs-sb__arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d6d6d6; background: #fff; color: #333;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 0 2px; font-size: 20px; line-height: 1;
}
.rmcs-sb__arrow:hover { border-color: #5ba718; color: #5ba718; }
.rmcs-sb__arrow[disabled] { opacity: .35; cursor: default; border-color: #d6d6d6; color: #333; }
.rmcs-sb__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0; padding: 0; list-style: none;
}
.rmcs-sb__track::-webkit-scrollbar { display: none; }
.rmcs-sb__slide {
  flex: 0 0 100%; scroll-snap-align: start; display: flex; gap: 14px; align-items: center;
  border: 1px solid #ececec; border-radius: 8px; padding: 12px; box-sizing: border-box;
}
.rmcs-sb__img { flex: 0 0 92px; }
.rmcs-sb__img img { display: block; width: 92px; height: 92px; object-fit: contain; }
.rmcs-sb__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rmcs-sb__name { font-size: 15px; font-weight: 400; line-height: 1.3; margin: 0; }
.rmcs-sb__name a { color: inherit; text-decoration: none; }
.rmcs-sb__price { font-size: 17px; font-weight: 700; }
.rmcs-sb__price-old { font-size: 13px; font-weight: 400; text-decoration: line-through; opacity: .6; margin-right: 4px; }
.rmcs-sb__form { margin: 0; }
.rmcs .rmcs-sb__btn, .rmcs-sb .rmcs-sb__btn {
  display: block; width: 100%; min-height: 38px; margin: 0; border-radius: 5px; border: 1px solid #5ba718;
  background: #5ba718; color: #fff; font-size: 14px; line-height: 1.3; padding: 8px; cursor: pointer;
  text-align: center; text-decoration: none; text-transform: none;
}
.rmcs-sb .rmcs-sb__btn:hover { background: #4c8c14; border-color: #4c8c14; color: #fff; }
.rmcs-sb .rmcs-sb__btn--choose { background: #fff; color: #5ba718; }
.rmcs-sb .rmcs-sb__btn--choose:hover { background: #5ba718; color: #fff; }
.rmcs-sb__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.rmcs-sb__dot { width: 7px; height: 7px; border-radius: 4px; background: #d6d6d6; border: 0; padding: 0; cursor: pointer; transition: width .2s ease; }
.rmcs-sb__dot.is-active { background: #5ba718; width: 18px; }
