.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;
	}
}

/* Combined Rakuten/Amazon time-sale Creative. The tsl prefix is intentionally
 * self-contained so theme buttons and article typography remain untouched. */
.tsl {
	font-family: inherit;
	margin: 2em 0;
	line-height: 1.75;
	line-break: strict;
	word-break: normal;
	overflow-wrap: break-word;
}

.tsl * {
	box-sizing: border-box;
}

.tsl__head {
	margin: 0;
	color: #1d1d1d;
	font-size: clamp(16px, 4.6vw, 19px);
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1.5;
}

.tsl__head .hot {
	color: #d0341a;
}

.tsl__copy {
	margin: 0;
	color: #333;
	font-size: clamp(13.5px, 3.8vw, 15.5px);
	font-weight: 600;
}

.tsl__copy .ln {
	display: block;
}

.tsl__copy .em {
	color: #d0341a;
	font-weight: 800;
}

.tsl__copy .sub {
	display: block;
	color: #666;
	font-size: .9em;
	font-weight: 500;
}

.tsl__yell {
	margin: 0 0 .5em;
	color: #d0341a;
	font-size: clamp(13px, 3.6vw, 14.5px);
	font-weight: 800;
	text-align: center;
}

.tsl__yell::before {
	content: "＼";
	margin-right: .3em;
}

.tsl__yell::after {
	content: "／";
	margin-left: .3em;
}

.tsl__btn {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	gap: .45em;
	overflow: hidden;
	width: 100%;
	padding: 1.05em .9em;
	border-radius: 6px;
	background: #e2664f;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .13);
	color: #fff !important;
	font-size: clamp(14px, 3.9vw, 16.5px);
	font-weight: 800;
	letter-spacing: .01em;
	text-align: center;
	text-decoration: none !important;
	transition: transform .12s ease, filter .12s ease;
}

.tsl__btn:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.tsl__btn:active {
	box-shadow: 0 1px 0 rgba(0, 0, 0, .13);
	transform: translateY(2px);
}

.tsl__btn:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

.tsl__btn .arw {
	font-size: .85em;
	opacity: .95;
}

.tsl__btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 45%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
	transform: skewX(-20deg);
	animation: tslShine 4.5s ease-in-out infinite;
	pointer-events: none;
}

@keyframes tslShine {
	0%, 70% { left: -60%; }
	88% { left: 120%; }
	100% { left: 120%; }
}

.tsl__chip {
	flex: 0 0 auto;
	padding: .28em .6em;
	border-radius: 3px;
	background: rgba(255, 255, 255, .24);
	font-size: .7em;
	font-weight: 800;
	letter-spacing: .04em;
}

.tsl__note {
	margin: .85em 0 0;
	color: #a2a2a2;
	font-size: 11px;
	line-height: 1.6;
	text-align: center;
}

.tsl__benefit {
	margin: -.65em auto 1.25em;
	padding: .7em .9em;
	border-radius: 5px;
	background: #fff2ee;
	color: #c9331b;
	font-size: clamp(13px, 3.7vw, 16px);
	font-weight: 800;
	line-height: 1.7;
	text-align: center;
}

.tsl--upcoming .tsl__benefit {
	background: #fff8e7;
	color: #9b5c00;
}

.tslA {
	text-align: center;
}

.tslA .tsl__head {
	margin-bottom: 1.1em;
	padding: .8em .5em;
	border-top: 3px solid #e2664f;
	border-bottom: 1px solid #e6e6e6;
}

.tslA .tsl__copy {
	margin-bottom: 1.5em;
}

.tslA .tsl__btns,
.tslC .tsl__btns {
	display: grid;
	gap: 11px;
}

.tslB {
	padding: 1.1em 1.2em 1.2em;
	border: 1px solid #f0d9d3;
	border-left: 5px solid #e2664f;
	border-radius: 4px;
	background: #fff8f6;
}

.tslB .tsl__head {
	margin-bottom: .4em;
}

.tslB .tsl__head .tag {
	display: inline-block;
	margin-right: .55em;
	padding: .35em .6em;
	border-radius: 3px;
	background: #d0341a;
	color: #fff;
	font-size: .62em;
	font-weight: 800;
	letter-spacing: .08em;
	vertical-align: .14em;
}

.tslB .tsl__copy {
	margin-bottom: 1.05em;
}

.tslB .tsl__btns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.tslB .tsl__btn {
	padding: .95em .5em;
	font-size: clamp(13px, 3.4vw, 15px);
}

.tslC {
	padding: 1.25em 0 1.35em;
	border-top: 2px solid #1d1d1d;
	border-bottom: 2px solid #1d1d1d;
	text-align: center;
}

.tslC .tsl__head {
	margin-bottom: .6em;
}

.tslC .tsl__copy {
	margin-bottom: 1.4em;
}

.tslC .btn--rakuten {
	background: #bf0000;
}

.tslC .btn--amazon {
	background: #e08214;
}

@media (max-width: 600px) {
	.tslB .tsl__btns {
		grid-template-columns: 1fr;
	}
}

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

	.tsl__btn:hover {
		transform: none;
	}

	.tsl__btn::after {
		display: none;
		animation: none;
	}
}
