.anrst-widget {
	--anrst-border: #d7dde5;
	--anrst-text: #17212f;
	--anrst-muted: #5f6b7a;
	--anrst-accent: #0477bf;
	--anrst-accent-dark: #03598f;
	--anrst-surface: #ffffff;
	--anrst-soft: #f4f7fa;
	--anrst-section: #eef6fb;
	background: linear-gradient(180deg, #f8fbff 0%, var(--anrst-section) 100%);
	border: 1px solid rgba(119, 143, 166, .22);
	border-radius: 12px;
	box-shadow: 0 18px 45px rgba(10, 25, 45, .12);
	box-sizing: border-box;
	color: var(--anrst-text);
	margin: 24px auto;
	max-width: 1280px;
	padding: clamp(16px, 2.8vw, 32px);
}

.anrst-search-form {
	align-items: end;
	background: #ffffff;
	border: 1px solid var(--anrst-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(29, 52, 77, .08);
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(220px, 1.8fr) repeat(2, minmax(150px, 1fr)) repeat(3, minmax(96px, .7fr)) auto;
	padding: 16px;
}

.anrst-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.anrst-field label {
	color: var(--anrst-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}

.anrst-field input,
.anrst-field select {
	background: #fff;
	border: 1px solid var(--anrst-border);
	border-radius: 6px;
	color: var(--anrst-text);
	font: inherit;
	font-size: 16px;
	min-height: 42px;
	padding: 8px 10px;
	width: 100%;
}

.anrst-submit,
.anrst-book {
	background: var(--anrst-accent);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-height: 42px;
	padding: 10px 16px;
	text-align: center;
	white-space: nowrap;
}

.anrst-book {
	margin-top: auto;
	width: 100%;
}

.anrst-submit:hover,
.anrst-book:hover {
	background: var(--anrst-accent-dark);
}

.anrst-submit:disabled,
.anrst-book:disabled {
	background: #d7e5f2;
	color: #50687f;
	cursor: not-allowed;
	opacity: 1;
}

.anrst-disclosure {
	color: #46576b;
	font-size: 14px;
	line-height: 1.45;
	margin: 12px 2px 0;
}

.anrst-status {
	font-weight: 600;
	margin: 14px 2px;
	min-height: 24px;
}

.anrst-status[data-tone="error"] {
	color: #a32f21;
}

.anrst-status[data-tone="success"] {
	color: #176d3b;
}

.anrst-fallback-notice {
	background: #fff8e5;
	border: 1px solid #e8c76a;
	border-radius: 8px;
	color: #6d5200;
	font-size: 14px;
	grid-column: 1 / -1;
	padding: 12px 14px;
}

.anrst-results {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 18px;
}

.anrst-card {
	background: var(--anrst-surface);
	border: 1px solid var(--anrst-border);
	border-radius: 8px;
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(23, 33, 47, .10);
	min-width: 0;
}

.anrst-card-image {
	aspect-ratio: 16 / 10;
	background: var(--anrst-soft);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.anrst-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.anrst-card-kicker,
.anrst-card-meta,
.anrst-note {
	color: var(--anrst-muted);
	font-size: 14px;
	line-height: 1.45;
}

.anrst-sample-badge {
	background: #eef4f9;
	border: 1px solid var(--anrst-border);
	border-radius: 999px;
	color: var(--anrst-muted);
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	justify-self: start;
	padding: 3px 8px;
	text-transform: uppercase;
}

.anrst-card h3 {
	color: var(--anrst-text) !important;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
	min-height: 48px;
}

.anrst-price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.anrst-price strong {
	color: var(--anrst-text);
	font-size: 24px;
	line-height: 1.15;
}

.anrst-price span {
	color: var(--anrst-muted);
	font-size: 13px;
}

.anrst-note {
	margin: 0;
}

.anrst-empty {
	background: var(--anrst-soft);
	border: 1px solid var(--anrst-border);
	border-radius: 8px;
	color: var(--anrst-muted);
	padding: 16px;
}

@media (max-width: 1180px) {
	.anrst-results {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.anrst-search-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.anrst-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.anrst-widget {
		border-radius: 0;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 16px;
		width: 100vw;
	}

	.anrst-search-form {
		grid-template-columns: 1fr;
	}

	.anrst-submit {
		width: 100%;
	}

	.anrst-results {
		grid-template-columns: 1fr;
	}

	.anrst-card h3 {
		min-height: 0;
	}
}
