.ppb-checkout-shell {
	min-height: calc(100vh - var(--ppb-header-height));
	padding: 34px 0 88px;
	background:
		radial-gradient(circle at 8% 8%, rgba(255, 202, 58, 0.16), transparent 28rem),
		radial-gradient(circle at 92% 18%, rgba(93, 214, 189, 0.13), transparent 26rem),
		var(--ppb-page-background);
}

.ppb-checkout-loading,
.ppb-checkout-empty {
	display: grid;
	min-height: 560px;
	place-content: center;
	justify-items: start;
	max-width: 760px;
}

.ppb-checkout-loading h1,
.ppb-checkout-empty h1,
.ppb-checkout-heading h1 {
	margin: 12px 0 16px;
	font-size: clamp(38px, 6vw, 62px);
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.ppb-checkout-empty p,
.ppb-checkout-heading p {
	color: var(--ppb-muted-text);
	font-size: 17px;
}

.ppb-checkout-empty .ppb-button {
	margin-top: 12px;
}

.ppb-checkout-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 28px;
	padding: 30px;
	border: 1px solid color-mix(in srgb, var(--ppb-border) 78%, transparent);
	border-radius: calc(var(--ppb-radius-medium) + 8px);
	background: color-mix(in srgb, var(--ppb-surface-background) 92%, transparent);
	box-shadow: 0 22px 60px rgba(20, 34, 29, 0.07);
	backdrop-filter: blur(12px);
}

.ppb-checkout-heading__copy {
	max-width: 760px;
}

.ppb-checkout-heading__copy > p {
	max-width: 650px;
	margin-bottom: 0;
}

.ppb-checkout-heading__actions {
	display: grid;
	flex: 0 0 auto;
	gap: 12px;
}

.ppb-checkout-heading .ppb-back-link {
	display: inline-flex;
	justify-self: end;
	margin-bottom: 0;
	font-weight: 800;
}

.ppb-checkout-shop {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 12px;
	min-width: 210px;
	padding: 12px 15px 12px 12px;
	border: 1px solid var(--ppb-border);
	border-radius: 18px;
	background: var(--ppb-surface-background);
	box-shadow: var(--ppb-shadow-small);
}

.ppb-checkout-shop__copy {
	display: grid;
	gap: 2px;
}

.ppb-checkout-shop__copy small {
	color: var(--ppb-muted-text);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ppb-checkout-shop__copy strong {
	font-size: 16px;
	line-height: 1.25;
}

.ppb-checkout-shop__image {
	display: grid;
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	place-items: center;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--ppb-accent) 20%, var(--ppb-border));
	border-radius: 15px;
	background: linear-gradient(145deg, var(--ppb-accent-soft), var(--ppb-primary-soft));
	color: var(--ppb-primary-action);
	font-size: 20px;
	font-weight: 900;
}

.ppb-checkout-shop__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ppb-checkout-progress {
	display: flex;
	align-items: center;
	max-width: 260px;
	margin-top: 24px;
}

.ppb-checkout-progress span {
	display: grid;
	width: 27px;
	height: 27px;
	flex: 0 0 27px;
	place-items: center;
	border: 1px solid var(--ppb-border);
	border-radius: 50%;
	background: var(--ppb-surface-background);
	color: var(--ppb-muted-text);
	font-size: 12px;
	font-weight: 900;
}

.ppb-checkout-progress span.is-active {
	border-color: var(--ppb-primary-action);
	background: var(--ppb-primary-action);
	color: var(--ppb-white);
}

.ppb-checkout-progress i {
	width: 44px;
	height: 1px;
	background: var(--ppb-border);
}

.ppb-checkout-alert {
	margin-bottom: 20px;
	padding: 13px 16px;
	border-radius: var(--ppb-radius-small);
	background: var(--ppb-highlight-soft);
	font-weight: 700;
}

.ppb-checkout-grid,
.ppb-checkout-fields {
	display: grid;
	gap: 20px;
}

.ppb-checkout-seller-orders {
	display: grid;
	gap: 20px;
}

