/* Adam Milo – extra settings for the theme block "Banner floating caption".
 * Theme style.css is not changed; this file only adds to it. */

.amfc-cfg { display: none !important; }

/* line color (desktop: the existing left border) – default stays the theme orange */
.banner_floating_caption .captionBox .mainContent {
	border-left-color: var(--amfc-line, var(--color-red));
}
/* gradient option (Figma: #61D3DA → #3FBBCF → #1894B8), top to bottom */
.amfc-grad + .banner_floating_caption .captionBox .mainContent {
	border-image: var(--amfc-grad-v) 1;
}

/* space between paragraphs in the content (theme resets p margins to 0) */
.banner_floating_caption .captionBox .mainContent .content p {
	margin: 0 0 15px;
}
.banner_floating_caption .captionBox .mainContent .content > :last-child {
	margin-bottom: 0;
}

/* optional lines between paragraphs (Figma "Fit +Risk": 1px #3F92A0 @ 40%,
   15px above the line, 16px below it) */
.amfc-sep + .banner_floating_caption .captionBox .mainContent .content > * + * {
	border-top: 1px solid var(--amfc-sep, rgba(63, 146, 160, .4));
	padding-top: 16px;
}

@media (max-width: 767px) {
	/* quote mark: hidden by default, shown when "Show the quote mark on mobile" is on */
	.banner_floating_caption .captionBox:before { display: none; }
	.amfc-quote-show + .banner_floating_caption .captionBox:before { display: block; }

	/* line above the title, as in Figma "Risk - mobile": 100 x 5, centered, 32px gap */
	.banner_floating_caption .captionBox .mainContent:before {
		content: "";
		display: block;
		width: 100px;
		height: 5px;
		margin: 0 auto 32px;
		background: var(--amfc-line, var(--color-red));
	}
	/* gradient option: left to right on the horizontal mobile line */
	.amfc-grad + .banner_floating_caption .captionBox .mainContent:before {
		background: var(--amfc-grad-h);
	}
}
