.wch-wrapper {
	max-width: 760px;
	margin: 32px auto;
	color: #172033;
}

.wch-page__inner {
	width: min(100% - 32px, 980px);
	margin: 0 auto;
	padding: 32px 0;
}

.wch-page__header {
	max-width: 760px;
	margin: 0 auto 8px;
}

.wch-standalone-page {
	margin: 0;
	min-height: 90vh;
	
	background: var(--wd-main-bgcolor);
	color: #172033;
}

.wch-standalone-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 76px;
	padding: 16px clamp(16px, 4vw, 48px);
	background: #fff;
	border-bottom: 1px solid #d7dde8;
}

.wch-standalone-logo {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: #172033;
	font-weight: 800;
	text-decoration: none;
}

.wch-standalone-logo img {
	display: block;
	max-width: 180px;
	max-height: 48px;
	width: auto;
	height: auto;
}

.wch-home-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid #aab4c3;
	border-radius: var(--wd-brd-radius);
	background: #fff;
	color: #172033;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.wch-standalone-main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(70vh - 76px);
	max-height: fit-content;
	padding: 24px 16px;
	
}

.wch-standalone-main .wch-wrapper {
	width: min(100%, 760px);
	margin: 0 auto;
}

.wch-standalone-footer {
	display: none;
}

.wch-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 0;
	margin: 0 0 20px;
	list-style: none;
}

.wch-step {
	padding: 10px 8px;
	margin:10px 0 !important;
	border-bottom: 3px solid #e9e9e9;
	color: inherit;
	font-size: 14px;
	text-align: center;
}

.wch-step--active {
    border-color: var(--wd-alternative-color);
    color: inherit;
    font-weight: 700;
}

.wch-step--done {
	border-color: #15af24;
	color: inherit;
}

.wch-form,
.wch-order-card,
.wch-summary,
.wch-legal,
.wch-timeline {
	border: 1px solid #d7dde8;
	border-radius: var(--wd-brd-radius);
	background: #fff;
}

.wch-form {
	padding: 20px;
	border-radius: var(--wd-brd-radius);
}

.wch-field {
	margin-bottom: 16px;
}

.wch-field__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.wch-field__label-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.wch-field__label-row .wch-field__label {
	margin-bottom: 0;
}

.wch-help {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: var(--color-primary); /* The Fallback - HUB */
	color: var(--wd-primary-color); 
	cursor: help;
	outline: none;
}

.wch-help__tooltip {
	position: absolute;
	z-index: 20;
	left: 50%;
	bottom: calc(100% + 8px);
	width: min(280px, calc(100vw - 40px));
	padding: 9px 10px;
	border-radius: var(--wd-brd-radius);
	background: #333;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(23, 32, 51, 0.2);
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) translateY(4px);
	transition: opacity 120ms ease, transform 120ms ease;
}

.wch-help:hover .wch-help__tooltip,
.wch-help:focus .wch-help__tooltip,
.wch-help:focus-within .wch-help__tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.wch-field__input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px !important;
	border: 1px solid #aab4c3;
	border-radius: var(--wd-brd-radius);
	background: #fff;
	color: #172033;
    text-align: inherit !important;
}

.wch-field--error .wch-field__input {
	border-color: #b42318;
	box-shadow: 0 0 0 1px #b42318;
}

.wch-field__error {
	min-height: 20px;
	margin-top: 5px;
	color: #b42318;
	font-size: 14px;
}

.wch-alert {
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: var(--wd-brd-radius);
	border: 1px solid transparent;
	border-radius: var(--wd-brd-radius);
}

.wch-alert--error {
	background: #fff1f0;
	border-color: #f0aaa4;
	color: #8b1e16;

}

.wch-alert--success {
	background: #ecfdf3;
	border-color: #8ed8ad;
	color: #176548;

}

.wch-alert--warning {
	background: #fff8e6;
	border-color: #f2cf75;
	color: #73510d;
}

.wch-alert--info {
	background: #eef6ff;
	border-color: #a8cffe;
	color: #12325f;
}

.wch-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.wch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: var(--wd-brd-radius);
	cursor: pointer;
	font-weight: 700;
	text-decoration: none;
}

.wch-btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.wch-btn--primary {
	background: #dcdcdc;
	color: #fff;
}

.wch-btn--danger {
	background: #b42318 !important;
	color: #fff !important;
}

