.ast-sale-bar,
.ast-sale-dialog,
.ast-sale-page {
	--ast-sale-ink: #103657;
	--ast-sale-blue: #075bac;
	--ast-sale-teal: #0a6171;
	--ast-sale-border: #829cb0;
	--ast-sale-pale: #e4f7fb;
}

.ast-sale-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .5rem 1.25rem;
	padding: .625rem 1rem;
	background: linear-gradient(100deg, var(--ast-sale-ink), var(--ast-sale-teal));
	color: #fff;
	text-align: center;
	font-size: 1rem;
	line-height: 1.5;
}

.ast-sale-bar p,
.ast-sale-heading p {
	margin: 0;
}

.ast-sale-bar strong {
	font-weight: 700;
}

.ast-sale-bar .ast-sale-button,
.ast-sale-content .ast-sale-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .5rem 1rem;
	border: 1px solid transparent;
	border-radius: .5rem;
	background: var(--ast-sale-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ast-sale-bar .ast-sale-button {
	background: #fff;
	color: var(--ast-sale-ink);
}

.ast-sale-bar .ast-sale-button:hover {
	background: var(--ast-sale-pale);
}

.ast-sale-content .ast-sale-button:hover {
	background: var(--ast-sale-ink);
}

.ast-sale-content .ast-sale-button:disabled {
	opacity: .7;
	cursor: wait;
}

.ast-sale-bar :focus-visible,
.ast-sale-dialog :focus-visible,
.ast-sale-page :focus-visible {
	outline: 3px solid #126fbe;
	outline-offset: 3px;
}

.ast-sale-bar :focus-visible {
	outline-color: #fff;
}

.ast-sale-dialog #ast-sale-title:focus {
	outline: none;
}

.ast-sale-dialog:not([open]),
.ast-sale-dialog [hidden],
.ast-sale-page [hidden] {
	display: none !important;
}

.ast-sale-dialog,
.ast-sale-card {
	box-sizing: border-box;
	width: min(42rem, calc(100% - 2rem));
	padding: 0;
	border: 1px solid #c5e0eb;
	border-radius: 1rem;
	background: #fff;
	color: var(--ast-sale-ink);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	box-shadow: 0 20px 70px rgb(16 54 87 / 24%);
}

.ast-sale-dialog {
	position: fixed;
	inset: 0;
	max-width: none;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: auto;
	overflow: auto;
	overscroll-behavior: contain;
}

.ast-sale-dialog::backdrop {
	background: rgb(9 31 52 / 70%);
}

.ast-sale-heading {
	position: relative;
	padding: 1.75rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
	background: linear-gradient(115deg, #e4f2ff, var(--ast-sale-pale));
}

.ast-sale-dialog .ast-sale-heading {
	padding-right: 3.75rem;
}

.ast-sale-heading h1,
.ast-sale-heading h2 {
	margin: 0 0 .5rem;
	color: var(--ast-sale-ink);
	font-family: inherit;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.ast-sale-close {
	position: absolute;
	inset: .5rem .5rem auto auto;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 1px solid #adc8d5;
	border-radius: .5rem;
	background: #fff;
	color: var(--ast-sale-ink);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.ast-sale-close:hover {
	background: var(--ast-sale-pale);
	color: var(--ast-sale-ink);
}

.ast-sale-content {
	padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 1.75rem;
}

.ast-sale-form,
.ast-sale-fields {
	display: grid;
	gap: .875rem;
}

.ast-sale-fields {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ast-sale-form label {
	display: grid;
	gap: .25rem;
	color: var(--ast-sale-ink);
	font-weight: 600;
}

.ast-sale-form input:not([type="hidden"]),
.ast-sale-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: .5rem .75rem;
	border: 1px solid var(--ast-sale-border);
	border-radius: .5rem;
	background: #fff;
	color: var(--ast-sale-ink);
	font: inherit;
	font-weight: 400;
}

.ast-sale-form textarea {
	resize: vertical;
}

.ast-sale-form textarea::placeholder {
	color: #51677a;
	opacity: 1;
}

.ast-sale-form .ast-sale-button {
	justify-self: start;
}

.ast-sale-trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.ast-sale-note,
.ast-sale-status,
.ast-sale-return,
.ast-sale-fallback {
	margin: 0;
}

.ast-sale-note {
	font-size: .875rem;
}

.ast-sale-status:empty {
	position: absolute;
}

.ast-sale-status:not(:empty) {
	padding: .5rem .75rem;
	border-radius: .5rem;
	background: var(--ast-sale-pale);
}

.ast-sale-return,
.ast-sale-fallback {
	margin-top: .875rem;
}

.ast-sale-content a:not(.ast-sale-button) {
	color: var(--ast-sale-blue);
	text-decoration: underline;
}

.ast-sale-page {
	margin: 0;
	padding: 2rem 0;
	background: #f1f8fb;
	font-family: system-ui, sans-serif;
}

.ast-sale-card {
	margin: 0 auto;
	overflow: hidden;
}

@media (max-width: 38rem) {
	.ast-sale-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.ast-sale-heading h1,
	.ast-sale-heading h2 {
		font-size: 1.5rem;
		line-height: 1.333;
	}
}
