/* ── Onboarding: selectable radio cards ─────────────────────────────────── */

.igcr-account-card--selectable {
	cursor: pointer;
	border: 2px solid var(--igcr-border);
	overflow: hidden; /* clips browser chrome bar to card border-radius */
	padding: 0; /* URL bar fills edge-to-edge; igcr-card-body handles inner spacing */
	gap: 0;
}

/* Card body — content area below the URL/chrome row */
.igcr-card-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 14px 20px 20px;
}

.igcr-account-card--selectable:hover {
	border-color: #b3b4b6;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.08 );
}

.igcr-account-card--selected {
	border-color: #c0d6ec;
}

/* Radio indicator (visible when NOT selected) */
.igcr-card-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #c3c4c7;
	background: #fff;
	flex-shrink: 0;
}

/* Hidden when browser chrome takes over */
.igcr-account-card--selected .igcr-card-radio {
	display: none;
}

/* ── Account picker list ─────────────────────────────────────────────────── */

#igcr-account-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

/* ── URL / browser chrome row ────────────────────────────────────────────── */

.igcr-onboard-url-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-bottom: 1px solid var(--igcr-border);
}

/* Traffic light dots — hidden until card is selected */
.igcr-browser-dots {
	display: none;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.igcr-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	flex-shrink: 0;
}

