.ccl-imw-modal[hidden] {
	display: none !important;
}

.ccl-imw-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 999999;
}

.ccl-imw-modal__backdrop {
	background: rgba(15, 23, 42, .68);
	inset: 0;
	position: absolute;
}

.ccl-imw-modal__dialog {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	color: #172033;
	max-height: calc(100vh - 40px);
	max-width: 560px;
	overflow: auto;
	padding: 32px;
	position: relative;
	width: 100%;
	z-index: 1;
}

.ccl-imw-modal__dialog:focus {
	outline: 3px solid #2271b1;
	outline-offset: 3px;
}

.ccl-imw-modal__title {
	color: #172033;
	font-size: 1.55rem;
	line-height: 1.25;
	margin: 0 42px 16px 0;
}

.ccl-imw-modal__content p {
	margin: 0 0 18px;
}

.ccl-imw-modal__content ul {
	margin: 8px 0 20px 22px;
}

.ccl-imw-modal__close {
	background: transparent;
	border: 0;
	color: #334155;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	padding: 8px;
	position: absolute;
	right: 14px;
	top: 10px;
}

.ccl-imw-modal__confirmation {
	align-items: flex-start;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	font-weight: 600;
	gap: 8px;
	margin-top: 18px;
	padding: 14px;
}

.ccl-imw-modal__confirmation input {
	flex: 0 0 auto;
	margin-top: 4px;
}

.ccl-imw-modal__error {
	color: #b42318;
	font-weight: 600;
	margin-top: 12px;
}

.ccl-imw-modal__error:empty {
	display: none;
}

.ccl-imw-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

.ccl-imw-modal__actions .button {
	box-sizing: border-box;
	margin: 0;
	text-align: center;
}

.ccl-imw-modal__actions .button[disabled] {
	cursor: not-allowed;
	opacity: .55;
}

body.ccl-imw-modal-open {
	overflow: hidden;
}

.ccl-imw-review-confirmation {
	bottom: 18px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .18);
	position: fixed;
	right: 18px;
	z-index: 99990;
}

.ccl-imw-review-confirmation:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 3px;
}

html.ccl-imw-js .ccl-imw-no-js-confirmation {
	display: none !important;
}

html.ccl-imw-js .wc-block-components-checkbox:has(input[id*="ccl-ink-mismatch-confirmed"]),
html.ccl-imw-js .wc-block-components-checkbox:has(input[name*="ccl-ink-mismatch/confirmed"]) {
	display: none !important;
}

@media (max-width: 600px) {
	.ccl-imw-modal {
		align-items: flex-end;
		padding: 0;
	}

	.ccl-imw-modal__dialog {
		border-radius: 12px 12px 0 0;
		max-height: 90vh;
		padding: 24px 20px;
	}

	.ccl-imw-modal__actions {
		flex-direction: column-reverse;
	}

	.ccl-imw-modal__actions .button {
		width: 100%;
	}

	.ccl-imw-review-confirmation {
		bottom: 12px;
		left: 12px;
		right: 12px;
		width: calc(100% - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccl-imw-modal *,
	.ccl-imw-modal *::before,
	.ccl-imw-modal *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
