.tcwc-widget {
	--tcwc-primary: #065f46;
	--tcwc-accent: #22c55e;
	--tcwc-panel-bg: #f5f5f5;
	--tcwc-card-bg: #ffffff;
	--tcwc-text: #1f2937;
	--tcwc-border: #e4e4e7;
	--tcwc-muted: #6b7280;
	--tcwc-radius-xl: 20px;
	--tcwc-radius-lg: 14px;
	--tcwc-shadow: 0 22px 45px rgba(15, 23, 42, 0.2);
	font-family: Manrope, "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
	color: var(--tcwc-text);
	z-index: 99999;
}

.tcwc-widget,
.tcwc-widget * {
	box-sizing: border-box;
}

.tcwc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.tcwc-floating {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: min(420px, calc(100vw - 28px));
	pointer-events: none;
}

.tcwc-floating.tcwc-pos-left {
	left: 24px;
	right: auto;
}

.tcwc-floating .tcwc-fab,
.tcwc-floating .tcwc-panel {
	pointer-events: auto;
}

.tcwc-inline {
	max-width: 420px;
}

.tcwc-panel {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--tcwc-panel-bg) 0%, #f8fafc 100%);
	box-shadow: var(--tcwc-shadow);
	margin-bottom: 16px;
}

.tcwc-floating .tcwc-panel {
	display: none;
}

.tcwc-floating.is-open .tcwc-panel {
	display: block;
	animation: tcwc-pop 180ms ease-out;
}

.tcwc-inline .tcwc-panel {
	display: block;
}

@keyframes tcwc-pop {
	0% {
		opacity: 0;
		transform: translateY(8px) scale(0.985);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.tcwc-fab {
	margin-left: auto;
	width: 70px;
	height: 70px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(140deg, var(--tcwc-accent) 0%, #16a34a 100%);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.26);
	transition: transform 140ms ease, box-shadow 140ms ease;
}

.tcwc-pos-left .tcwc-fab {
	margin-left: 0;
}

.tcwc-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
}

.tcwc-fab:focus-visible,
.tcwc-close:focus-visible,
.tcwc-option:focus-visible,
.tcwc-text-back:focus-visible,
.tcwc-primary-btn:focus-visible,
.tcwc-secondary-btn:focus-visible {
	outline: 2px solid rgba(22, 163, 74, 0.9);
	outline-offset: 2px;
}

.tcwc-fab.tcwc-is-hidden {
	display: none;
}

.tcwc-header {
	background: var(--tcwc-primary);
	color: #fff;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.tcwc-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.tcwc-brand-icon {
	width: 54px;
	height: 54px;
	border-radius: 999px;
	background: rgba(134, 239, 172, 0.32);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.tcwc-brand-icon svg {
	width: 30px;
	height: 30px;
}

.tcwc-header-content {
	display: grid;
	gap: 1px;
	position: relative;
	z-index: 1;
}

.tcwc-header-title {
	margin: 0;
	font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tcwc-header-subtitle {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.2;
	opacity: 0.9;
}

.tcwc-close {
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	width: 34px;
	height: 34px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	border-radius: 10px;
	position: relative;
	z-index: 1;
}

.tcwc-body {
	padding: 16px;
	display: grid;
	gap: 12px;
}

.tcwc-bubble {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: var(--tcwc-radius-xl);
	padding: 14px 15px;
}

.tcwc-bubble-title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 700;
	color: #64748b;
}

.tcwc-bubble-text {
	margin: 5px 0 0;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.tcwc-step {
	display: grid;
	gap: 10px;
}

.tcwc-step[hidden] {
	display: none;
}

.tcwc-option {
	width: 100%;
	border: 1px solid #e4e4e7;
	border-radius: var(--tcwc-radius-xl);
	background: var(--tcwc-card-bg);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 11px;
	text-align: left;
	cursor: pointer;
	transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.tcwc-option:hover {
	transform: translateY(-1px);
	border-color: #d4d4d8;
	background: #fff;
	box-shadow: 0 7px 18px rgba(15, 23, 42, 0.07);
}

.tcwc-option-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #ebf7ee;
	color: #4fb365;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.tcwc-option-label {
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.14rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
	font-weight: 700;
}

.tcwc-option-arrow {
	margin-left: auto;
	color: #64748b;
	display: grid;
	place-items: center;
}

.tcwc-text-back {
	justify-self: start;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 8px 12px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #475569;
	cursor: pointer;
	border-radius: 999px;
}

.tcwc-label {
	font-size: 0.8rem;
	font-weight: 700;
	color: #64748b;
	margin-bottom: -4px;
}

.tcwc-input {
	width: 100%;
	border: 1px solid var(--tcwc-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tcwc-text);
	padding: 12px;
	font-size: 0.94rem;
	line-height: 1.4;
}

.tcwc-input:focus {
	outline: none;
	border-color: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.tcwc-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.tcwc-primary-btn,
.tcwc-secondary-btn {
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 0.93rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.tcwc-primary-btn {
	width: 100%;
	border: 0;
	background: linear-gradient(140deg, var(--tcwc-primary) 0%, var(--tcwc-accent) 100%);
	color: #fff;
	box-shadow: 0 9px 20px rgba(6, 95, 70, 0.3);
}

.tcwc-primary-btn:hover {
	transform: translateY(-1px);
}

.tcwc-secondary-btn {
	width: 100%;
	border: 1px solid #d4d4d8;
	background: #fff;
	color: #374151;
}

.tcwc-secondary-btn:hover {
	background: #f9fafb;
}

.tcwc-primary-btn.is-disabled {
	opacity: 0.5;
	pointer-events: none;
	box-shadow: none;
}

@media (min-width: 480px) {
	.tcwc-actions {
		grid-template-columns: 1fr 1.35fr;
	}
}

@media (max-width: 767px) {
	.tcwc-floating {
		left: 12px;
		right: 12px;
		width: auto;
		bottom: 12px;
	}

	.tcwc-floating.tcwc-pos-left {
		left: 12px;
		right: 12px;
	}

	.tcwc-fab {
		width: 62px;
		height: 62px;
	}

	.tcwc-header {
		padding: 14px;
	}

	.tcwc-body {
		padding: 13px;
	}

	.tcwc-option-icon {
		width: 45px;
		height: 45px;
	}
}
