/* Recommendations only. Includes the existing mobile cart order. */
.rs-rec-wrap { min-width: 0; max-width: 100%; }
.rs-rec-wrap .rs-rec {
    margin: 24px 0; padding: 18px; border: 1px solid #802c62;
    border-radius: 16px; background: #802c62; direction: rtl;
    box-sizing: border-box; min-width: 0; max-width: 100%;
}
.rs-rec-wrap .rs-rec-heading {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}
.rs-rec-wrap .rs-rec-title {
    margin: 0; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.6;
}
.rs-rec-wrap .rs-rec-controls { display: flex; gap: 8px; flex-shrink: 0; }
.rs-rec-wrap .rs-rec-controls[hidden] { display: none; }
.rs-rec-wrap .rs-rec-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.55); border-radius: 50%;
    background: #fff; color: #802c62; cursor: pointer;
}
.rs-rec-wrap .rs-rec-arrow:disabled { opacity: .4; cursor: default; }
.rs-rec-wrap .rs-rec-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rs-rec-wrap .rs-rec-slider {
    --rs-rec-card-width: 46%;
    position: relative; display: block; width: 100%; min-width: 0; max-width: 100%;
    overflow-x: auto; overflow-y: hidden; direction: rtl;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
}
.rs-rec-wrap .rs-rec-slider::-webkit-scrollbar { display: none; width: 0; height: 0; }
.rs-rec-wrap .rs-rec-track {
    position: relative; display: flex; align-items: stretch; gap: 12px;
    width: 100%; height: auto; box-sizing: content-box;
    transition-property: transform;
}
.rs-rec-wrap .rs-rec-slider.swiper-initialized {
    overflow: hidden; scroll-snap-type: none; touch-action: pan-y;
}
.rs-rec-wrap .rs-rec-slider.swiper-initialized .rs-rec-track { gap: 0; }
.rs-rec-wrap .rs-rec-slider .rs-rec-slide {
    position: relative; display: flex; height: auto; min-width: 0;
    width: var(--rs-rec-card-width); max-width: var(--rs-rec-card-width);
    flex: 0 0 var(--rs-rec-card-width); box-sizing: border-box;
    scroll-snap-align: start;
}
.rs-rec-wrap .rs-rec-card {
    display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch;
    width: 100%; min-width: 0; padding: 12px; box-sizing: border-box;
    border: 1px solid #e9edf5; border-radius: 12px;
    color: #1f2937; background: #fff; text-decoration: none;
}
.rs-rec-wrap .rs-rec-card:hover { border-color: #a9b8dd; }
.rs-rec-wrap .rs-rec-card:focus-visible { outline: 2px solid #364e96; outline-offset: -3px; }
.rs-rec-wrap .rs-rec-card img {
    display: block; width: 100%; height: 140px; flex-shrink: 0;
    object-fit: contain; background: #fff;
}
.rs-rec-wrap .rs-rec-name {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; min-height: 44px; margin: 10px 0;
    overflow-wrap: anywhere; color: #1f2937;
    font-size: 13px; font-weight: 500; line-height: 22px;
}
.rs-rec-wrap .rs-rec-price {
    margin-top: auto; color: #111827; font-size: 13px; font-weight: 700; line-height: 1.8;
}
.rs-rec-wrap .rs-rec-action { margin-top: 10px; color: #364e96; font-size: 12px; line-height: 1.8; }
.rs-rec-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-rec-chips a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
    border: 1px solid #dce3f3; border-radius: 24px; color: #364e96;
    background: #f7f9fd; font-size: 13px; text-decoration: none;
}
.rs-rec-chips a:focus-visible { outline: 2px solid #364e96; outline-offset: 2px; }

/* Products -> recommendations -> order summary on mobile. */
.rs-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rs-cart-layout > .rs-cart-items,
.rs-cart-layout > .rs-cart-summary,
.rs-cart-layout > .rs-rec-wrap { min-width: 0; }
.rs-cart-layout > .rs-rec-wrap .rs-rec { margin: 0; }
@media (min-width: 640px) {
    .rs-cart-layout { gap: 24px; }
    .rs-rec-wrap .rs-rec-slider { --rs-rec-card-width: calc((100% - 24px) / 3); }
}
@media (min-width: 1024px) {
    .rs-rec-wrap .rs-rec-slider { --rs-rec-card-width: calc((100% - 48px) / 5); }
    .rs-rec-wrap .rs-rec-card img { height: 150px; }
    .rs-cart-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .rs-cart-layout > .rs-cart-items { grid-column: 1; grid-row: 1; }
    .rs-cart-layout > .rs-cart-summary { grid-column: 2; grid-row: 1; }
    .rs-cart-layout > .rs-rec-wrap { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1280px) {
    .rs-rec-wrap .rs-rec-slider { --rs-rec-card-width: calc((100% - 60px) / 6); }
}
@media (max-width: 479px) {
    .rs-rec-wrap .rs-rec { padding: 14px; }
    .rs-rec-wrap .rs-rec-card { padding: 10px; }
    .rs-rec-wrap .rs-rec-arrow { width: 44px; height: 44px; }
}
