/* عرض البندل في صفحة المنتج والسلة. */

.ss-bundle {
	margin: 0 0 1.5em;
}

.ss-bundle__intro,
.ss-bundle__outro {
	margin: 0 0 1em;
}

.ss-bundle__items {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
	border: 1px solid rgba( 0, 0, 0, .09 );
	border-radius: 10px;
	overflow: hidden;
}

.ss-bundle--grid .ss-bundle__items {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 1px;
	background: rgba( 0, 0, 0, .09 );
	border: 0;
}

.ss-bundle__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	margin: 0;
	background: #fff;
	border-bottom: 1px solid rgba( 0, 0, 0, .06 );
}

.ss-bundle--grid .ss-bundle__item {
	border-bottom: 0;
}

.ss-bundle__item:last-child {
	border-bottom: 0;
}

.ss-bundle__item.is-unavailable {
	opacity: .55;
}

.ss-bundle__item.is-optional:not( .is-selected ) .ss-bundle__thumb img {
	filter: grayscale( 1 );
}

.ss-bundle__check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
}

.ss-bundle__label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	margin: 0;
	cursor: pointer;
}

.ss-bundle__thumb {
	flex: 0 0 56px;
}

.ss-bundle__thumb img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.ss-bundle__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ss-bundle__name {
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.ss-bundle__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: .875em;
	opacity: .8;
}

.ss-bundle__qty {
	width: 60px;
	padding: 2px 6px;
}

.ss-bundle__stock {
	color: #b32d2e;
}

.ss-bundle__summary {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 1em;
	font-size: 1.15em;
}

.ss-bundle__summary-price {
	font-weight: 700;
	font-size: 1.2em;
}

.ss-bundle__summary-was {
	opacity: .6;
}

.ss-bundle__summary-save {
	padding: 2px 8px;
	border-radius: 999px;
	background: #d63638;
	color: #fff;
	font-size: .75em;
	font-weight: 700;
}

.ss-bundle__error {
	margin: 0 0 1em;
	color: #b32d2e;
	font-size: .9em;
}

.ss-bundle__submit.disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* السلة والطلب. */

.ss-bundle-child .ss-bundle-child__marker {
	opacity: .45;
	margin-inline-end: 4px;
}

.ss-bundle-child td,
.ss-bundle-child th {
	opacity: .85;
}

.ss-bundle-child__qty {
	opacity: .7;
}

/* تبويب التقييمات المجمّعة. */

.ss-reviews__summary {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0 0 1.2em;
	padding: 14px 16px;
	border: 1px solid rgba( 0, 0, 0, .09 );
	border-radius: 10px;
}

.ss-reviews__score {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
}

.ss-reviews__score strong {
	font-size: 2em;
	line-height: 1;
}

.ss-reviews__bars {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 220px;
	min-width: 200px;
}

.ss-reviews__bars li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 3px;
	font-size: .8em;
}

.ss-reviews__bar-label {
	flex: 0 0 32px;
	white-space: nowrap;
}

.ss-reviews__bar {
	flex: 1 1 auto;
	height: 7px;
	border-radius: 999px;
	background: rgba( 0, 0, 0, .08 );
	overflow: hidden;
}

.ss-reviews__bar > span {
	display: block;
	height: 100%;
	background: #f0a12e;
}

.ss-reviews__bar-count {
	flex: 0 0 48px;
	text-align: end;
	opacity: .6;
}

.ss-reviews__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 1em;
}

.ss-reviews__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba( 0, 0, 0, .14 );
	border-radius: 999px;
	font-size: .82em;
	line-height: 1.3;
	text-decoration: none;
	color: inherit;
	background: transparent;
	transition: background .15s ease, border-color .15s ease;
}

.ss-reviews__chip:hover {
	border-color: rgba( 0, 0, 0, .3 );
}

.ss-reviews__chip.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

.ss-reviews__chip-count {
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba( 0, 0, 0, .08 );
	font-size: .9em;
}

.ss-reviews__chip.is-active .ss-reviews__chip-count {
	background: rgba( 255, 255, 255, .22 );
}

.ss-reviews__body {
	position: relative;
	min-height: 80px;
	transition: opacity .15s ease;
}

.ss-reviews__body.is-loading {
	opacity: .45;
	pointer-events: none;
}

.ss-reviews__meta {
	margin: 0 0 .8em;
	font-size: .82em;
	opacity: .6;
}

.ss-reviews__pagination {
	margin: 1.2em 0 0;
}

.ss-reviews__pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.ss-reviews__pagination li {
	margin: 0;
	border: 0;
}

.ss-reviews__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid rgba( 0, 0, 0, .14 );
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	font-size: .85em;
}

.ss-reviews__pagination .page-numbers.current {
	background: #111;
	border-color: #111;
	color: #fff;
}

.ss-reviews__pagination .page-numbers.dots {
	border-color: transparent;
}

/* اسم المنتج فوق التقييم المسحوب من مكوّن. */

.ss-bundle-review-source {
	margin: 0 0 .4em;
	font-size: .8em;
	opacity: .65;
}

.ss-bundle-review-source a {
	text-decoration: none;
}

/* صور التقييمات. */

.ss-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: .6em 0 0;
}

.ss-review-images__item img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
}

.ss-review-location {
	margin: 0 0 .3em;
	font-size: .8em;
	opacity: .6;
}
