.aam-generated {
	margin: .75rem 0;
}

.aam-creative--cta {
	box-sizing: border-box;
	border: 1px solid #e7e7e7;
	border-left: 4px solid #2271b1;
	border-radius: 12px;
	padding: 18px 20px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
	color: #222;
}

.aam-cta__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 7px;
}

.aam-cta__label {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef5fb;
	color: #185d91;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.aam-cta__external {
	color: #8a8a8a;
	font-size: 15px;
	line-height: 1;
}

.aam-cta__title {
	display: block;
	margin: 0 0 8px;
	color: #222;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
}

.aam-cta__body {
	display: block;
	margin: 0 0 12px;
	color: #555;
	font-size: 14px;
	line-height: 1.7;
}

.aam-cta__body > :first-child {
	margin-top: 0;
}

.aam-cta__body > :last-child {
	margin-bottom: 0;
}

.aam-cta__body:empty {
	display: none;
}

.aam-cta__button {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: .65rem 3rem .65rem 1rem;
	border: 0;
	border-radius: 8px;
	background: #2271b1 !important;
	color: #fff !important;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
	transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.aam-cta__arrow {
	position: absolute;
	right: 16px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.aam-cta__helper {
	display: block;
	margin-top: 7px;
	color: #888;
	font-size: 11px;
	line-height: 1.45;
	text-align: center;
}

.aam-creative--rakuten {
	border-left-color: #bf0000;
}

.aam-creative--rakuten .aam-cta__label {
	background: #fff1f1;
	color: #a60000;
}

.aam-creative--rakuten .aam-cta__button {
	background: #bf0000 !important;
	color: #fff !important;
}

.aam-creative--amazon {
	border-left-color: #ff9900;
}

.aam-creative--amazon .aam-cta__label {
	background: #fff6e8;
	color: #7a4a00;
}

.aam-creative--amazon .aam-cta__button {
	background: #232f3e !important;
	color: #fff !important;
}

.aam-cta__button:focus-visible {
	outline: 3px solid #72aee6;
	outline-offset: 3px;
}

@media (hover: hover) {
	.aam-cta__button:hover {
		transform: translateY(-1px);
		filter: brightness(.95);
		box-shadow: 0 4px 9px rgba(0, 0, 0, .16);
		color: #fff !important;
	}
}

.aam-creative--banner,
.aam-creative--banner img {
	display: block;
	max-width: 100%;
	height: auto;
}

.aam-rakuten-widget {
	display: block;
	max-width: none;
	border: 0;
}

.aam-slot--mobile-anchor {
	display: none;
}

@media (max-width: 782px) {
	.aam-generated {
		margin: .5rem 0;
	}

	.aam-creative--cta {
		padding: 15px 16px;
	}

	.aam-cta__header {
		margin-bottom: 6px;
	}

	.aam-cta__title {
		margin-bottom: 6px;
		font-size: 16px;
	}

	.aam-cta__body {
		margin-bottom: 10px;
		font-size: 14px;
	}

	.aam-cta__button {
		min-height: 46px;
	}

	.aam-slot--mobile-anchor:has(.aam-generated) {
		display: block;
		position: fixed;
		z-index: 9999;
		left: 0;
		right: 0;
		bottom: 0;
		padding: .5rem max(.5rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
	}

	.aam-slot--mobile-anchor .aam-generated {
		position: relative;
		margin: 0 auto;
		max-width: 720px;
	}

	.aam-mobile-close {
		position: absolute;
		z-index: 1;
		top: -.4rem;
		right: -.2rem;
		width: 2rem;
		height: 2rem;
		border: 1px solid #8c8f94;
		border-radius: 50%;
		background: #fff;
		font-size: 1.4rem;
		line-height: 1;
		cursor: pointer;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aam-cta__button {
		transition: none;
	}
}
