/* All About Material v1.4.18 — premium inline notices */

.aam-notice-staging[hidden] {
	display: none !important;
}

.aam-form-notice {
	position: relative;
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 32px;
	gap: 13px;
	align-items: center;
	width: 100%;
	margin: 0 0 22px;
	padding: 14px 14px 14px 13px;
	border: 1px solid color-mix(in srgb, var(--aam-primary) 24%, var(--aam-line));
	border-radius: 13px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--aam-primary) 8%, #fff), #fff 72%);
	box-shadow: 0 12px 32px rgba(15, 31, 49, .08);
	color: var(--aam-ink);
	text-align: left;
	animation: aamNoticeIn .32s cubic-bezier(.2, .8, .2, 1) both;
}

.aam-form-notice::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: 0;
	width: 3px;
	border-radius: 0 4px 4px 0;
	background: var(--aam-primary);
}

.aam-form-notice-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--aam-primary-soft);
	color: var(--aam-primary);
}

.aam-form-notice-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.aam-form-notice-copy {
	min-width: 0;
}

.aam-form-notice-copy strong,
.aam-form-notice-copy span {
	display: block;
}

.aam-form-notice-copy strong {
	margin-bottom: 2px;
	color: var(--aam-ink);
	font: 700 14px/1.35 "Poppins", sans-serif;
}

.aam-form-notice-copy span {
	color: var(--aam-muted);
	font: 500 13px/1.55 "DM Sans", sans-serif;
}

.aam-form-notice-close {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--aam-muted);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.aam-form-notice-close:hover,
.aam-form-notice-close:focus-visible {
	background: var(--aam-primary-soft);
	color: var(--aam-primary);
	transform: rotate(4deg);
}

.aam-form-notice.is-warning .aam-form-notice-icon,
.aam-form-notice.is-error .aam-form-notice-icon {
	background: color-mix(in srgb, var(--aam-primary) 11%, #fff);
}

.aam-form-notice.is-leaving {
	animation: aamNoticeOut .2s ease both;
}

.aam-auth-form > .aam-form-notice:first-child,
.aam-dashboard-form > .aam-form-notice:first-child,
.aam-modal-form > .aam-form-notice:first-child,
.aam-save-folder-form > .aam-form-notice:first-child,
.aam-subscribe-form > .aam-form-notice:first-child,
.aam-dashboard-payment-form > .aam-form-notice:first-child {
	grid-column: 1 / -1;
}

.aam-notice-page-host {
	margin-bottom: 24px;
}

.aam-notice-page-host .aam-form-notice {
	max-width: 760px;
}

.aam-auth-form.is-complete > :not(.aam-form-notice) {
	opacity: .54;
}

.aam-auth-form.is-complete button[type="submit"] {
	pointer-events: none;
}

@keyframes aamNoticeIn {
	from { opacity: 0; transform: translateY(-8px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes aamNoticeOut {
	to { opacity: 0; transform: translateY(-6px) scale(.985); }
}

@media (max-width: 600px) {
	.aam-form-notice {
		grid-template-columns: 36px minmax(0, 1fr) 28px;
		gap: 10px;
		padding: 12px 11px;
		border-radius: 11px;
	}

	.aam-form-notice-icon {
		width: 36px;
		height: 36px;
	}

	.aam-form-notice-copy strong {
		font-size: 13px;
	}

	.aam-form-notice-copy span {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aam-form-notice,
	.aam-form-notice.is-leaving {
		animation: none;
	}
}
