.rjy-sample-product.is-invalid {
	border-color: #d92d20;
	background: #fff8f7;
}

.rjy-sample-product.is-invalid .rjy-sample-status {
	color: #b42318 !important;
}

/* Blocksy's site header is positioned outside normal flow on this route. */
.rjy-sample-complete-page {
	margin-top: 198px;
}

@media (max-width: 999.98px) {
	.rjy-sample-complete-page {
		margin-top: 108px;
	}
}

/* Isolate the fixed-width quantity field from theme and WooCommerce input rules. */
.rjy-sample-quantity input {
	width: 48px !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	padding: 0 4px !important;
	margin: 0 !important;
	color: var(--rjy-text-primary) !important;
	line-height: 38px !important;
	appearance: textfield;
	-moz-appearance: textfield;
}

.rjy-sample-quantity input::-webkit-inner-spin-button,
.rjy-sample-quantity input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* RJY public workflow design system. Controls and containers share an 8px radius. */
:root {
	--rjy-blue: #2857ad;
	--rjy-blue-hover: #1f478f;
	--rjy-navy: #15366f;
	--rjy-text-primary: #172033;
	--rjy-text-secondary: #475467;
	--rjy-bg-soft: #f7f9fc;
	--rjy-bg-blue-soft: #f1f5fc;
	--rjy-border: #dfe5ee;
	--rjy-border-strong: #b8c3d2;
	--rjy-danger: #b42318;
	--rjy-radius: 8px;
	--rjy-shadow: 0 18px 48px rgba(21, 54, 111, 0.08);
}

.rjy-sample-app {
	color: var(--rjy-text-primary);
	font-family: var(--theme-font-family, "Wix Madefor Display", "Helvetica Neue", Arial, sans-serif);
	font-size: 16px;
	line-height: 1.6;
}

.rjy-sample-request-page {
	width: min(calc(100% - 40px), 1120px) !important;
	margin: 64px auto 96px;
}

.rjy-sample-complete-page {
	width: min(calc(100% - 40px), 840px) !important;
	margin: 198px auto 96px;
}

.rjy-sample-app h1,
.rjy-sample-app h2,
.rjy-sample-app h3,
.rjy-sample-app label,
.rjy-sample-app input,
.rjy-sample-app select,
.rjy-sample-app textarea,
.rjy-sample-app button,
.rjy-sample-app a {
	font-family: inherit;
}

.rjy-sample-app p {
	color: var(--rjy-text-secondary);
	line-height: 1.65;
}

.rjy-sample-app__header {
	max-width: 760px;
	margin-bottom: 40px;
}

.rjy-sample-request-page > .rjy-sample-app__header .rjy-sample-kicker {
	display: none;
}

