.rds-disclaimer {
	opacity: .7;
}

.rds-visit-steps {
	display: grid;
	font-size: 12px;
	gap: 7px;
	line-height: 1.6;
	margin: 16px 0 20px;
	padding-right: 22px;
}

.rds-visit-steps li::marker {
	color: var(--rds-gold);
	font-weight: 800;
}

.rds-sample-badge {
	background: #fff3d6;
	border: 1px solid #ebcd80;
	border-radius: 999px;
	color: #79520a;
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	margin: 0 0 10px;
	padding: 6px 10px;
}

.rds-card-body .rds-sample-badge {
	margin-left: 8px;
}

/* Keep the selectable scope easy to scan in RTL: selection and title sit at
 * the right edge, while the price is anchored to the opposite edge. */
.rds-line-item {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.rds-item-copy {
	min-width: 0;
	text-align: right;
}

.rds-item-price {
	justify-self: start;
	min-width: max-content;
	text-align: left;
	white-space: nowrap;
}

.rds-form-grid-compact .rds-span-2 {
	grid-column: 1 / -1;
}

.rds-customize {
	align-items: stretch;
	flex-direction: column;
}

.rds-customize-actions {
	display: grid;
	gap: 10px;
	width: 100%;
}

.rds-customize-actions .rds-button {
	align-items: center;
	gap: 9px;
	width: 100%;
}

.rds-whatsapp-button {
	background: #128c7e;
	color: #fff !important;
}

.rds-whatsapp-button:hover {
	background: #0e7368;
}

.rds-whatsapp-button svg {
	flex: 0 0 21px;
	height: 21px;
	width: 21px;
}

.rds-package-gallery[hidden],
.rds-package-scope[hidden] {
	display: none !important;
}

/* Product-page sequence: identity → five-image comparison → package cards →
 * reference facts → lead actions. Keeping these blocks full-width makes the
 * package comparison readable and prevents the cards from collapsing into a
 * narrow sidebar. */
.rds-design-hero {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.rds-design-intro {
	align-self: stretch;
	max-width: 1040px;
}

.rds-design-media {
	width: 100%;
}

.rds-package-gallery.is-5 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(190px, 285px));
}

.rds-package-gallery.is-5 figure,
.rds-package-gallery.is-5 figure.is-primary {
	aspect-ratio: auto;
	grid-column: auto;
	margin: 0;
	min-height: 0;
}

.rds-package-gallery.is-5 figure.is-primary {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
}

.rds-package-gallery figure {
	position: relative;
}

.rds-package-gallery.is-two figure:nth-child(2) {
	aspect-ratio: 2.35;
	grid-column: 1 / -1;
}

.rds-package-picker {
	border-top: 0;
	margin-top: 0;
	padding-top: 4px;
}

.rds-reference {
	margin: 0;
}

.rds-package-picker-head span,
.rds-package-picker-head strong {
	display: block;
}

.rds-package-picker-head span {
	color: var(--rds-muted);
	font-size: 12px;
}

.rds-package-picker-head strong {
	font-size: 16px;
	margin-top: 4px;
}

.rds-package-options {
	display: grid;
	gap: 9px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 14px;
}

.rds-package-options button {
	background: #fff;
	border: 1px solid var(--rds-line);
	border-radius: 14px;
	color: var(--rds-ink);
	cursor: pointer;
	min-height: 124px;
	padding: 14px;
	text-align: right;
}

.rds-package-options button:hover,
.rds-package-options button:focus-visible {
	border-color: var(--rds-purple);
	box-shadow: 0 0 0 3px rgba(93, 45, 131, .11);
	outline: 0;
}

.rds-package-options button.is-active {
	background: #f6f0fa;
	border-color: var(--rds-purple);
	box-shadow: inset 0 0 0 1px var(--rds-purple);
}

.rds-package-options button span,
.rds-package-options button strong,
.rds-package-options button small {
	display: block;
}

.rds-package-options button span {
	font-size: 13px;
	font-weight: 900;
}

.rds-package-options button span em {
	background: var(--rds-purple);
	border-radius: 999px;
	color: #fff;
	font-size: 9px;
	font-style: normal;
	margin-right: 5px;
	padding: 3px 6px;
}

.rds-package-options button strong {
	font-size: 18px;
	margin: 8px 0 5px;
}

.rds-package-options button small {
	color: var(--rds-muted);
	font-size: 10px;
	line-height: 1.55;
}

.rds-package-summary {
	background: #f7f3f9;
	border: 1px solid var(--rds-line);
	border-radius: 14px;
	margin-bottom: 14px;
	padding: 15px 17px;
}

