:root {
	--cwa-cor: #25d366;
	--cwa-cor-suave: rgba(37, 211, 102, .16);
}

/* Botão flutuante ------------------------------------------------------ */
.cwa-float {
	position: fixed;
	bottom: 20px;
	z-index: 99998;
	min-width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--cwa-cor);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
	transition: transform .18s ease, box-shadow .18s ease;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}
.cwa-float--right { right: 20px; }
.cwa-float--left { left: 20px; }
.cwa-float--label { padding: 0 22px 0 18px; }
.cwa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.cwa-float:focus-visible { outline: 3px solid var(--cwa-cor-suave); outline-offset: 3px; }

.cwa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border: 0;
	border-radius: 7px;
	background: var(--cwa-cor);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

/* Modal ---------------------------------------------------------------- */
.cwa-modal[hidden] { display: none; }
.cwa-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.cwa-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .62);
	animation: cwa-fade .2s ease;
}
.cwa-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 92vh;
	overflow-y: auto;
	padding: 30px 26px 24px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
	font-family: inherit;
	animation: cwa-up .22s ease;
	box-sizing: border-box;
}
@keyframes cwa-fade { from { opacity: 0; } }
@keyframes cwa-up { from { opacity: 0; transform: translateY(14px); } }

.cwa-close {
	position: absolute;
	top: 8px;
	right: 12px;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: #999;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.cwa-close:hover { color: #333; }

.cwa-box h3 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 19px;
	line-height: 1.32;
	color: #111;
}
.cwa-sub {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: #666;
}
.cwa-aviso {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 7px;
	background: #fff8e5;
	border: 1px solid #f3e3b5;
	font-size: 13px;
	line-height: 1.45;
	color: #7a5c00;
}

/* Formulário ----------------------------------------------------------- */
.cwa-form label {
	display: block;
	margin-bottom: 13px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
.cwa-form input,
.cwa-form select,
.cwa-form textarea {
	width: 100%;
	margin-top: 5px;
	padding: 11px 12px;
	border: 1px solid #d6d6d6;
	border-radius: 7px;
	background: #fff;
	color: #111;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	box-sizing: border-box;
}
.cwa-form textarea { resize: vertical; min-height: 78px; }
.cwa-form input:focus,
.cwa-form select:focus,
.cwa-form textarea:focus {
	outline: none;
	border-color: var(--cwa-cor);
	box-shadow: 0 0 0 3px var(--cwa-cor-suave);
}
.cwa-form input[aria-invalid="true"] { border-color: #d63638; }

.cwa-submit {
	width: 100%;
	margin-top: 6px;
	padding: 14px;
	border: 0;
	border-radius: 7px;
	background: var(--cwa-cor);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.cwa-submit:disabled { opacity: .55; cursor: default; }
.cwa-msg {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	color: #d63638;
}
.cwa-hp { position: absolute !important; left: -9999px; }

body.cwa-lock { overflow: hidden; }

/* Página dedicada ------------------------------------------------------ */
body.cwa-standalone {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 0;
	background: #101418;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
body.cwa-standalone .cwa-logo {
	max-width: 180px;
	height: auto;
	margin-bottom: 22px;
}
body.cwa-standalone .cwa-modal { position: static; padding: 0 16px; }
body.cwa-standalone .cwa-overlay,
body.cwa-standalone .cwa-close,
body.cwa-standalone .cwa-float { display: none; }
body.cwa-standalone .cwa-box { animation: none; }
body.cwa-standalone.cwa-lock { overflow: auto; }

@media (max-width: 480px) {
	.cwa-box { padding: 26px 18px 20px; }
	.cwa-float { bottom: 16px; }
	.cwa-float--right { right: 16px; }
	.cwa-float--left { left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.cwa-box, .cwa-overlay, .cwa-float { animation: none; transition: none; }
}

/* Ícone no CTA -------------------------------------------------------- */
.cwa-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
}
.cwa-submit svg { flex: 0 0 auto; }
.cwa-float svg { flex: 0 0 auto; }
