/**
 * Right-to-left corrections for the redesigned product page.
 */

/* --- gallery --- */

.rtl .bpp-gallery__flash {
	left: auto;
	right: 16px;
}

.rtl .bpp-gallery__expand {
	right: auto;
	left: 16px;
}

.rtl .bpp-gallery__counter {
	left: auto;
	right: 16px;
}

.rtl .bpp-gallery__arrow--prev {
	left: auto;
	right: 0;
}

.rtl .bpp-gallery__arrow--next {
	right: auto;
	left: 0;
}

/* Slick's RTL mode already mirrors the track, so the chevrons need to point
   the other way to keep matching the direction of travel. */
.rtl .bpp-gallery__arrow svg {
	transform: scaleX(-1);
}

/* --- lightbox --- */

.rtl .bpp-lightbox__close {
	right: auto;
	left: 20px;
}

.rtl .bpp-lightbox__nav--prev {
	left: auto;
	right: 20px;
}

.rtl .bpp-lightbox__nav--next {
	right: auto;
	left: 20px;
}

.rtl .bpp-lightbox__nav svg {
	transform: scaleX(-1);
}

.rtl .bpp-lightbox__counter {
	transform: translateX(50%);
	left: auto;
	right: 50%;
}

@media (max-width: 767px) {
	.rtl .bpp-lightbox__nav--prev {
		right: 8px;
	}

	.rtl .bpp-lightbox__nav--next {
		left: 8px;
	}

	.rtl .bpp-lightbox__close {
		left: 12px;
		right: auto;
	}
}

/* --- summary + sticky bar --- */

.rtl .bpp-sticky-cart {
	box-shadow: 0 -6px 24px rgba(16, 61, 98, 0.1);
}

.rtl .single-product .product_meta {
	text-align: right;
}
