/* main css ---*/
.rzcps-wrapper{
    padding:0;
    margin:0;
    display: block;
    background: #f3f3f3;
}
.rzcps-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    background: transparent;
    margin:0;
}
.rzcps-container.vertical {
    height: 200px;
    background: transparent;
}
.rzcps {
    display: flex;
    flex-direction: row;
    will-change: transform;
    gap: 0;
}
.rzcps-container.vertical .rzcps {
    flex-direction: column;
    white-space: normal;
}
.rzcps-container.vertical.marquee .rzcps{
    gap:20px;
}
.rzcps .item {
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
    padding:0;
    margin-top:5px;
    margin-bottom:5px;
}
.rzcps-container.horizontal{
    display:flex;
    flex-direction: row;
    gap:20px;
}
.rzcps-container.horizontal .rzcps .item{
    height: auto;
}
.rzcps-container.vertical .rzcps .item {
    white-space: normal;
    padding:0;
    flex-direction: row;
    align-items: flex-start;
    overflow: hidden;
}
.rzcps-title {
    color: rgb(30, 128, 5);
    background: rgb(206, 253, 194);
    padding: 5px 10px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    position:relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Thumbnail image */
.rzcps-container .content-wrapper .thumb{
    height:60px;
    width:60px;
    display: block;
}
.rzcps-container .content-wrapper .thumb img {
    width: auto;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.rzcps .content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    font-size:12px;
    font-weight: 400;
}
.rzcps-container .content.grouped{
    --cols: 4;                            /* default/fallback */
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.rzcps-container .content.grouped .group-item{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width:100%;
    text-decoration: none;
    outline: none;
    text-decoration: none;
}
.rzcps-container .content.grouped .group-item .content-wrapper{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.rzcps-container .content.grouped .group-item .content-wrapper .text-wrapper{
    flex:1;
}
.rzcps-container .content.grouped .group-item .content-wrapper.style1{
    flex-direction: column;
    gap:5px;
}
.rzcps-container .content.grouped .group-item .content-wrapper.style2{
    flex-direction: row;
    gap:10px;
}
/* .rzcps-container.horizontal .content.grouped{
    display:grid;
    grid-template-columns:repeat(4, 1fr); 
    gap:5px;  
    width:100%;
}
.rzcps-container.horizontal .content.grouped .group-item{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width:100%;
} */
/* Title link */
.rzcps .item-title {
    color: #333;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
}
.rzcps .product-regular-price{
    font-size:12px;
    color:#666;
}
.rzcps .product-sale-price{
    font-size:12px;
    color:#c0392b;
}
/* Date text */
.rzcps .date {
    font-size: 10px;
    color: #777;
}
.rzcps.fade .item {
    display: none;
    transition: opacity 0.5s ease;
}
.rzcps-container{
    overflow: hidden;
}
.rzcps-container.horizontal.marquee .rzcps .item{
    margin-right:20px;
}
.rzcps-container.vertical .rzcps .content {
    align-items: flex-start;
}
.rzcps .excerpt {
    font-size: 12px;
    color: #555;
    line-height: 1.2;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;        /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top:10px;
}
.rzcps-item-icon {
    margin-right: 6px;
    display: inline-block;
}
.rzcps-item-icon img{
    height:100%;
    width: 100%;
    object-fit: cover;
}
.rzcps-xml-guideline{
    font-size:12px; color:#555; margin-top:5px; max-width: 600px;
}
.rzcps .link-xml{
    color: #0066cc;
}
.rzcps .old-price {
    text-decoration: line-through;
    color: #d9534f; 
    font-weight: normal;
}
.rzcps .new-price {
    color: #5cb85c;
    font-weight: bold;
}
/* ───────────────────────────────────────────────
   RTL support
   Add class="rtl" to .rzcps-container in PHP
   ────────────────────────────────────────────── */
.rzcps-container.rtl{
    flex-direction: row-reverse; 
}
/* 1. Flip the belt direction in horizontal mode */
.rzcps-container.horizontal.rtl .rzcps {
    flex-direction: row-reverse;   /* items flow right→left */
}
/* 2. Align text in cards */
.rzcps-container.horizontal.rtl .item,
.rzcps-container.horizontal.rtl .rzcps-title{
    direction: rtl;                /* bidi handling        */
    text-align: right;             /* visual alignment     */
}
.rzcps-container.rtl .rzcps-item-icon {
    margin-right: 0;
    margin-left:6px;
}
/* 3. Marquee animation: run in reverse */
.rzcps-container.horizontal.marquee.rtl .rzcps {
    animation-direction: reverse;
}
/* 4. If you ever enable grouped grid in horizontal,
      grid itself doesn’t care about direction,
      but text inside might: */
.rzcps-container.horizontal.rtl .content.grouped .group-item{
    direction: rtl;
    text-align: right;
}
/* 5. Vertical sliders need almost no change,
      but you may want right‑aligned titles / prices: */
.rzcps-container.vertical.rtl .item-title,
.rzcps-container.vertical.rtl .excerpt,
.rzcps-container.vertical.rtl .date,
.rzcps-container.vertical.rtl .old-price,
.rzcps-container.vertical.rtl .new-price,
.rzcps-container.vertical.rtl .product-price
{
    direction: rtl;
    text-align: right;
}
.rzcps-container.vertical.rtl .content.grouped .group-item{
    direction: rtl;
}
.rzcps-container.vertical.rtl .content.grouped .group-item .content-wrapper{
    direction: rtl;
}
