.ouv-root {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #555;
}

.ouv-root *,
.ouv-root *::before,
.ouv-root *::after {
	box-sizing: border-box;
}

/* ---------- Botão flutuante ---------- */
.ouv-launcher {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
}

.ouv-label {
	background: #1e90f0;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 6px 18px;
	font: 500 15px/1.4 "Montserrat", "Roboto", Arial, sans-serif;
	letter-spacing: .3px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
	transition: background .2s;
}

.ouv-fab {
	width: 70px;
	height: 70px;
	border: 0;
	border-radius: 50% 50% 0 50%;
	background: #1e90f0;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	transition: transform .2s, background .2s;
}

.ouv-label:hover,
.ouv-fab:hover {
	background: #1478cc;
}

.ouv-fab:hover {
	transform: scale(1.05);
}

.ouv-label:focus-visible,
.ouv-fab:focus-visible,
.ouv-close:focus-visible,
.ouv-submit:focus-visible {
	outline: 3px solid #9fd3ff;
	outline-offset: 2px;
}

/* ---------- Popup ---------- */
.ouv-popup {
	position: absolute;
	right: 0;
	bottom: 90px;
	width: 475px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
	animation: ouv-in .2s ease-out;
}

.ouv-popup[hidden] {
	display: none;
}

@keyframes ouv-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ouv-header {
	position: relative;
	height: 86px;
	background: linear-gradient(90deg, #2a7f8f 0%, #26c6b0 100%);
	border-radius: 10px 10px 0 0;
}

.ouv-header-title {
	position: absolute;
	left: 20px;
	top: 14px;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}

.ouv-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 28px;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, .55);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.ouv-close:hover {
	background: rgba(255, 255, 255, .75);
}

.ouv-card {
	position: relative;
	margin: -40px 20px 24px;
	padding: 24px 20px 28px;
	background: #fff;
	border: 1px solid #dcdfe6;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

/* ---------- Formulário ---------- */
.ouv-form label {
	display: block;
	margin: 0 0 12px;
	font-weight: 700;
	font-size: 15px;
	color: #666;
}

.ouv-form input,
.ouv-form textarea {
	display: block;
	width: 100%;
	margin: 0 0 20px;
	padding: 10px 14px;
	border: 1px solid #cfd3e0;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font: inherit;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}

.ouv-form input {
	height: 40px;
}

.ouv-form textarea {
	min-height: 106px;
	resize: vertical;
}

.ouv-form input::placeholder,
.ouv-form textarea::placeholder {
	color: #aaa;
}

.ouv-form input:focus,
.ouv-form textarea:focus {
	outline: none;
	border-color: #26b5a8;
	box-shadow: 0 0 0 3px rgba(38, 181, 168, .15);
}

.ouv-form .ouv-invalid {
	border-color: #e05252;
}

.ouv-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ouv-feedback {
	min-height: 0;
	margin: -6px 0 12px;
	font-size: 14px;
	text-align: center;
}

.ouv-feedback:empty {
	margin: 0;
}

.ouv-feedback.ouv-ok {
	color: #1e8e5a;
}

.ouv-feedback.ouv-erro {
	color: #d33;
}

.ouv-submit {
	display: block;
	margin: 6px auto 0;
	min-width: 125px;
	height: 41px;
	padding: 0 24px;
	border: 0;
	border-radius: 4px;
	background: linear-gradient(90deg, #2a7f8f 0%, #26c6b0 100%);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: opacity .2s;
}

.ouv-submit:hover {
	opacity: .9;
}

.ouv-submit:disabled {
	opacity: .6;
	cursor: wait;
}

/* ---------- Mobile ---------- */
@media (max-width: 520px) {
	.ouv-root {
		right: 16px;
		bottom: 16px;
	}

	.ouv-fab {
		width: 60px;
		height: 60px;
	}

	.ouv-popup {
		bottom: 78px;
		width: calc(100vw - 32px);
	}

	.ouv-card {
		margin: -40px 12px 16px;
		padding: 20px 16px 22px;
	}
}
