.aieb-block,
.aieb-block *,
.aieb-block *::before,
.aieb-block *::after {
	box-sizing: border-box;
}

.aieb-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 64px 80px;
	gap: 32px;
	background: #fff;
	border-bottom: 1px solid #eaeaea;
}

.aieb-query-pill,
.aieb-refine-form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 800px;
}

.aieb-query-pill {
	padding: 10px 24px;
	gap: 12px;
	background: #fff;
	border: 1px solid #c9a96e;
	border-radius: 100px;
}

.aieb-query-icon,
.aieb-refine-icon,
.aieb-product-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
}

.aieb-query-icon {
	width: 18px;
	height: 18px;
	color: #c9a96e;
	font-size: 16px;
}

.aieb-query-icon svg,
.aieb-refine-icon svg,
.aieb-product-link-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aieb-query-text {
	min-width: 0;
	color: #111;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
}

.aieb-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 960px;
	padding: 32px;
	gap: 28px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.02);
}

.aieb-summary {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aieb-title {
	margin: 0;
	color: #111;
	font-family: "Fraunces", Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
}

.aieb-description,
.aieb-description p {
	color: #4a4a4a;
	font-family: "Lora", Georgia, serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

.aieb-description p {
	margin: 0;
}

.aieb-description p + p {
	margin-top: 0.75em;
}

.aieb-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
	width: 100%;
}

.aieb-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 8px;
}

.aieb-product-image {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	object-position: center;
}

.aieb-product-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	padding: 16px;
	gap: 8px;
}

.aieb-product-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.aieb-product-title {
	margin: 0;
	color: #111;
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 800;
	line-height: 19px;
}

.aieb-product-price {
	flex: 0 0 auto;
	color: #e03f54;
	font-family: "Outfit", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
}

.aieb-product-description {
	margin: 0;
	color: #4a4a4a;
	font-family: "Lora", Georgia, serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.aieb-product-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 4px;
	margin-top: auto;
	padding-top: 8px;
	color: #e03f54;
	font-family: "Outfit", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 15px;
	text-decoration: none;
}

.aieb-product-link:hover,
.aieb-product-link:focus {
	color: #e03f54;
	text-decoration: underline;
}

.aieb-product-link-icon {
	width: 12px;
	height: 12px;
	font-size: 10px;
}

.aieb-sources-legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	border-top: 1px solid #eaeaea;
}

.aieb-sources-wrap,
.aieb-source-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.aieb-sources-wrap {
	gap: 16px;
	min-width: 0;
}

.aieb-source-list {
	gap: 16px;
}

.aieb-sources-label {
	color: #888;
	font-family: "Outfit", sans-serif;
	font-size: 11px;
	font-weight: 800;
	line-height: 14px;
	text-transform: uppercase;
}

.aieb-source-item {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.aieb-source-item:not(:last-child)::after {
	width: 4px;
	height: 4px;
	content: "";
	background: #888;
	border-radius: 50%;
}

.aieb-source-link {
	color: #e03f54;
	font-family: "Outfit", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 16px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aieb-source-link:hover,
.aieb-source-link:focus {
	color: #e03f54;
	text-decoration-thickness: 2px;
}

.aieb-legal {
	flex: 0 1 auto;
	margin: 0;
	color: #888;
	font-family: "Outfit", sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 14px;
	text-align: right;
}

.aieb-refine-form {
	gap: 12px;
	padding: 14px 24px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 100px;
}

.aieb-refine-input {
	min-width: 0;
	width: 100%;
	padding: 0;
	color: #888;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
}

.aieb-refine-input::placeholder {
	color: #888;
	opacity: 1;
}

.aieb-refine-input::-webkit-search-cancel-button {
	appearance: none;
}

.aieb-refine-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	padding: 0;
	color: #c9a96e;
	font-size: 16px;
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
}

.aieb-refine-submit:hover,
.aieb-refine-submit:focus {
	color: #c9a96e;
	background: transparent;
	box-shadow: none;
	transform: translateY(-1px);
}

.aieb-refine-input:focus-visible,
.aieb-refine-submit:focus-visible,
.aieb-product-link:focus-visible,
.aieb-source-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.aieb-screen-reader {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 1024px) {
	.aieb-block {
		padding: 48px 32px;
	}

	.aieb-sources-legal {
		align-items: flex-start;
		flex-direction: column;
	}

	.aieb-legal {
		text-align: left;
	}
}

@media (max-width: 767px) {
	.aieb-block {
		padding: 32px 16px;
		gap: 24px;
	}

	.aieb-card {
		padding: 22px 18px;
		gap: 22px;
	}

	.aieb-products {
		grid-template-columns: 1fr;
	}

	.aieb-query-pill,
	.aieb-refine-form {
		padding-right: 18px;
		padding-left: 18px;
	}

	.aieb-source-list,
	.aieb-sources-wrap {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.aieb-source-item {
		gap: 0;
	}

	.aieb-source-item:not(:last-child)::after {
		display: none;
	}
}
