/*
 * SME - Close.
 *
 * Read from cp-all-designer sme.html:391-405, css/sme.css:594-630, 699-702 and
 * css/app.css:417-420 (.sec--close).
 *
 * Colour, type, padding, the corner and the spaces between the parts arrive
 * from the Style tab and are not repeated here.
 */

/* sme.css:598-605 — a dark panel, its words centred */
.custom-sme-close .custom-sme-close__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-shadow: 0 34px 80px -20px rgba(22, 65, 140, 0.3);   /* --sh-lg, app.css:161 */
	text-align: center;
}

/* sme.css:606-612 — lit from its corners by the brand's blue, green and red */
.custom-sme-close .custom-sme-close__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(46% 130% at 2% -14%, rgba(80, 163, 213, 0.34), transparent 100%),
		radial-gradient(44% 120% at 52% 118%, rgba(92, 161, 63, 0.22), transparent 100%),
		radial-gradient(44% 130% at 100% -12%, rgba(206, 41, 41, 0.2), transparent 100%);
}

/* sme.css:613-618 — the brand's leaf, faint, off the foot corner */
.custom-sme-close .custom-sme-close__leaf {
	position: absolute;
	right: -6%;
	bottom: -28%;
	z-index: -1;
	line-height: 0;
	pointer-events: none;
}

.custom-sme-close .custom-sme-close__leaf svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* sme.css:618 — the outline keeps its weight however large the leaf is drawn */
.custom-sme-close .custom-sme-close__leaf path {
	vector-effect: non-scaling-stroke;
}

/* sme.css:19-21, 619-624 — the site's quotation mark, drawn rather than typed */
.custom-sme-close .custom-sme-close__mark {
	display: block;
	aspect-ratio: 48 / 36;
	margin-right: auto;
	margin-left: auto;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M0 18V9.5C0 4.3 3.2.7 8 0l.8 2.6C6 3.4 4.4 5.2 4.4 7.4H8V18zm13 0V9.5c0-5.2 3.2-8.8 8-9.5l.8 2.6c-2.8.8-4.4 2.6-4.4 4.8H21V18z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M0 18V9.5C0 4.3 3.2.7 8 0l.8 2.6C6 3.4 4.4 5.2 4.4 7.4H8V18zm13 0V9.5c0-5.2 3.2-8.8 8-9.5l.8 2.6c-2.8.8-4.4 2.6-4.4 4.8H21V18z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* sme.css:625-629 */
.custom-sme-close .custom-sme-close__text {
	margin: 0 auto;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0;
	text-transform: none;
}

/* sme.css:57-60 */
.custom-sme-close .custom-sme-close__act {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px (sme.css:699-702, drawn at 640)                */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.custom-sme-close .custom-sme-close__mark {
		aspect-ratio: 38 / 28;
	}
	.custom-sme-close .custom-sme-close__act [data-custom-partner-button] {
		flex: 1 1 100%;
	}
}
