#stcm-wrapper {
	--fontFamily: var(--font-rubik), 'Rubik', sans-serif;
	--primaryColor: #f0ab46;
	--backgroundColor: #302a6a;
	--textColor: #ffffff;
	--boxShadow: -10px 18px 32px rgb(24 19 70 / 22%), 0 24px 72px rgb(24 19 70 / 18%);
	--backdropBackgroundColor: rgb(21 17 57 / 68%);
	--backdropBackgroundBlur: 4px;
	--iconColor: #f0ab46;
	--iconBackgroundColor: #302a6a;
}

#stcm-wrapper #stcm-banner,
#stcm-wrapper #stcm-modal {
	border-radius: 16px;
	box-shadow: var(--boxShadow);
	overflow-wrap: anywhere;
}

#stcm-wrapper #stcm-banner {
	width: min(720px, calc(100% - 32px));
	padding: clamp(24px, 4vw, 36px);
}

#stcm-wrapper #stcm-banner.stcm-pos-bottom-center.stcm-loaded {
	transform: translateX(-50%);
}

#stcm-wrapper #stcm-banner p,
#stcm-wrapper #stcm-modal p,
#stcm-wrapper #stcm-modal .stcm-consent-description {
	font-size: 16px;
	line-height: 1.6;
}

#stcm-wrapper #stcm-banner p {
	max-width: 68ch;
}

#stcm-wrapper a {
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

#stcm-wrapper .stcm-button {
	min-height: 48px;
	border-radius: 999px;
	padding: 11px 22px;
	color: #302a6a;
	font-family: var(--fontFamily);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.075em;
	line-height: 22px;
	text-transform: uppercase;
	transition:
		background-color 180ms ease-out,
		color 180ms ease-out,
		box-shadow 180ms ease-out;
}

#stcm-wrapper .stcm-button:hover {
	color: #f0ab46;
}

#stcm-wrapper #stcm-banner .stcm-button:focus,
#stcm-wrapper #stcm-modal .stcm-button:focus {
	border-radius: 999px;
}

#stcm-wrapper #stcm-banner .stcm-actions {
	display: grid;
	grid-template-columns: max-content max-content minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

#stcm-wrapper #stcm-banner .stcm-actions-row {
	min-width: 0;
	gap: 12px;
}

#stcm-wrapper #stcm-banner .stcm-preferences-button {
	min-height: 48px;
	padding: 10px 4px;
	font-family: var(--fontFamily);
	font-weight: 700;
	text-underline-offset: 4px;
}

#stcm-wrapper #stcm-banner .stcm-preferences-button span {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

#stcm-wrapper #stcm-banner a.stcm-logo {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

#stcm-wrapper #stcm-modal {
	width: min(760px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	padding: clamp(24px, 4vw, 36px);
}

#stcm-wrapper #stcm-modal header {
	align-items: flex-start;
	margin-bottom: 16px;
}

#stcm-wrapper #stcm-modal h1 {
	max-width: 24ch;
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-transform: uppercase;
}

#stcm-wrapper #stcm-modal .stcm-modal-close {
	min-width: 48px;
	min-height: 48px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
}

#stcm-wrapper #stcm-modal section {
	min-height: 0;
	overflow-y: auto;
	padding-inline-end: 8px;
	scrollbar-color: #f0ab46 transparent;
	scrollbar-width: thin;
}

#stcm-wrapper #stcm-modal fieldset {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgb(255 255 255 / 20%);
}

#stcm-wrapper #stcm-modal fieldset:last-of-type {
	padding-bottom: 0;
	border-bottom: 0;
}

#stcm-wrapper #stcm-modal legend {
	margin-bottom: 8px;
	font-size: 18px;
	text-transform: uppercase;
}

#stcm-wrapper #stcm-modal .stcm-toggle {
	min-width: 74px;
}

#stcm-wrapper #stcm-modal .stcm-toggle input:disabled + .stcm-toggle-track {
	opacity: 0.75;
}

#stcm-wrapper #stcm-modal footer {
	align-items: center;
}

#stcm-wrapper #stcm-icon {
	bottom: max(16px, env(safe-area-inset-bottom));
	right: max(16px, env(safe-area-inset-right));
	width: 52px;
	height: 52px;
	border: 2px solid #302a6a;
	box-shadow: -4px 8px 20px rgb(24 19 70 / 24%);
}

#stcm-wrapper ::selection {
	background: #f0ab46;
	color: #302a6a;
}

@media (max-width: 760px) {
	#stcm-wrapper #stcm-banner {
		bottom: max(12px, env(safe-area-inset-bottom));
		width: calc(100% - 24px);
		max-width: none;
	}

	#stcm-wrapper #stcm-banner .stcm-actions {
		grid-template-columns: 1fr;
	}

	#stcm-wrapper #stcm-banner .stcm-button {
		width: 100%;
	}

	#stcm-wrapper #stcm-banner .stcm-actions-row {
		width: 100%;
	}

	#stcm-wrapper #stcm-modal .stcm-consent-row {
		align-items: flex-start;
		gap: 16px;
	}

	#stcm-wrapper #stcm-modal footer {
		align-items: stretch;
	}

	#stcm-wrapper #stcm-modal footer .stcm-button {
		width: 100%;
	}

	#stcm-wrapper #stcm-modal footer a {
		align-self: center;
		margin-inline-start: 0;
		text-align: center;
	}
}

@media (max-width: 420px) {
	#stcm-wrapper #stcm-banner,
	#stcm-wrapper #stcm-modal {
		width: calc(100% - 16px);
		padding: 20px;
	}

	#stcm-wrapper #stcm-modal {
		max-height: calc(100dvh - 16px);
	}

	#stcm-wrapper #stcm-modal .stcm-consent-row {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	#stcm-wrapper *,
	#stcm-wrapper *::before,
	#stcm-wrapper *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	#stcm-wrapper .stcm-button,
	#stcm-wrapper #stcm-icon,
	#stcm-wrapper #stcm-modal .stcm-toggle-track {
		border: 2px solid ButtonText;
	}
}
