.tpcf-refresh .tpcf-checkout {
	padding-block-end: clamp(1.5rem, 4vw, 3.5rem);
}

.tpcf-refresh .tpcf-checkout p.tpcf-checkout-intro {
	margin-bottom: 1.75rem;
}

.tpcf-refresh .tpcf-checkout h2 {
	font-size: 1.35rem;
	margin: 0 0 .65rem;
}

.tpcf-refresh .tpcf-checkout-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.tpcf-refresh .tpcf-checkout-panel {
	border: 1px solid #d7e3e7;
	border-radius: 14px;
	background: white;
	padding: clamp(1rem, 3vw, 1.6rem);
	min-width: 0;
}

.tpcf-refresh .tpcf-checkout-panel p:last-child {
	margin-bottom: 0;
}

.tpcf-refresh .tpcf-checkout-registration,
.tpcf-refresh .tpcf-address-form,
.tpcf-refresh .tpcf-checkout-receipt {
	max-width: 760px;
}

.tpcf-refresh .tpcf-checkout-fieldset {
	border: 0;
	margin: 0 0 1.25rem;
	padding: 0;
	min-width: 0;
}

.tpcf-refresh .tpcf-checkout-fieldset legend {
	font-weight: 700;
	padding: 0;
	margin-bottom: .6rem;
}

.tpcf-refresh .tpcf-checkout-field {
	display: grid;
	gap: .3rem;
	margin-bottom: .8rem;
}

.tpcf-refresh .tpcf-checkout-field label {
	font-weight: 600;
}

.tpcf-refresh .tpcf-field-optional,
.tpcf-refresh .tpcf-checkout-note,
.tpcf-refresh .tpcf-checkout-products small {
	color: #465b65;
	font-weight: 400;
}

.tpcf-refresh .tpcf-checkout-field input,
.tpcf-refresh .tpcf-checkout-field select {
	box-sizing: border-box;
	width: 100%;
	padding: .65rem .75rem;
	border: 1px solid #819aa5;
	border-radius: 8px;
	min-height: 44px;
	font: inherit;
	color: inherit;
	background: white;
}

.tpcf-refresh .tpcf-checkout-field input[aria-invalid],
.tpcf-refresh .tpcf-checkout-field select[aria-invalid] {
	border-color: #a02229;
}

.tpcf-refresh .tpcf-checkout-error,
.tpcf-refresh .tpcf-field-error {
	color: #8b1a20;
}

.tpcf-refresh .tpcf-checkout-error {
	background: #fff1ef;
	border: 1px solid #eabbb9;
	border-radius: 8px;
	padding: .7rem 1rem;
}

.tpcf-refresh .tpcf-checkout-registration > .tpcf-checkout-error {
	margin-bottom: 1.25rem;
}

.tpcf-refresh .tpcf-field-error:empty {
	display: none;
}

.tpcf-refresh .tpcf-checkout-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.2rem;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.25rem;
}

.tpcf-refresh .tpcf-checkout-delivery-options {
	display: grid;
	gap: 1.15rem;
	margin-bottom: 1.25rem;
}

.tpcf-refresh .tpcf-checkout-delivery-options .tpcf-checkout-field {
	margin-bottom: 0;
}

.tpcf-refresh #checkout-collection-note {
	margin-top: .65rem;
}

.tpcf-refresh .tpcf-checkout-address-card {
	display: flex;
	flex-direction: column;
}

.tpcf-refresh .tpcf-checkout-address-lines {
	margin: 0 0 1rem;
	overflow-wrap: anywhere;
}

.tpcf-refresh .tpcf-checkout-address-header {
	--address-change-width: 6.75rem;
	position: relative;
	margin-bottom: .8rem;
}

.tpcf-refresh .tpcf-checkout-address-header h2 {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	margin: 0;
	padding-inline-end: calc(var(--address-change-width) + .75rem);
}

.tpcf-refresh .tpcf-checkout-address-picker summary {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	box-sizing: border-box;
	width: var(--address-change-width);
	list-style: none;
}

.tpcf-refresh .tpcf-checkout-address-picker summary::-webkit-details-marker {
	display: none;
}

.tpcf-refresh .tpcf-checkout-address-picker[open] summary .fa {
	transform: rotate(180deg);
}

.tpcf-refresh .tpcf-checkout-address-picker .tpcf-checkout-field {
	margin: .65rem 0 0;
}

.tpcf-refresh .tpcf-checkout-address-edit {
	align-self: flex-start;
	margin-top: auto;
}

.tpcf-refresh .tpcf-checkout-address-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	margin-block: .85rem 1.35rem;
}

