:root {
	--cwct-primary: #d3a640;
	--cwct-widget-action: #25d366;
	--cwct-product-action: #25d366;
}

.cwct-lead-overlay,
.cwct-widget,
.cwct-product-button-wrap {
	--cwct-gold-light: #f4d675;
	--cwct-bg: #080808;
	--cwct-surface: #151515;
	--cwct-text: #f4f1e8;
	--cwct-muted: #b8b2a5;
}

.cwct-lead-open {
	overflow: hidden;
}

.cwct-lead-ready .wa-order-gdprchk {
	display: none !important;
}

.cwct-lead-overlay[hidden] {
	display: none;
}

.cwct-lead-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.78);
}

.cwct-lead-dialog {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 520px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 24px;
	color: var(--cwct-text);
	background: var(--cwct-bg);
	border: 1px solid #6e541d;
	border-top: 5px solid var(--cwct-primary);
	border-radius: 6px;
	box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
	font-family: inherit;
}

.cwct-lead-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	font: 400 28px/1 Arial, sans-serif;
	color: var(--cwct-gold-light);
	background: transparent;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.cwct-lead-close:hover,
.cwct-lead-close:focus-visible {
	color: #080808;
	background: var(--cwct-primary);
	outline: 2px solid var(--cwct-gold-light);
	outline-offset: 1px;
}

.cwct-lead-heading {
	padding-right: 32px;
}

.cwct-lead-kicker {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--cwct-gold-light);
	text-transform: uppercase;
}

.cwct-lead-heading h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 750;
	line-height: 1.18;
	letter-spacing: 0;
	color: var(--cwct-text);
}

.cwct-lead-heading p {
	margin: 9px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cwct-muted);
}

.cwct-lead-product {
	margin: 14px 0 0;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--cwct-text);
	background: var(--cwct-surface);
	border-left: 3px solid var(--cwct-primary);
}

.cwct-lead-form {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.cwct-lead-field {
	display: grid;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--cwct-text);
}

.cwct-lead-field small { color: var(--cwct-muted); font-weight: 400; }

.cwct-lead-field input {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	font: inherit;
	font-weight: 400;
	color: var(--cwct-text);
	background: #101010;
	border: 1px solid #6e541d;
	border-radius: 4px;
	box-shadow: none;
}

.cwct-lead-field input:focus {
	border-color: var(--cwct-primary);
	outline: 2px solid rgba(211, 166, 64, 0.22);
	outline-offset: 0;
}

.cwct-lead-phone {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: stretch;
}

.cwct-lead-phone > span {
	display: grid;
	place-items: center;
	min-height: 44px;
	font-weight: 700;
	color: var(--cwct-gold-light);
	background: var(--cwct-surface);
	border: 1px solid #6e541d;
	border-right: 0;
	border-radius: 4px 0 0 4px;
}

.cwct-lead-phone input {
	border-radius: 0 4px 4px 0;
}

.cwct-lead-check {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: #d5d0c4;
}

.cwct-lead-check input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--cwct-primary);
}

.cwct-lead-check-optional {
	padding-top: 10px;
	border-top: 1px solid #4f3d19;
}

.cwct-lead-check-optional strong {
	font-size: 11px;
	color: var(--cwct-muted);
	text-transform: uppercase;
}

.cwct-lead-privacy {
	color: var(--cwct-gold-light);
	text-decoration: underline;
}

.cwct-lead-feedback {
	min-height: 0;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #ff8c8c;
}

.cwct-lead-feedback:empty {
	display: none;
}

.cwct-lead-feedback.is-success {
	color: #16733b;
}

.cwct-lead-feedback a {
	margin-left: 4px;
	color: var(--cwct-gold-light);
	text-decoration: underline;
}

.cwct-lead-submit,
.cwct-lead-cancel {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 11px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	border-radius: 4px;
	cursor: pointer;
}

.cwct-lead-submit {
	color: #080808;
	background: var(--cwct-widget-action);
	border: 1px solid var(--cwct-widget-action);
}

.cwct-lead-submit:hover,
.cwct-lead-submit:focus-visible {
	background: var(--cwct-widget-action);
	border-color: var(--cwct-widget-action);
	filter: brightness(1.08);
	outline: 2px solid color-mix(in srgb, var(--cwct-widget-action), white 38%);
	outline-offset: 2px;
}

.cwct-lead-submit:disabled {
	cursor: wait;
	opacity: 0.7;
}

.cwct-lead-cancel {
	min-height: 38px;
	padding: 7px 12px;
	font-size: 13px;
	color: var(--cwct-muted);
	background: transparent;
	border: 0;
}

.cwct-lead-cancel:hover,
.cwct-lead-cancel:focus-visible {
	color: var(--cwct-text);
	text-decoration: underline;
	outline: none;
}

.cwct-lead-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cwct-widget {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	width: min(360px, calc(100vw - 32px));
	color: var(--cwct-text);
	font-family: inherit;
}

.cwct-widget-left { right: auto; left: 24px; }
.cwct-widget-panel[hidden] { display: none; }
.cwct-widget-panel {
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--cwct-bg);
	border: 1px solid #6e541d;
	border-radius: 6px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}