.igcr-dot--red    { background: #eb3e56; }
.igcr-dot--yellow { background: #f4b11d; }
.igcr-dot--green  { background: #29ab7f; }

/* Address bar wrapper */
.igcr-browser-address {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}

/* URL text */
.igcr-onboard-url {
	font-size: 12px;
	font-weight: 600;
	color: #2271b1;
	font-family: monospace;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Vertical three-dot menu — hidden until card is selected */
.igcr-browser-menu {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	flex-shrink: 0;
	padding: 2px 0;
}

.igcr-browser-menu span {
	display: block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #666;
}

/* ── Selected state: URL row becomes browser chrome bar ──────────────────── */

.igcr-account-card--selected .igcr-onboard-url-row {
	background: #e3e3e3;
	border-bottom-color: #d0d0d0;
	padding: 9px 14px;
}

.igcr-account-card--selected .igcr-browser-dots {
	display: flex;
}

.igcr-account-card--selected .igcr-browser-address {
	background: var(--igcr-bg);
	border-radius: var(--igcr-radius-lg);
	padding: 3px 10px;
	justify-content: center;
}

.igcr-account-card--selected .igcr-browser-menu {
	display: flex;
}

/* ─── Onboarding block ─────────────────────────────────────────────────────── */

.igcr-onboard-wrap {
	box-sizing: border-box;
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Hero / connect state */
.igcr-onboard-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 24px;
	max-width: 520px;
	margin: 0 auto;
}

.igcr-onboard-icon {
	margin-bottom: 20px;
}

.igcr-onboard-icon--sm {
	font-size: 40px;
	margin-bottom: 12px;
}

.igcr-onboard-success-icon {
	font-size: 52px;
	margin-bottom: 12px;
}

.igcr-onboard-headline {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 12px;
	color: #111;
}

.igcr-onboard-headline--sm {
	font-size: 22px;
}

.igcr-onboard-subhead {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 28px;
	max-width: 420px;
}

.igcr-onboard-subhead--sm {
	margin-bottom: 20px;
}

/* Primary CTA button */
.igcr-onboard-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--igcr-radius);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
	border: none;
	line-height: 1;
}

.igcr-onboard-btn:hover:not(:disabled) {
	opacity: 0.88;
	transform: translateY( -1px );
}

.igcr-onboard-btn:active:not(:disabled) {
	transform: translateY( 0 );
}

.igcr-onboard-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.igcr-onboard-btn--primary {
	background: linear-gradient( 135deg, #dc2743 0%, #bc1888 100% );
	color: #fff;
}

.igcr-onboard-btn--secondary {
	background: #111;
	color: #fff;
}

.igcr-onboard-btn--ghost {
	background: transparent;
	color: #555;
	border: 1px solid #ddd;
}

/* Benefit checklist */
.igcr-onboard-checklist {
	list-style: none;
	padding: 0;
	margin: 20px 0 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	font-size: 13px;
	color: #555;
}

.igcr-onboard-checklist li::before {
	content: "✓ ";
	color: var(--igcr-success);
	font-weight: 700;
}

/* Legal text */
.igcr-onboard-legal {
	font-size: 12px;
	color: #888;
	margin: 0;
}

.igcr-onboard-legal a {
	color: #555;
}

/* Notice / error banner */
.igcr-onboard-notice {
	border-radius: var(--igcr-radius-sm);
	padding: 10px 14px;
	font-size: 14px;
	margin: 0 0 20px;
	text-align: center;
}

.igcr-onboard-notice--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* Configure state */
.igcr-onboard-configure {
	max-width: 520px;
	margin: 0 auto;
	padding: 40px 24px;
}

/* Account chip */
.igcr-onboard-account-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #f4f4f5;
	border: 1px solid #e4e4e7;
	border-radius: var(--igcr-radius-full);
	padding: 6px 14px 6px 6px;
	margin-bottom: 28px;
}

.igcr-onboard-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.igcr-onboard-avatar--placeholder {
	background: linear-gradient( 135deg, #dc2743 0%, #bc1888 100% );
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.igcr-onboard-account-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.igcr-onboard-username {
	font-size: 14px;
	color: #111;
}

.igcr-onboard-connected {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--igcr-success-hover);
}

/* Subdomain form */
.igcr-onboard-form {
	margin-top: 4px;
}

.igcr-onboard-subdomain-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.igcr-onboard-subdomain-row {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
	margin-bottom: 6px;
}

.igcr-onboard-subdomain-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--igcr-border);
	border-radius: var(--igcr-radius-sm);
	font-size: 15px;
	font-family: inherit;
	color: #111;
	outline: none;
	transition: border-color 0.15s;
}

.igcr-onboard-subdomain-input:focus {
	border-color: #bc1888;
	box-shadow: 0 0 0 3px rgba( 188, 24, 136, 0.12 );
}

.igcr-onboard-domain-suffix {
	flex-shrink: 0;
	font-size: 14px;
	color: #666;
	white-space: nowrap;
}

.igcr-onboard-status {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	min-width: 90px;
	text-align: left;
}

.igcr-onboard-status--ok      { color: var(--igcr-success-hover); }
.igcr-onboard-status--error   { color: #b91c1c; }
.igcr-onboard-status--checking { color: #888; }

.igcr-onboard-subdomain-hint {
	font-size: 12px;
	color: #888;
	margin: 0 0 20px;
}

.igcr-onboard-form .igcr-onboard-btn {
	width: 100%;
	justify-content: center;
	padding: 14px;
	font-size: 16px;
}

.igcr-onboard-skip {
	text-align: center;
	margin-top: 16px;
	font-size: 13px;
}

.igcr-onboard-skip a {
	color: #888;
	text-decoration: none;
}

.igcr-onboard-skip a:hover {
	color: #444;
	text-decoration: underline;
}

/* Skipped / Done card states */
.igcr-onboard-card {
	max-width: 480px;
	margin: 0 auto;
	padding: 48px 32px;
	text-align: center;
	border: 1px solid var(--igcr-border);
	border-radius: var(--igcr-radius-lg);
	background: var(--igcr-bg-subtle);
}

.igcr-onboard-card--done {
	background: linear-gradient( 160deg, #fff 60%, #fdf2fb 100% );
	border-color: #f3c6f1;
}

.igcr-onboard-site-domain {
	display: inline-block;
	background: var(--igcr-bg-subtle);
	border: 1px solid var(--igcr-border);
	border-radius: var(--igcr-radius-sm);
	padding: 4px 12px;
	font-size: 14px;
	font-family: monospace;
	color: #555;
	margin: 0 0 16px;
}

.igcr-onboard-done-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
	align-items: center;
}

/* Responsive */
@media ( max-width: 480px ) {
	.igcr-onboard-hero        { padding: 32px 16px; }
	.igcr-onboard-configure   { padding: 24px 16px; }
	.igcr-onboard-card        { padding: 32px 20px; }
	.igcr-onboard-headline    { font-size: 22px; }
	.igcr-onboard-headline--sm { font-size: 19px; }
	.igcr-onboard-subdomain-row { flex-wrap: wrap; }
	.igcr-onboard-domain-suffix,
	.igcr-onboard-status      { flex: 1 0 100%; order: 1; }
	.igcr-onboard-done-actions .igcr-onboard-btn { width: 100%; justify-content: center; }
}