.rds-package-summary strong,
.rds-package-summary span {
	display: block;
}

.rds-package-summary span {
	color: var(--rds-muted);
	font-size: 13px;
	line-height: 1.7;
	margin-top: 4px;
}

.rds-active-package {
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	margin: 0 0 13px;
}

.rds-active-package strong {
	color: #fff;
}

.rds-content-hub {
	border-top: 1px solid var(--rds-line);
	margin-top: 72px;
	padding-top: 62px;
}

.rds-content-head {
	max-width: 900px;
}

.rds-content-head h2 {
	font-size: clamp(32px, 4vw, 50px);
	letter-spacing: -.035em;
	line-height: 1.18;
	margin: 0 0 14px;
}

.rds-content-head p {
	color: var(--rds-muted);
	font-size: 17px;
	line-height: 1.85;
	margin: 0;
}

.rds-content-tabs {
	border-bottom: 1px solid var(--rds-line);
	display: flex;
	gap: 8px;
	margin-top: 30px;
	overflow-x: auto;
}

.rds-content-tabs button {
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	color: var(--rds-muted);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	min-width: max-content;
	padding: 14px 18px;
}

.rds-content-tabs button.is-active {
	border-bottom-color: var(--rds-purple);
	color: var(--rds-purple);
}

.rds-content-panel {
	padding-top: 34px;
}

.rds-content-panel[hidden] {
	display: none;
}

.rds-prose {
	max-width: 920px;
}

.rds-prose h2 {
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.3;
	margin: 40px 0 12px;
}

.rds-prose h2:first-child {
	margin-top: 0;
}

.rds-prose h3 {
	font-size: 21px;
	margin: 28px 0 8px;
}

.rds-prose p,
.rds-prose li {
	color: #514c58;
	font-size: 16px;
	line-height: 1.95;
}

.rds-prose a {
	color: var(--rds-purple);
	font-weight: 700;
}

.rds-market-sources {
	background: var(--rds-surface);
	border-radius: 16px;
	margin-top: 36px;
	padding: 22px;
}

.rds-market-sources p,
.rds-market-sources ul {
	font-size: 13px;
	margin: 8px 0;
}

.rds-market-sources ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding-right: 18px;
}

.rds-option-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rds-option-card {
	background: #fff;
	border: 1px solid var(--rds-line);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(35, 22, 44, .05);
	padding: 24px;
}

.rds-option-card > span {
	color: var(--rds-purple);
	font-size: 11px;
	font-weight: 900;
}

.rds-option-card.is-saving > span {
	color: #157347;
}

.rds-option-card h3 {
	font-size: 21px;
	line-height: 1.4;
	margin: 10px 0;
}

.rds-option-card > strong {
	color: var(--rds-purple);
	display: block;
	font-size: 16px;
	margin-bottom: 10px;
}

.rds-option-card.is-saving > strong {
	color: #157347;
}

.rds-option-card p {
	color: var(--rds-muted);
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
}

