/**
 * Collection at checkout. Minimal on purpose — this renders inside the
 * theme's own checkout, so it borrows the theme's type and colour and
 * asserts only what it must.
 */

.plonk-collect-hidden {
	display: none !important;
}

.plonk-collect {
	margin: 6px 0 0;
}

.plonk-collect-toggle {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 0.85em;
	color: inherit;
	opacity: 0.7;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.plonk-collect-toggle:hover,
.plonk-collect-toggle:focus-visible {
	opacity: 1;
}

.plonk-collect-dialog {
	border: none;
	border-radius: 10px;
	padding: 24px;
	max-width: 440px;
	width: calc( 100% - 32px );
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.25 );
	color: inherit;
}

.plonk-collect-dialog::backdrop {
	background: rgba( 0, 0, 0, 0.45 );
}

.plonk-collect-dialog h2 {
	margin: 0 0 12px;
	font-size: 1.25em;
}

.plonk-collect-body {
	font-size: 0.95em;
}

.plonk-collect-body p {
	margin: 0 0 10px;
}

.plonk-collect-close {
	float: right;
	appearance: none;
	border: none;
	background: none;
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.5;
}

.plonk-collect-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.plonk-collect-actions button {
	appearance: none;
	font: inherit;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid rgba( 0, 0, 0, 0.25 );
	background: none;
	color: inherit;
}

.plonk-collect-confirm {
	margin-left: auto;
	border-color: transparent !important;
	background: #1a4fa0 !important;
	color: #fff !important;
}

.plonk-collect-status:empty { display: none; }
.plonk-collect-status { margin: 12px 0 0; font-size: 0.9em; }

.plonk-collect-dialog[open]:not(:modal) {
	position: fixed;
	inset: auto 16px 16px;
	margin: 0 auto;
	z-index: 99999;
}