.tpcf-checkout-address-dialog.tpcf-refresh {
	width: min(46rem, calc(100% - 1.5rem));
	max-width: calc(100% - 1.5rem);
	max-height: calc(100vh - 1.5rem);
	max-height: calc(100dvh - 1.5rem);
	overscroll-behavior: contain;
	padding: 0;
	border: 1px solid var(--tpcf-border);
	border-radius: var(--tpcf-radius);
	background: var(--tpcf-bg);
	box-shadow: 0 16px 50px rgba(16, 45, 63, .22);
}

.tpcf-checkout-address-dialog::backdrop {
	background: rgba(16, 45, 63, .52);
}

.tpcf-checkout-address-dialog-header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .8rem;
	padding: .85rem clamp(.8rem, 3vw, 1.35rem);
	border-bottom: 1px solid var(--tpcf-border);
	background: var(--tpcf-surface);
}

.tpcf-refresh .tpcf-checkout-address-dialog-header h2 {
	margin: 0;
	overflow-wrap: anywhere;
}

.tpcf-checkout-address-dialog-body {
	padding: clamp(.8rem, 3vw, 1.35rem);
}

.tpcf-checkout-address-dialog .tpcf-account-addresses {
	grid-template-columns: minmax(0, 1fr);
	gap: .5rem;
}

.tpcf-checkout-address-dialog .tpcf-address-card {
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between;
	gap: .4rem .85rem;
	padding: .6rem .8rem;
}

.tpcf-checkout-address-dialog .tpcf-saved-address-details {
	flex: 1 1 13rem;
	min-width: 0;
}

.tpcf-checkout-address-dialog .tpcf-address-card address {
	font-size: .9rem;
	line-height: 1.4;
}

.tpcf-checkout-address-dialog .tpcf-address-card address strong {
	color: var(--tpcf-ink);
}

.tpcf-checkout-address-dialog .tpcf-address-card .tpcf-account-actions {
	gap: .35rem;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.tpcf-checkout-address-dialog .tpcf-address-card .tpcf-button {
	padding-inline: .6rem;
}

@media (max-width: 440px) {
	.tpcf-checkout-address-dialog .tpcf-saved-address-details {
		flex-basis: 100%;
		flex-direction: column-reverse;
		gap: .35rem;
	}

	.tpcf-checkout-address-dialog .tpcf-address-card:not(.tpcf-address-card--billing) .tpcf-account-actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.tpcf-checkout-address-dialog .tpcf-address-card .tpcf-button {
		width: 100%;
		gap: .25rem;
		padding: .3rem .2rem;
		font-size: .78rem;
	}
}

.tpcf-refresh .tpcf-checkout-wrapping {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: center;
	gap: .65rem;
	padding: .75rem;
	border: 1px solid #b1c9c5;
	border-radius: .5rem;
	cursor: pointer;
}

.tpcf-refresh .tpcf-checkout-wrapping:hover {
	border-color: var(--tpcf-teal);
}

.tpcf-refresh .tpcf-checkout-wrapping input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--tpcf-teal);
}

.tpcf-refresh .tpcf-checkout-wrapping-icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: .4rem;
	color: var(--tpcf-teal-dark);
	background: var(--tpcf-wash);
}

.tpcf-refresh .tpcf-checkout-wrapping .tpcf-checkout-note {
	display: block;
	font-size: .875rem;
}

.tpcf-refresh .tpcf-checkout-payment-option {
	display: flex;
	gap: .65rem;
	min-height: 44px;
	cursor: pointer;
	align-items: center;
	font-weight: 600;
}

.tpcf-refresh .tpcf-checkout-payment-details {
	margin-block: .25rem .8rem;
}

.tpcf-refresh .tpcf-checkout-review-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) fit-content(62%);
	align-items: center;
	gap: .6rem;
	margin-bottom: .85rem;
	overflow-wrap: anywhere;
}

.tpcf-refresh .tpcf-checkout-review-heading h2 {
	margin: 0;
}

.tpcf-refresh .tpcf-checkout-review-heading .tpcf-button {
	align-self: start;
	justify-self: end;
	padding-inline: clamp(.55rem, 1.4vw, .95rem);
}

.tpcf-refresh .tpcf-checkout-review-heading .fa {
	flex: none;
}

.tpcf-refresh .tpcf-checkout-delivery-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	overflow-wrap: anywhere;
}

.tpcf-refresh .tpcf-checkout-payment {
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	align-items: start;
	margin-top: 1rem;
}

