.fdm-cart-confirmation {
	box-sizing: border-box;
	position: fixed;
	z-index: 999;
	top: var(--fdm-confirmation-top, 76px);
	right: 16px;
	width: min(392px, calc(100% - 32px));
	margin: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--text);
	box-shadow: 0 6px 18px rgb(0 31 26 / 13%);
	font: 400 14px/20px var(--fdm-body, "Open Sans", sans-serif);
}

.fdm-cart-confirmation:not([open]) {
	display: none;
}

.fdm-cart-confirmation__body {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	column-gap: 12px;
	padding: 16px 48px 16px 16px;
	overflow-wrap: anywhere;
}

.fdm-cart-confirmation strong,
.fdm-cart-confirmation a {
	font-weight: 600;
}

.fdm-cart-confirmation p {
	margin: 4px 0 12px;
	color: var(--wp--preset--color--muted);
}

.fdm-cart-confirmation a {
	color: inherit;
	text-decoration: none;
}

.fdm-cart-confirmation a:hover {
	text-decoration: underline;
}

.fdm-cart-confirmation summary {
	position: absolute;
	top: 3px;
	right: 7px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	list-style: none;
	cursor: pointer;
}

.fdm-cart-confirmation summary::before,
.fdm-cart-confirmation summary::after {
	content: "";
	position: absolute;
	width: 13px;
	height: 2px;
	border-radius: 1px;
	background: var(--wp--preset--color--muted);
	transform: rotate(45deg);
}

.fdm-cart-confirmation summary::after {
	transform: rotate(-45deg);
}

.fdm-cart-confirmation summary::-webkit-details-marker {
	display: none;
}

.fdm-cart-confirmation :is(summary, a):focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}

@media (max-width: 920px) {

	.fdm-cart-confirmation {
		top: var(--fdm-confirmation-top, 60px);
	}
}

.fdm-confirm-copy span {
	display: block;
}

.fdm-confirm-copy {
	max-height: 40dvh;
	overflow: auto;
}

.fdm-receipt-dialog {
	box-sizing: border-box;
	width: min(328px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 24px;
	margin: auto;
	inset: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--text);
	font: 400 15px/1.45 var(--fdm-body);
	overflow: hidden;
}

.fdm-receipt-dialog[open] {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fdm-receipt-dialog::backdrop {
	background: rgb(2 45 45 / 38%);
}

.fdm-receipt-dialog h2 {
	font: 600 24px/34px var(--fdm-editorial);
	margin: 0;
	padding-inline-end: 24px;
}

.fdm-receipt-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 22px;
	cursor: pointer;
}

.fdm-receipt-lines {
	overflow: auto;
	min-height: 0;
	overscroll-behavior: contain;
	overflow-wrap: anywhere;
}

.fdm-receipt-lines section {
	display: grid;
	gap: 12px;
}

.fdm-receipt-lines section + section {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--border);
}

.fdm-receipt-lines p {
	margin: 0;
}

.fdm-receipt-lines > p {
	margin-top: 10px;
	color: var(--wp--preset--color--error);
}

.fdm-receipt-lines strong {
	font: 600 18px/24px var(--fdm-body);
}

.fdm-receipt-lines b {
	font-weight: 600;
}

.fdm-receipt-continue {
	align-self: flex-start;
	flex: none;
	cursor: pointer;
	max-width: 100%;
	border: 0;
	border-radius: 24px;
	padding: 12px 16px;
	font: 600 14px/20px var(--fdm-body);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--on-brand);
}


.fdm-receipt-lines section p,
.fdm-receipt-lines section b {
	line-height: 23px;
}

.fdm-receipt-lines > div {
	margin-top: 12px;
}

.fdm-server-receipt {
	position: fixed;
	z-index: 999;
	height: fit-content;
}

.fdm-server-receipt:not([open]) {
	display: none;
}

.fdm-server-receipt summary {
	order: 1;
	cursor: pointer;
}