.wch-btn--ghost {
	background: #fff;
	border-color: #aab4c3;
	color: #172033;
}

.wch-order-card {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(100px, 1fr) minmax(100px, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 16px;
	margin-bottom: 16px;
	border-radius: var(--wd-brd-radius);
}

.wch-order-card h3 {
	margin: 2px 0 0;
	font-size: 22px;
}

.wch-kicker {
	display: block;
	color: #5c667a;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.wch-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: var(--wd-brd-radius);
    background: #ddd;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.wch-scope {
	padding: 0;
	border: 0;
	margin: 0;
}

.wch-scope legend {
	margin-bottom: 10px;
	font-weight: 700;
}

.wch-scope-option {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px;
	margin-bottom: 10px;
	border: 1px solid #d7dde8;
	border-radius: var(--wd-brd-radius);
	cursor: pointer;
}

.wch-scope-option--selected {
	border-color: #1f6feb;
	background: #eef6ff;
	border-radius: var(--wd-brd-radius);
}

.wch-product-list {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.wch-product-list[hidden] {
	display: none;
}

.wch-product-item {
	display: grid;
	grid-template-columns: auto 56px minmax(0, 1fr) minmax(120px, auto);
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid #d7dde8;
	border-radius: var(--wd-brd-radius);
	cursor: pointer;
}

.wch-product-item--excluded {
	background: #f6f7f9;
	color: #687385;
	opacity: 0.6;
}

.wch-product-item--unselected {
	opacity: 0.6;
}

.wch-product-item--selected {
	border-color: var(--wd-primary-color, #1f6feb);
	box-shadow: 0 0 0 1px var(--wd-primary-color, #1f6feb);
	opacity: 1;
}

.wch-product__thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border: 1px solid #d7dde8;
	border-radius: var(--wd-brd-radius);
	background: #f6f7f9;
}

.wch-product__info {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.wch-product__info small,
.wch-product__info em {
	color: #687385;
	font-size: 13px;
}

.wch-product__quantity {
	display: grid;
	gap: 4px;
	min-width: 110px;
	font-size: 13px;
}

.wch-product__quantity label {
	font-weight: 700;
}

.wch-product__quantity input {
	width: 90px;
	min-height: 36px;
	padding: 6px 8px;
	border: 1px solid #aab4c3;
	border-radius: var(--wd-brd-radius);
}

.wch-summary {
	display: grid;
	gap: 0;
	margin-bottom: 16px;
	border-radius: var(--wd-brd-radius);
}

.wch-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border-bottom: 1px solid #e6eaf0;
}

.wch-summary__row:last-child {
	border-bottom: 0;
}

.wch-summary-list {
	display: grid;
	gap: 10px;
	padding: 0;
	margin: 0 0 16px;
	list-style: none;
}

.wch-summary-item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid #d7dde8;
	border-radius: var(--wd-brd-radius);
	background: #fff;
	border-radius: var(--wd-brd-radius);
}

.wch-summary-item span {
	display: grid;
	gap: 4px;
}

.wch-legal {
	padding: 14px;
	margin-top: 16px;
	color: #3f4a5c;
	font-size: 14px;
}

.wch-consent {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 14px;
	border: 1px solid #d7dde8;
	background: #fff;
    border-radius: var(--wd-brd-radius);
    cursor: pointer;
}

.wch-consent input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
    cursor: pointer;
}

.wch-consent a {
	font-weight: 700;
}

.wch-timeline {
	padding: 14px 18px;
	margin: 16px 0 0;
	list-style: none;
}

.wch-timeline__item {
	position: relative;
	padding: 8px 0 8px 24px;
	color: #687385;
}

.wch-timeline__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 10px;
	height: 10px;
	border-radius: var(--wd-brd-radius);
	background: #cbd3df;
}

.wch-timeline__item--done,
.wch-timeline__item--active {
	color: #172033;
	font-weight: 700;
}

.wch-timeline__item--done::before {
	background: #1d8f5f;
}

.wch-timeline__item--active::before {
	background: #1f6feb;
}

@media (max-width: 640px) {
	.wch-wrapper {
		margin: 20px 0;
	}

	.wch-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wch-order-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.wch-product-item {
		grid-template-columns: auto 56px minmax(0, 1fr);
	}

	.wch-product__quantity {
		grid-column: 3;
	}

	.wch-summary__row,
	.wch-actions {
		flex-direction: column;
	}
}