.tpcf-refresh .tpcf-checkout-products {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tpcf-refresh .tpcf-checkout-products li,
.tpcf-refresh .tpcf-checkout-summary dl div {
	display: flex;
	gap: .6rem;
	justify-content: space-between;
	padding-block: .5rem;
}

.tpcf-refresh .tpcf-checkout-products li {
	border-bottom: 1px solid #e0e8ea;
}

.tpcf-refresh .tpcf-checkout-products small {
	display: block;
}

.tpcf-refresh .tpcf-checkout-summary dd {
	margin: 0;
}

.tpcf-refresh .tpcf-checkout-total {
	font-size: 1.25rem;
	font-weight: 700;
	border-top: 1px solid #b7c9d1;
}

.tpcf-refresh .tpcf-checkout-summary dd,
.tpcf-refresh .tpcf-checkout-products li > span,
.tpcf-refresh .tpcf-checkout-order-reference {
	font-variant-numeric: lining-nums tabular-nums;
}

.tpcf-refresh .tpcf-checkout-order-reference {
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	background: #edf3f2;
	border-radius: 8px;
	padding: .75rem 1rem;
}

.tpcf-order-confirmation-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(14rem, 1fr);
	align-items: center;
	gap: clamp(1.25rem, 4vw, 2.75rem);
	margin-block-start: .65rem;
	padding: clamp(1.25rem, 4.5vw, 2.8rem);
	border-radius: 1.15rem;
	color: #fff;
	background:
		radial-gradient(ellipse at 100% 0, rgba(118, 230, 198, .19), transparent 58%),
		linear-gradient(118deg, #102d3f, #075551);
	box-shadow: 0 12px 30px rgba(16, 45, 63, .14);
}

.tpcf-order-confirmation-check,
.tpcf-order-confirmation-icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: .7rem;
	color: var(--tpcf-teal-dark);
	background: #e2f3eb;
	font-size: 1.15rem;
}

.tpcf-order-confirmation-check {
	width: 3.35rem;
	height: 3.35rem;
	margin-block-end: .95rem;
	border-radius: 50%;
	font-size: 1.42rem;
	background: #b9f1d9;
	box-shadow: 0 0 0 .36rem rgba(185, 241, 217, .16);
}

.tpcf-refresh .tpcf-main .tpcf-order-confirmation-hero h1 {
	margin: 0 0 .65rem;
	color: inherit;
	font-size: clamp(1.95rem, 4.6vw, 3.1rem);
	line-height: 1.08;
}

.tpcf-refresh .tpcf-order-confirmation-intro p {
	max-width: 43ch;
	margin: 0;
	color: #dbeeea;
}

.tpcf-order-confirmation-summary {
	margin: 0;
	padding: .9rem 1.1rem;
	border: 1px solid rgba(210, 245, 230, .4);
	border-radius: .8rem;
	color: var(--tpcf-ink);
	background: #f5fbf8;
}

.tpcf-order-confirmation-summary > div {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .15rem .75rem;
	padding-block: .55rem;
}

.tpcf-order-confirmation-summary > div + div { border-top: 1px solid #d3e4dd; }
.tpcf-order-confirmation-summary dt { color: var(--tpcf-muted); font-size: .875rem; }
.tpcf-order-confirmation-summary dd { margin: 0; font-weight: 700; }
.tpcf-order-confirmation-reference { color: var(--tpcf-teal-dark); font-size: 1.4rem; }

.tpcf-order-confirmation-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	margin-block: 1.15rem clamp(1.65rem, 4vw, 2.5rem);
}

.tpcf-order-confirmation-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .85rem;
}

.tpcf-refresh .tpcf-order-confirmation-grid h3 { margin: .8rem 0 .4rem; }
.tpcf-refresh .tpcf-order-confirmation-grid p,
.tpcf-refresh .tpcf-order-confirmation-help p { color: var(--tpcf-muted); font-size: .9rem; }

.tpcf-order-confirmation-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .65rem 1rem;
	margin-block-start: 1.1rem;
	padding: .9rem clamp(1rem, 3vw, 1.4rem);
	border: 1px solid #d1e4dc;
	border-radius: .8rem;
	background: var(--tpcf-wash);
}

.tpcf-order-confirmation-help > div { flex: 1 1 12rem; }
.tpcf-refresh .tpcf-order-confirmation-help h2 { margin: 0 0 .2rem; font-size: 1.2rem; }
.tpcf-refresh .tpcf-order-confirmation-help p { margin: 0; }

@media (max-width: 660px) {
	.tpcf-refresh .tpcf-checkout-grid,
	.tpcf-order-confirmation-hero,
	.tpcf-order-confirmation-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 430px) {
	.tpcf-order-confirmation-actions .tpcf-button { flex-basis: 100%; }
}
