/**
 * "Leave a review" admin notice.
 *
 * Styled to match the Donation Suite admin design language defined in
 * assets/css/admin-settings.css (white cards, #111 accent, 10px radius, pill
 * eyebrows, #8a8f98 borders, subtle card shadow). The notice renders outside
 * .donadosu-admin-wrap, so the design tokens are mirrored here as literals
 * rather than referenced as CSS variables.
 *
 * Enqueued by DonationSuite\Admin\ReviewNotice on the settings screen.
 */
.notice.donadosu-review-notice {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 14px 0px 16px 0;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #d2d5d8;
	/* Override WordPress's 4px coloured left border. */
	border-left: 1px solid #d2d5d8;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(22, 29, 37, 0.1);
	color: #202223;
        max-width: 1100px;
}

/*
 * Delayed reveal. The notice is rendered with `--delayed` and stays hidden
 * until review-ajax.js swaps in `--revealed` (~3s after the page loads).
 * The three-class selector outranks the base `.notice.donadosu-review-notice`
 * rule, so `display: none` wins and there is no flash on load. Removing the
 * modifier returns the notice to the base `display: flex`, so the flex layout
 * is preserved — we never force `display: block`.
 */
.notice.donadosu-review-notice.donadosu-review-notice--delayed {
	display: none;
}

.notice.donadosu-review-notice.donadosu-review-notice--revealed {
	animation: donadosu-review-notice-in 400ms ease both;
}

@keyframes donadosu-review-notice-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Respect reduced-motion preferences: still reveal, just without the fade. */
@media (prefers-reduced-motion: reduce) {
	.notice.donadosu-review-notice.donadosu-review-notice--revealed {
		animation: none;
	}
}

/* Leading heart badge — mirrors the plugin's dashicons-heart menu icon. */
.donadosu-review-notice__badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #f3f3f3;
	border: 1px solid #e3e3e5;
}

.donadosu-review-notice__badge .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
	line-height: 1;
	color: #111111;
}

.donadosu-review-notice__body {
	flex: 1 1 auto;
	min-width: 0;
}

.donadosu-review-notice__eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 8px;
	padding: 3px 9px;
	border-radius: 999px;
	border: 1px solid #aeb4bb;
	background: #f3f3f3;
	color: #3d4148;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.4;
}

.donadosu-review-notice .donadosu-review-notice__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 650;
	letter-spacing: -0.01em;
	color: #111111;
}

.donadosu-review-notice .donadosu-review-notice__text {
	margin: 0 0 14px;
	padding: 0;
	max-width: 760px;
	font-size: 13px;
	line-height: 1.6;
	color: #616467;
}

.donadosu-review-notice .donadosu-review-notice__text a {
	color: #111111;
	font-weight: 600;
}

.donadosu-review-notice__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Base action button — mirrors `.donadosu-actions-bar .button`. */
.donadosu-review-notice .donadosu-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #8a8f98;
	border-radius: 7px;
	background: #ffffff;
	color: #3d4148;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 120ms ease, background-color 140ms ease,
		border-color 140ms ease, color 140ms ease;
}

.donadosu-review-notice .donadosu-action-button:hover,
.donadosu-review-notice .donadosu-action-button:focus {
	background: #f3f3f3;
	border-color: #3d4148;
	color: #111111;
	transform: translateY(-1px);
}

.donadosu-review-notice .donadosu-action-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.25);
}

/* Primary (black) — Write Review. Mirrors the plugin's primary button. */
.donadosu-review-notice .donadosu-action-button--primary {
	min-height: 38px;
	padding: 0 20px;
	border-color: #111111;
	background: #111111;
	color: #ffffff;
}

.donadosu-review-notice .donadosu-action-button--primary:hover,
.donadosu-review-notice .donadosu-action-button--primary:focus {
	border-color: #000000;
	background: #000000;
	color: #ffffff;
}

/* Quiet text link — Hide. */
.donadosu-review-notice .donadosu-action-button--link {
	min-height: 0;
	padding: 6px 8px;
	border-color: transparent;
	background: transparent;
	color: #616467;
	font-weight: 500;
}

.donadosu-review-notice .donadosu-action-button--link:hover,
.donadosu-review-notice .donadosu-action-button--link:focus {
	background: transparent;
	border-color: transparent;
	color: #111111;
	text-decoration: underline;
	transform: none;
}

@media screen and (max-width: 600px) {
	.notice.donadosu-review-notice {
		margin-right: 10px;
		padding: 16px;
	}

	.donadosu-review-notice__badge {
		display: none;
	}
}