.ppb-checkout-card,
.ppb-checkout-review {
	position: relative;
	border: 1px solid var(--ppb-border);
	border-radius: var(--ppb-radius-medium);
	background: var(--ppb-surface-background);
	box-shadow: 0 12px 36px rgba(20, 34, 29, 0.06);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ppb-checkout-card:focus-within {
	border-color: color-mix(in srgb, var(--ppb-accent) 50%, var(--ppb-border));
	box-shadow: 0 18px 44px rgba(20, 34, 29, 0.1);
}

.ppb-checkout-card {
	display: grid;
	gap: 18px;
	padding: 28px;
}

.ppb-checkout-step {
	position: absolute;
	top: 20px;
	right: 20px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: var(--ppb-primary-soft);
	color: var(--ppb-primary-action);
	font-size: 14px;
	font-weight: 900;
}

.ppb-checkout-card__heading {
	padding-right: 46px;
}

.ppb-checkout-card__heading h2,
.ppb-checkout-review h2 {
	margin: 0 0 6px;
	font-size: 28px;
}

.ppb-checkout-card__heading p {
	margin: 0;
	color: var(--ppb-muted-text);
	font-size: 14px;
}

.ppb-checkout-seller-identity,
.ppb-checkout-review-shop {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ppb-checkout-seller-identity .ppb-checkout-shop__image {
	width: 58px;
	height: 58px;
	flex-basis: 58px;
	border-radius: 18px;
}

.ppb-checkout-seller-identity > div {
	min-width: 0;
}

.ppb-checkout-seller-section {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--ppb-border);
}

.ppb-checkout-seller-section h3 {
	margin: 0 0 4px;
	font-size: 18px;
}

.ppb-checkout-seller-section p {
	margin: 0;
	color: var(--ppb-muted-text);
	font-size: 14px;
}

.ppb-checkout-field-grid {
	display: grid;
	gap: 14px;
}

.ppb-checkout-card .ppb-field > span {
	font-size: 14px;
	font-weight: 800;
}

.ppb-checkout-card .ppb-field > span small {
	color: var(--ppb-muted-text);
	font-weight: 500;
}

.ppb-checkout-contact-methods {
	margin-top: 2px;
}

.ppb-payment-options {
	display: grid;
	gap: 9px;
}

.ppb-payment-options label {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 11px;
	padding: 14px;
	border: 1px solid var(--ppb-border);
	border-radius: var(--ppb-radius-small);
	background: var(--ppb-page-background);
	cursor: pointer;
	transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.ppb-payment-options label:has(input:checked) {
	border-color: var(--ppb-accent);
	background: var(--ppb-accent-soft);
}

.ppb-payment-options label:hover {
	border-color: color-mix(in srgb, var(--ppb-accent) 55%, var(--ppb-border));
	transform: translateY(-1px);
}

.ppb-payment-options input {
	margin-top: 5px;
}

.ppb-payment-options span {
	display: grid;
}

.ppb-payment-options small {
	color: var(--ppb-muted-text);
}

.ppb-account-option > label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ppb-account-option > label span {
	display: grid;
}

.ppb-account-option > label small,
.ppb-account-option [data-account-password] p {
	color: var(--ppb-muted-text);
	font-size: 14px;
}

.ppb-account-option [data-account-password] a {
	color: var(--ppb-accent);
	font-weight: 800;
}

.ppb-checkout-review {
	display: grid;
	align-content: start;
	gap: 17px;
	padding: 26px;
	border-top: 4px solid var(--ppb-primary-action);
}

.ppb-checkout-items {
	display: grid;
	gap: 10px;
}

.ppb-checkout-order-groups {
	display: grid;
	gap: 18px;
}

.ppb-checkout-order-group {
	display: grid;
	gap: 4px;
}

.ppb-checkout-order-group > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 12px;
	border-radius: var(--ppb-radius-small);
	background: var(--ppb-dark-surface);
	color: var(--ppb-white);
}

.ppb-checkout-review-shop .ppb-checkout-shop__image {
	width: 38px;
	height: 38px;
	flex-basis: 38px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.12);
	color: var(--ppb-white);
	font-size: 15px;
}

.ppb-checkout-order-group > header strong:last-child {
	font-size: 17px;
}

.ppb-checkout-items article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 15px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ppb-border);
}

.ppb-checkout-items article.has-image {
	grid-template-columns: 64px minmax(0, 1fr) auto;
}

.ppb-checkout-items .ppb-product-thumbnail {
	width: 64px;
	height: 64px;
	border-radius: 14px;
}

.ppb-checkout-item__copy {
	display: grid;
	min-width: 0;
}

.ppb-checkout-items article span {
	color: var(--ppb-muted-text);
	font-size: 14px;
}

.ppb-checkout-total {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 15px;
	padding: 16px;
	border-radius: var(--ppb-radius-small);
	background: var(--ppb-dark-surface);
	color: var(--ppb-white);
}

.ppb-checkout-total strong {
	font-size: 22px;
}

.ppb-checkout-total small {
	grid-column: 1 / -1;
	color: rgba(255, 255, 255, 0.68);
}

.ppb-checkout-choice-review {
	color: var(--ppb-muted-text);
	font-size: 14px;
	font-weight: 700;
}

.ppb-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.ppb-checkout-disclaimer {
	margin: 0;
	padding: 13px 14px;
	border: 1px solid color-mix(in srgb, var(--ppb-primary-action) 26%, var(--ppb-border));
	border-radius: var(--ppb-radius-small);
	background: var(--ppb-primary-soft);
	color: var(--ppb-primary-text);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
	text-align: left;
}

.ppb-form-message.is-error {
	color: var(--ppb-danger);
}

[hidden] {
	display: none !important;
}

@media (min-width: 680px) {
	.ppb-checkout-field-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.ppb-checkout-grid {
		grid-template-columns: minmax(0, 1fr) 370px;
		align-items: start;
	}

	.ppb-checkout-review {
		position: sticky;
		top: 24px;
	}
}

@media (max-width: 679px) {
	.ppb-checkout-shell {
		padding-top: 28px;
	}

	.ppb-checkout-heading {
		align-items: flex-start;
		flex-direction: column;
		padding: 24px 20px;
	}

	.ppb-checkout-shop {
		width: 100%;
	}

	.ppb-checkout-heading__actions {
		width: 100%;
	}

	.ppb-checkout-heading .ppb-back-link {
		justify-self: start;
	}

	.ppb-checkout-card,
	.ppb-checkout-review {
		padding: 20px 18px;
	}
}
