/**
 * Decorrect WooCommerce — the refusal popup (assets/js/notice.js).
 *
 * The same tokens as the drawer, so the two look like one shop: ACSS
 * variables first, literals behind them for a site without ACSS.
 */

.dcw-notice {
	--dcw-notice-ink: var(--text-color, var(--primary, #17181c));
	--dcw-notice-muted: var(--neutral-semi-dark, #77756f);
	--dcw-notice-bg: var(--body-bg-color, #fff);
	--dcw-notice-accent: var(--primary, #17181c);
	--dcw-notice-accent-ink: var(--white, #fff);
	--dcw-notice-warn: #8a6100;
	--dcw-notice-warn-bg: rgba(138, 97, 0, 0.1);

	box-sizing: border-box;
	width: min(400px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	margin: auto;
	padding: 28px 24px 24px;
	overflow: auto;
	border: 0;
	border-radius: 12px;
	background: var(--dcw-notice-bg);
	box-shadow: 0 24px 60px rgba(17, 18, 22, 0.24);
	color: var(--dcw-notice-ink);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.dcw-notice[open] {
	animation: dcw-notice-in 0.18s ease-out;
}

.dcw-notice::backdrop {
	background: rgba(17, 18, 22, 0.42);
}

.dcw-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--dcw-notice-warn-bg);
	color: var(--dcw-notice-warn);
}

.dcw-notice__icon svg {
	display: block;
}

.dcw-notice .dcw-notice__title {
	margin: 0 0 8px;
	color: var(--dcw-notice-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.dcw-notice .dcw-notice__text {
	margin: 0;
	color: var(--dcw-notice-muted);
	font-size: 14px;
}

.dcw-notice__ok {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 22px;
	padding: 12px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--dcw-notice-accent);
	color: var(--dcw-notice-accent-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.dcw-notice__ok:hover {
	opacity: 0.88;
}

.dcw-notice__ok:focus-visible {
	outline: 2px solid var(--dcw-notice-accent);
	outline-offset: 3px;
}

@keyframes dcw-notice-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcw-notice[open] {
		animation: none;
	}
}
