.at-callout-grid-box.at-sell-widget {
	--at-bg: #f9f0ff;
	--at-border: #9b28d9;
	--at-line: #eed5fc;
	--at-text-title: #8318bc;
	--at-text-main: #1d1d1f;
	--at-text-sub: #333336;
	--at-text-action: #8318bc;
	--at-hover-bg: rgba(155, 40, 217, 0.08);

	position: relative;
	background-color: var(--at-bg);
	padding: 20px;
	border-radius: 12px;
	margin: 25px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
	transition: background-color 0.3s ease;

	/* Maakt deze widget querybaar op eigen breedte */
	container-type: inline-size;
}

@media (prefers-color-scheme: dark) {
	.at-callout-grid-box.at-sell-widget {
		--at-bg: #22142b;
		--at-border: #bd52f0;
		--at-line: #371e45;
		--at-text-title: #c86bf8;
		--at-text-main: #f5f5f7;
		--at-text-sub: #d1d1d6;
		--at-text-action: #c86bf8;
		--at-hover-bg: rgba(189, 82, 240, 0.15);
	}
}

body.dark-mode .at-callout-grid-box.at-sell-widget,
body.dark .at-callout-grid-box.at-sell-widget,
html[data-theme="dark"] .at-callout-grid-box.at-sell-widget {
	--at-bg: #22142b;
	--at-border: #bd52f0;
	--at-line: #371e45;
	--at-text-title: #c86bf8;
	--at-text-main: #f5f5f7;
	--at-text-sub: #d1d1d6;
	--at-text-action: #c86bf8;
	--at-hover-bg: rgba(189, 82, 240, 0.15);
}

.at-sell-widget * {
	box-sizing: border-box;
}

.at-sell-widget .at-header-content {
	padding-right: 75px;
	margin-bottom: 16px;
}

.at-sell-widget .at-callout-header {
	margin: 0 0 4px 0;
	color: var(--at-text-title);
	font-size: 1.15rem;
	line-height: 1.3rem;
	font-weight: 700;
}

.at-sell-widget .at-callout-intro {
	margin: 0;
	font-size: 0.92rem;
	color: var(--at-text-sub);
	line-height: 1.4;
}

.at-sell-widget .at-header-img-container {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 2;
}

.at-sell-widget .at-header-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.at-sell-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--at-line);
}

.at-sell-widget .at-link-sell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--at-text-main);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	background-color: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--at-line);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
	.at-sell-widget .at-link-sell {
		background-color: rgba(255, 255, 255, 0.05);
	}
}

body.dark-mode .at-sell-widget .at-link-sell,
body.dark .at-sell-widget .at-link-sell,
html[data-theme="dark"] .at-sell-widget .at-link-sell {
	background-color: rgba(255, 255, 255, 0.05);
}

.at-sell-widget .at-link-sell:hover {
	background-color: var(--at-hover-bg);
	color: var(--at-text-action);
	border-color: var(--at-border);
}

.at-sell-widget .at-btn-arrow {
	color: var(--at-text-action);
	font-weight: bold;
	font-size: 0.95rem;
	margin-left: 4px;
}

.at-promo-banner {
	margin-top: 12px;
	padding: 10px 14px;
	background: linear-gradient(135deg, rgba(155, 40, 217, 0.12), rgba(131, 24, 188, 0.06));
	border: 1px dashed var(--at-border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.85rem;
	line-height: 1rem;
	color: var(--at-text-main);
}

.at-promo-code {
	background-color: var(--at-text-title);
	color: #ffffff;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 700;
	font-family: monospace;
	letter-spacing: 0.5px;
}

/* Viewport-aanpassingen voor algemene layout */
@media (max-width: 680px) {
	.at-sell-widget .at-header-content {
		padding-right: 50px;
	}

	.at-sell-widget .at-header-img-container {
		width: 44px;
		height: 44px;
		top: 12px;
		right: 12px;
	}

	.at-sell-widget .at-link-sell {
		padding: 8px 10px;
		font-size: 0.85rem;
	}

	.at-promo-banner {
		flex-direction: column;
		gap: 6px;
		text-align: center;
	}
}

/* Grid reageert op de breedte van de widget zelf */
@container (max-width: 300px) {
	.at-sell-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}

@container (max-width: 200px) {
	.at-sell-grid {
		grid-template-columns: 1fr;
	}
}