.cwct-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px;
	color: #080808;
	background: var(--cwct-primary) !important;
}
.cwct-widget-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cwct-widget-brand > div { display: grid; gap: 3px; min-width: 0; }
.cwct-widget-logo { display: block; width: 70px; height: 38px; object-fit: contain; object-position: left center; }
.cwct-widget-header strong { font-size: 1.08rem; line-height: 1.25; }
.cwct-widget-header span { font-size: .76rem; font-weight: 700; }
.cwct-widget-close {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: #080808 !important;
	background: rgba(0, 0, 0, .1) !important;
	border: 1px solid rgba(0, 0, 0, .28) !important;
	border-radius: 4px;
	box-shadow: none !important;
	font: 700 26px/1 Arial, sans-serif;
	cursor: pointer;
}
.cwct-widget-body { display: grid; gap: 16px; padding: 18px; }
.cwct-widget-body > p { margin: 0; color: var(--cwct-muted); font-size: .9rem; line-height: 1.5; }
.cwct-widget-agent { display: flex; align-items: center; gap: 13px; }
.cwct-widget-agent > div:last-child { display: grid; min-width: 0; }
.cwct-widget-agent span,
.cwct-widget-agent small { color: var(--cwct-muted); font-size: .74rem; }
.cwct-widget-agent strong { color: var(--cwct-text); font-size: 1rem; }
.cwct-widget-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	color: #080808;
	background: var(--cwct-primary);
	border: 2px solid var(--cwct-gold-light);
	border-radius: 50%;
	font-size: .78rem;
	font-weight: 900;
}
.cwct-widget-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cwct-widget-cta,
.cwct-product-whatsapp,
.cwct-direct-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 10px 16px;
	color: #080808 !important;
	border: 1px solid transparent !important;
	border-radius: 4px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
}
.cwct-widget-cta {
	background: var(--cwct-widget-action) !important;
	border-color: var(--cwct-widget-action) !important;
}
.cwct-product-whatsapp,
.cwct-direct-whatsapp,
.cwct-product-button-loop,
.ccb-sp-whatsapp,
.ccb-loop-whatsapp,
.ccb-single-whatsapp .ccb-button {
	color: #080808 !important;
	background: var(--cwct-product-action) !important;
	background-image: none !important;
	border-color: var(--cwct-product-action) !important;
}
.cwct-widget-cta:hover,
.cwct-product-whatsapp:hover,
.cwct-direct-whatsapp:hover,
.cwct-product-button-loop:hover,
.ccb-sp-whatsapp:hover,
.ccb-loop-whatsapp:hover,
.ccb-single-whatsapp .ccb-button:hover { filter: brightness(1.08); }
.cwct-widget-cta span { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #080808; border-radius: 50%; font-size: .64rem; }
.cwct-widget-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 54px;
	padding: 8px 10px 8px 20px;
	color: #071f12 !important;
	background: var(--cwct-widget-action) !important;
	border: 2px solid var(--cwct-widget-action) !important;
	border-radius: 28px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.cwct-widget-toggle b {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	color: var(--cwct-widget-action) !important;
	background: #080808 !important;
	border-radius: 50%;
	font-size: .7rem;
}
.cwct-widget-toggle:focus-visible,
.cwct-widget-close:focus-visible,
.cwct-widget-cta:focus-visible,
.cwct-product-whatsapp:focus-visible,
.cwct-direct-whatsapp:focus-visible,
.cwct-product-button-loop:focus-visible,
.ccb-sp-whatsapp:focus-visible,
.ccb-loop-whatsapp:focus-visible,
.ccb-single-whatsapp .ccb-button:focus-visible { outline: 3px solid var(--cwct-gold-light); outline-offset: 3px; }
.cwct-product-button-wrap { margin: 16px 0; }
.cwct-product-button-wrap.cwct-product-button-loop { padding: 0 1em; }
.cwct-product-button-loop .cwct-product-whatsapp { width: 100%; }

@media (max-width: 600px) {
	.cwct-lead-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.cwct-lead-dialog {
		width: 100%;
		max-height: 92vh;
		padding: 24px 20px 18px;
		border-radius: 6px 6px 0 0;
	}

	.cwct-lead-heading h2 {
		font-size: 22px;
	}

	.cwct-widget,
	.cwct-widget-left {
		right: 14px;
		bottom: max(14px, env(safe-area-inset-bottom));
		left: auto;
		width: 50px;
		transform: none;
	}

	.cwct-widget.is-open,
	.cwct-widget-left.is-open {
		right: auto;
		left: 50%;
		width: min(340px, calc(100vw - 32px));
		transform: translateX(-50%);
	}

	.cwct-widget:not(.is-open) {
		width: 50px;
	}

	.cwct-widget-toggle {
		flex: 0 0 50px;
		width: 50px;
		min-height: 50px;
		margin-right: 0;
		margin-left: auto;
		padding: 0;
		border-radius: 50%;
		justify-content: center;
	}

	.cwct-widget-toggle > span {
		display: none;
	}

	.cwct-widget-toggle b {
		width: 36px;
		height: 36px;
	}
}