.rds-option-source {
	color: var(--rds-purple);
	display: inline-block;
	font-size: 13px;
	font-weight: 800;
	margin-top: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rds-option-renders {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rds-content-visual {
	background: #fff;
	border: 1px solid var(--rds-line);
	border-radius: 18px;
	margin: 0;
	overflow: hidden;
}

.rds-content-visual:nth-child(3) {
	grid-column: 1 / -1;
}

.rds-content-visual img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.rds-content-visual figcaption {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
}

.rds-content-visual figcaption span {
	color: var(--rds-muted);
	font-size: 13px;
	line-height: 1.6;
}

.rds-material-rates {
	background: linear-gradient(135deg, #f6f1f8, #fff);
	border: 1px solid var(--rds-line);
	border-radius: 18px;
	margin-top: 22px;
	padding: 24px;
}

.rds-material-rates h3 {
	font-size: 24px;
	margin: 0 0 6px;
}

.rds-material-rates > p {
	color: var(--rds-muted);
	font-size: 13px;
}

.rds-material-rates > div {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 18px;
}

.rds-material-rates span {
	background: #fff;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 15px;
}

.rds-material-rates b {
	font-size: 12px;
}

.rds-material-rates strong {
	color: var(--rds-purple);
	font-size: 15px;
}

.rds-related-designs {
	border-top: 1px solid var(--rds-line);
	margin-top: 72px;
	padding-top: 58px;
}

.rds-related-head {
	margin-bottom: 24px;
	max-width: 760px;
}

.rds-related-head h2 {
	font-size: clamp(30px, 4vw, 44px);
	letter-spacing: -.03em;
	line-height: 1.2;
	margin: 0 0 10px;
}

.rds-related-head p {
	color: var(--rds-muted);
	line-height: 1.8;
	margin: 0;
}

.rds-related-grid .rds-card-body p {
	min-height: 0;
}

/* Outgrid adds its own title block to custom post types. The design page
 * already has a product heading and breadcrumb, so keep a single hierarchy. */
body.single-rds_design .uicore-page-title {
	display: none !important;
}

body.single-rds_design .rds-single {
	padding-top: 32px;
}

@media (max-width: 1050px) {
	body.single-rds_design .rds-single {
		padding-top: 24px;
	}

	.rds-design-intro h1 {
		font-size: clamp(34px, 7vw, 50px);
		line-height: 1.12;
	}

	.rds-design-intro > p {
		font-size: 17px;
		line-height: 1.75;
	}

	.rds-breadcrumb {
		margin-bottom: 16px;
	}

	.rds-option-grid {
		grid-template-columns: 1fr 1fr;
	}

	.rds-material-rates > div {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 700px) {
	.rds-package-options {
		display: grid;
		grid-auto-columns: minmax(175px, 78vw);
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		padding: 3px 2px 10px;
		scroll-snap-type: inline mandatory;
	}

	.rds-package-options button {
		min-height: 0;
		scroll-snap-align: start;
	}

	.rds-package-gallery.is-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.rds-package-gallery.is-5 figure,
	.rds-package-gallery.is-5 figure.is-primary {
		aspect-ratio: 1.25;
		grid-column: auto;
		grid-row: auto;
	}

	.rds-package-gallery.is-5 figure.is-primary {
		aspect-ratio: 1.35;
		grid-column: 1 / -1;
	}
	body.single-rds_design .rds-single {
		padding-top: 20px;
	}

	.rds-breadcrumb {
		flex-wrap: wrap;
		font-size: 12px;
		line-height: 1.6;
	}

	.rds-design-intro h1 {
		font-size: 34px;
	}

	.rds-line-item {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.rds-item-price {
		grid-column: auto;
	}

	.rds-customize-actions {
		width: 100%;
	}

	.rds-content-hub {
		margin-top: 48px;
		padding-top: 42px;
	}

	.rds-related-designs {
		margin-top: 48px;
		padding-top: 42px;
	}

	.rds-content-tabs {
		margin-left: -16px;
		margin-right: -16px;
		padding: 0 16px;
	}

	.rds-content-tabs button {
		padding: 12px 10px;
	}

	.rds-option-grid,
	.rds-option-renders,
	.rds-material-rates > div {
		grid-template-columns: 1fr;
	}

	.rds-content-visual:nth-child(3) {
		grid-column: auto;
	}
}

/* Selection starts empty; complete package prices appear only in full scope. */
.rds-single [data-rds-full-package-price][hidden],
.rds-single [data-rds-estimate-values][hidden],
.rds-single [data-rds-empty-estimate][hidden],
.rds-single [data-rds-total-unit][hidden],
.rds-single [data-rds-breakdown][hidden] { display: none !important; }
.rds-empty-estimate { margin: 22px 0; padding: 20px 16px; border: 1px dashed #b9c6bf; border-radius: 12px; background: #f5f8f6; color: #173f3a; font-size: 19px; font-weight: 700; line-height: 1.7; }
.rds-selection-message { color: #365f52; font-size: 14px; line-height: 1.8; }
.rds-selection-message:empty { display: none; }
.rds-scope-switch input:focus-visible + span,
.rds-item-checkbox:focus-visible + .rds-check-ui { outline: 3px solid #b87338; outline-offset: 4px; }
.rds-line-item:has(input[data-rds-auto="1"]) .rds-item-copy::after { content: "بند مرتبط لازم للتنفيذ"; display: block; font-size: 12px; color: #526b61; margin-top: 5px; }


/* Owner-pilot accessibility hardening: keyboard focus and 44px targets. */
.rds-single :focus-visible { outline: 3px solid #d8ad5e; outline-offset: 3px; }
.rds-customize .rds-button-light,
.rds-breadcrumb a,
.rds-content-body a,
.rds-prose a,
.rds-card-body a,
.rds-consent,
.rds-scope-switch label,
.rds-dialog-close,
.rds-content-tabs button { align-items: center; display: inline-flex; min-height: 44px; }
.rds-dialog-close { justify-content: center; min-width: 44px; }

.rds-package-options button:focus-visible { outline: 3px solid #d8ad5e; outline-offset: 3px; }