.rjy-sample-app__header h2 {
	margin: 0 0 14px;
	color: var(--rjy-text-primary);
	font-size: clamp(36px, 4.2vw, 48px);
	font-weight: 720;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.rjy-sample-app__header > p:last-child {
	max-width: 720px;
	margin: 0;
	font-size: 17px;
}

.rjy-sample-kicker {
	color: var(--rjy-blue) !important;
	font: 750 11px/1.4 var(--theme-font-family, "Wix Madefor Display", Arial, sans-serif) !important;
	letter-spacing: 0.14em;
}

.rjy-sample-progress {
	margin-bottom: 28px;
	padding: 6px;
	border: 1px solid var(--rjy-border);
	border-radius: var(--rjy-radius);
	background: var(--rjy-bg-soft);
}

.rjy-sample-progress ol {
	gap: 4px;
}

.rjy-sample-progress li {
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 9px 12px;
	border: 0;
	border-radius: var(--rjy-radius);
	color: #596579;
	font-size: 14px;
	font-weight: 600;
}

.rjy-sample-progress li span {
	width: 25px;
	height: 25px;
	border-color: var(--rjy-border-strong);
	background: #fff;
	font-size: 12px;
}

.rjy-sample-progress li.is-active {
	border: 0;
	background: #fff;
	box-shadow: 0 2px 8px rgba(21, 54, 111, 0.08);
	color: var(--rjy-blue);
}

.rjy-sample-progress li.is-active span {
	border-color: var(--rjy-blue);
	background: var(--rjy-blue);
	color: #fff;
}

.rjy-sample-step {
	padding: 40px;
	border: 1px solid var(--rjy-border);
	border-radius: var(--rjy-radius);
	background: #fff;
	box-shadow: var(--rjy-shadow);
}

.rjy-sample-step h2 {
	margin: 0 0 8px;
	color: var(--rjy-text-primary);
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 720;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.rjy-sample-step > p:not(.rjy-sample-summary):not(.rjy-sample-privacy) {
	max-width: 72ch;
	margin: 0;
}

.rjy-sample-step fieldset {
	margin: 32px 0 0;
	padding: 24px;
	border: 1px solid var(--rjy-border);
	border-radius: var(--rjy-radius);
	background: var(--rjy-bg-soft);
}

.rjy-sample-step legend {
	padding: 0 8px;
	color: var(--rjy-navy);
	font-size: 15px;
	font-weight: 750;
}

.rjy-sample-fields {
	gap: 22px 20px;
	margin-top: 26px;
}

.rjy-sample-fields label {
	gap: 8px;
	color: var(--rjy-text-primary);
	font-size: 14px;
	font-weight: 650;
}

.rjy-sample-fields label > span {
	color: var(--rjy-danger);
}

.rjy-sample-fields input,
.rjy-sample-fields select,
.rjy-sample-fields textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid var(--rjy-border-strong);
	border-radius: var(--rjy-radius);
	background: #fcfdff;
	color: var(--rjy-text-primary);
	font-size: 15px;
	font-weight: 450;
	line-height: 1.45;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rjy-sample-fields input::placeholder,
.rjy-sample-fields textarea::placeholder {
	color: #667085;
	opacity: 1;
}

.rjy-sample-fields input:hover,
.rjy-sample-fields select:hover,
.rjy-sample-fields textarea:hover {
	border-color: #8d9bad;
	background: #fff;
}

.rjy-sample-fields input:focus,
.rjy-sample-fields select:focus,
.rjy-sample-fields textarea:focus {
	border-color: var(--rjy-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(40, 87, 173, 0.16);
	outline: 0;
}

.rjy-sample-fields textarea {
	min-height: 120px;
}

.rjy-sample-fields small {
	color: #596579;
	font-size: 12px;
	font-weight: 450;
}

.rjy-sample-check {
	gap: 11px;
	margin: 22px 0;
	color: var(--rjy-text-primary);
	font-size: 14px;
	font-weight: 550;
}

.rjy-sample-check input {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin-top: 3px;
	accent-color: var(--rjy-blue);
}

.rjy-sample-check-grid {
	gap: 10px;
}

.rjy-sample-check-grid label {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--rjy-border);
	border-radius: var(--rjy-radius);
	background: #fff;
	color: var(--rjy-text-primary);
	font-size: 13px;
}

.rjy-sample-product {
	gap: 22px;
	margin-top: 20px;
	padding: 22px;
	border-color: var(--rjy-border);
	border-radius: var(--rjy-radius);
	background: #fff;
}

.rjy-sample-product > img,
.rjy-sample-product__placeholder {
	border-radius: var(--rjy-radius);
	background: var(--rjy-bg-soft);
}

.rjy-sample-product h3 {
	margin: 5px 0 11px;
	color: var(--rjy-text-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.rjy-sample-product dl div {
	font-size: 13px;
}

.rjy-sample-status {
	color: var(--rjy-blue) !important;
	font-size: 12px;
	font-weight: 750;
}

.rjy-sample-quantity button,
.rjy-sample-quantity input {
	border-color: var(--rjy-border-strong);
	background: #fff;
	color: var(--rjy-text-primary);
	font-family: inherit;
}

.rjy-sample-quantity button {
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}

.rjy-sample-quantity button:hover {
	background: var(--rjy-bg-blue-soft);
	color: var(--rjy-blue);
}

.rjy-sample-remove {
	color: #8f2d2a;
	font-family: inherit;
	font-weight: 600;
}

.rjy-sample-summary {
	margin: 22px 0 0;
	color: var(--rjy-text-primary) !important;
	font-size: 14px;
	font-weight: 700;
}

.rjy-sample-actions {
	gap: 12px;
	margin-top: 30px;
}

.rjy-sample-primary,
.rjy-sample-secondary,
.rjy-sample-button {
	-webkit-appearance: none;
	appearance: none;
	min-height: 48px;
	padding: 12px 20px;
	border-color: var(--rjy-blue) !important;
	border-radius: var(--rjy-radius);
	background-color: var(--rjy-blue) !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 14px;
	font-weight: 720;
	line-height: 1.3;
	white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rjy-sample-primary:hover,
.rjy-sample-button:hover {
	border-color: var(--rjy-blue-hover) !important;
	background-color: var(--rjy-blue-hover) !important;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(40, 87, 173, 0.18);
}

.rjy-sample-secondary {
	background-color: #fff !important;
	color: var(--rjy-blue) !important;
}

.rjy-sample-secondary:hover {
	background-color: var(--rjy-bg-blue-soft) !important;
	color: var(--rjy-blue-hover) !important;
}

.rjy-sample-primary:active,
.rjy-sample-secondary:active,
.rjy-sample-button:active {
	transform: translateY(1px);
}

.rjy-sample-primary:focus-visible,
.rjy-sample-secondary:focus-visible,
.rjy-sample-button:focus-visible {
	outline: 3px solid rgba(40, 87, 173, 0.25);
	outline-offset: 3px;
}

.rjy-sample-primary:disabled {
	box-shadow: none;
	opacity: 0.58;
}

.rjy-sample-alert {
	margin-bottom: 20px;
	padding: 14px 16px;
	border: 1px solid #f0b6b1;
	border-left: 4px solid var(--rjy-danger);
	border-radius: var(--rjy-radius);
	background: #fff6f5;
	color: #7a271a;
	font-size: 14px;
}

.rjy-sample-empty {
	margin-top: 22px;
	padding: 42px 24px;
	border-radius: var(--rjy-radius);
	background: var(--rjy-bg-soft);
}

.rjy-sample-empty h3 {
	margin-bottom: 8px;
	color: var(--rjy-text-primary);
	font-size: 22px;
	font-weight: 700;
}

[data-rjy-review] {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

[data-rjy-review] section {
	padding: 20px;
	border: 1px solid var(--rjy-border);
	border-radius: var(--rjy-radius);
	background: var(--rjy-bg-soft);
}

[data-rjy-review] h3 {
	margin: 0 0 10px;
	color: var(--rjy-navy);
	font-size: 17px;
	font-weight: 700;
}

[data-rjy-review] p {
	margin: 4px 0;
	font-size: 14px;
}

.rjy-sample-privacy {
	max-width: 72ch;
	color: #596579 !important;
	font-size: 12px;
}

.rjy-sample-success {
	padding: clamp(40px, 6vw, 64px);
	border: 1px solid var(--rjy-border);
	border-radius: var(--rjy-radius);
	background: #fff;
	box-shadow: var(--rjy-shadow);
	text-align: left;
}

.rjy-sample-success h1,
.rjy-sample-success h2 {
	max-width: 680px;
	margin: 12px 0 18px;
	color: var(--rjy-text-primary);
	font-size: clamp(36px, 5vw, 48px);
	font-weight: 740;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.rjy-sample-success > p {
	max-width: 62ch;
	margin: 0 0 10px;
	font-size: 16px;
}

.rjy-sample-success > strong {
	display: block;
	width: 100%;
	margin: 22px 0;
	padding: 16px 18px;
	border: 1px solid #ccd8eb;
	border-radius: var(--rjy-radius);
	background: var(--rjy-bg-blue-soft);
	color: var(--rjy-blue);
	font: 750 18px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	overflow-wrap: anywhere;
}

.rjy-sample-success .rjy-sample-actions {
	justify-content: flex-start;
	margin-top: 28px;
}

@media (max-width: 999.98px) {
	.rjy-sample-complete-page {
		margin-top: 108px;
	}
}

@media (max-width: 767.98px) {
	.rjy-sample-request-page {
		width: min(calc(100% - 32px), 1120px) !important;
		margin: 44px auto 72px;
	}

	.rjy-sample-complete-page {
		width: min(calc(100% - 32px), 840px) !important;
		margin-bottom: 72px;
	}

	.rjy-sample-app__header {
		margin-bottom: 30px;
	}

	.rjy-sample-app__header h2 {
		font-size: 34px;
		line-height: 1.12;
	}

	.rjy-sample-app__header > p:last-child {
		font-size: 16px;
	}

	.rjy-sample-progress {
		padding: 0;
		border: 0;
		background: transparent;
	}

	.rjy-sample-progress ol {
		display: none;
	}

	.rjy-sample-progress > p {
		display: block;
		margin: 0;
		padding: 13px 15px;
		border: 1px solid #ccd8eb;
		border-radius: var(--rjy-radius);
		background: var(--rjy-bg-blue-soft);
		color: var(--rjy-blue);
		font-size: 14px;
		font-weight: 720;
	}

	.rjy-sample-step {
		padding: 26px 20px;
	}

	.rjy-sample-step h2 {
		font-size: 27px;
	}

	.rjy-sample-step fieldset {
		padding: 20px 16px;
	}

	.rjy-sample-fields,
	.rjy-sample-check-grid {
		grid-template-columns: 1fr;
	}

	.rjy-sample-product {
		grid-template-columns: 74px minmax(0, 1fr);
		gap: 16px;
		padding: 16px;
	}

	.rjy-sample-product > img,
	.rjy-sample-product__placeholder {
		width: 74px;
		height: 68px;
	}

	.rjy-sample-product__actions {
		grid-column: 1 / -1;
		display: flex;
		width: 100%;
		align-items: end;
		justify-content: space-between;
	}

	.rjy-sample-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.rjy-sample-actions > * {
		width: 100%;
	}

	.rjy-sample-success {
		padding: 34px 24px;
	}

	.rjy-sample-success h1,
	.rjy-sample-success h2 {
		font-size: 34px;
		letter-spacing: -0.035em;
		line-height: 1.12;
	}

	.rjy-sample-success > strong {
		padding: 14px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rjy-sample-app *,
	.rjy-sample-button {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
