.sgcas-offer-flow[hidden],
.sgcas-offer-flow [hidden] { display: none !important; }

.sgcas-offer-flow {
	position: fixed;
	z-index: 99990;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #07152e;
}

.sgcas-offer-flow * { box-sizing: border-box; }

.sgcas-offer-flow__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 21, 46, .38);
}

.sgcas-offer-flow__dialog {
	position: relative;
	z-index: 1;
	width: min(460px, 100%);
	max-height: min(86vh, 720px);
	overflow: auto;
	margin: 0;
	padding: 28px 24px 22px;
	border: 1px solid rgba(40, 49, 112, .16);
	border-radius: 28px;
	background: radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .98), transparent 34%), linear-gradient(160deg, #f4f1ff 0%, #fbfbff 58%, #fff 100%);
	box-shadow: 0 24px 70px rgba(7, 21, 46, .28);
}

.sgcas-offer-flow__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #283170;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.sgcas-offer-flow__kicker {
	margin: 0 36px 8px 0;
	color: #6d4ed1;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.sgcas-offer-flow h2 {
	margin: 0 36px 10px 0;
	color: #07152e;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.03em;
}

.sgcas-offer-flow p { margin: 0 0 12px; color: #3d4662; font-size: 16px; line-height: 1.45; }

.sgcas-offer-flow form > label:first-child,
.sgcas-offer-flow [data-personal-text-form] > label:first-child,
.sgcas-offer-flow__verify-label { display: block; margin: 8px 0 6px; font-weight: 750; }

.sgcas-offer-flow input[type="email"],
.sgcas-offer-flow input[type="tel"],
.sgcas-offer-flow input[type="text"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid #aab2c8;
	border-radius: 12px;
	background: #fff;
	padding: 12px 14px;
	color: #07152e;
	font: 16px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sgcas-offer-flow button[type="submit"],
.sgcas-offer-flow [data-personal-send],
.sgcas-offer-flow [data-personal-apply],
.sgcas-offer-flow__start {
	display: inline-flex;
	width: 100%;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #07152e, #283170);
	color: #fff;
	padding: 12px 18px;
	font-size: 16px;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.sgcas-offer-flow a.sgcas-offer-flow__start,
.sgcas-offer-flow a.sgcas-offer-flow__start:hover,
.sgcas-offer-flow a.sgcas-offer-flow__start:focus,
.sgcas-offer-flow a.sgcas-offer-flow__start:focus-visible,
.sgcas-offer-flow a.sgcas-offer-flow__start:active,
.sgcas-offer-flow a.sgcas-offer-flow__start:visited {
	color: #ffffff !important;
}

.sgcas-offer-flow button:disabled { opacity: .55; cursor: default; }

.sgcas-offer-flow__consent,
.sgcas-offer-flow .sgcas-personal-offer__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	color: #4c556d;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 450;
}

.sgcas-offer-flow__consent span,
.sgcas-offer-flow .sgcas-personal-offer__consent span { display: inline; margin: 0; color: #4c556d; font-size: 13px; font-weight: 450; }

.sgcas-offer-flow__consent input,
.sgcas-offer-flow .sgcas-personal-offer__consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; }

.sgcas-offer-flow a { color: #5135a3; }

.sgcas-offer-flow__message,
.sgcas-offer-flow .sgcas-personal-offer__message { min-height: 1.2em; margin-top: 8px; color: #713421; font-size: 14px; }

.sgcas-offer-flow__bonus {
	margin: 4px 0 0;
	padding: 12px 14px;
	border-radius: 16px;
	background: #e5e1ff;
	color: #283170;
	font-weight: 750;
}

.sgcas-offer-flow__skip,
.sgcas-offer-flow [data-sgcas-offer-sms-skip] {
	display: block;
	width: 100%;
	margin-top: 8px;
	border: 0;
	background: transparent;
	color: #5e6877;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.sgcas-offer-flow .sgcas-personal-offer__row { display: flex; gap: 8px; }
.sgcas-offer-flow .sgcas-personal-offer__row input { min-width: 0; flex: 1; width: auto; }
.sgcas-offer-flow .sgcas-personal-offer__row button { width: auto; margin-top: 0; white-space: nowrap; }
.sgcas-offer-flow .sgcas-personal-offer__verify { margin-top: 14px; }

@media (max-width: 700px) {
	.sgcas-offer-flow {
		align-items: flex-end;
		padding: 12px 12px calc(76px + env(safe-area-inset-bottom));
	}
	.sgcas-offer-flow__dialog {
		width: 100%;
		max-height: min(78vh, 640px);
		padding: 22px 16px 16px;
		border-radius: 22px;
	}
	.sgcas-offer-flow .sgcas-personal-offer__row { flex-wrap: wrap; }
	.sgcas-offer-flow .sgcas-personal-offer__row button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.sgcas-offer-flow * { scroll-behavior: auto !important; }
}
