.owf-floating-wrapper {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 10002;
}

/*
 * Botões flutuante e do formulário: verde WhatsApp (#25d366), texto e ícone brancos.
 * !important e seletores reforçados para sobrepor estilos do tema em `button`.
 */
.owf-floating-wrapper .owf-floating-button.owf-whatsapp-btn,
.owf-modal__shell .owf-modal__body button.owf-form-submit-btn.owf-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	border: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-color: #25d366 !important;
	color: #ffffff !important;
}

.owf-floating-wrapper .owf-floating-button.owf-whatsapp-btn:hover,
.owf-modal__shell .owf-modal__body button.owf-form-submit-btn.owf-whatsapp-btn:hover {
	filter: brightness(1.06);
}

.owf-whatsapp-btn__icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.25em;
	height: 1.25em;
	color: inherit;
}

.owf-whatsapp-btn__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.owf-whatsapp-btn__label {
	color: inherit;
}

/* Botão flutuante: só layout/posição e formato pill */
.owf-floating-button {
	border-radius: 999px;
	padding: 12px 18px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Flutuante um pouco maior que o botão do formulário */
.owf-floating-wrapper .owf-floating-button.owf-whatsapp-btn {
	font-size: 15px;
	padding: 14px 22px;
	gap: 10px;
}

.owf-floating-wrapper .owf-floating-button .owf-whatsapp-btn__icon {
	width: 1.35em;
	height: 1.35em;
}

/* Botão do formulário: largura total e cantos do painel */
.owf-form-submit-btn {
	width: 100%;
	border-radius: 8px;
	padding: 10px 16px;
}

.owf-modal[hidden] {
	display: none !important;
}

.owf-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	font-family: "Open Sans", sans-serif;
}

.owf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.owf-modal__shell {
	position: fixed;
	right: 20px;
	bottom: 92px;
	width: min(420px, calc(100vw - 40px));
	max-height: min(72vh, 560px);
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	z-index: 2;
}

.owf-modal__header {
	position: relative;
	background-color: rgba(38, 92, 84, 1);
	color: #ffffff;
	padding: 16px 44px 16px 16px;
	margin: 0;
	flex-shrink: 0;
}

/* Título do modal — valores pedidos (especificidade reforçada para sobrepor tema) */
.owf-modal__shell .owf-modal__header h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 500;
	color: #ffffff;
	font-family: "Open Sans", sans-serif;
	line-height: 1.2;
}

/* Fechar (×): cor branca; só o necessário para posição e clique */
.owf-modal__shell .owf-modal__header .owf-modal__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #ffffff !important;
}

.owf-modal__body {
	position: relative;
	background-color: rgba(235, 229, 222, 1);
	padding: 16px;
	overflow-y: auto;
	flex: 1;
	font-family: "Open Sans", sans-serif;
}

/* Labels dos campos — valores pedidos (especificidade reforçada para sobrepor tema) */
.owf-modal__shell .owf-modal__body label {
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	line-height: 1.3;
}

.owf-modal__body p {
	margin: 0 0 12px;
}

.owf-modal__body input[type="text"],
.owf-modal__body input[type="email"],
.owf-modal__body input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	background: #fff;
}

.owf-modal__body .iti {
	width: 100%;
}

.owf-modal__body .iti__flag-container {
	border-radius: 6px 0 0 6px;
}

/*
 * Aviso fixo (Política de Privacidade): só tipografia, sem caixa nem fundo.
 * Classe dedicada para não herdar estilos de .notice do WP/tema (fundo amarelo, borda, etc.).
 */
.owf-modal__shell .owf-modal__body .owf-aviso-fixo {
	font-size: 13px;
	line-height: 1.45;
	color: #1a1a1a;
	margin: 0 0 12px;
	padding: 0;
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.owf-modal__shell .owf-modal__body .owf-aviso-fixo p {
	margin: 0 0 0.5em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.owf-modal__shell .owf-modal__body .owf-aviso-fixo p:last-child {
	margin-bottom: 0;
}

.owf-modal__shell .owf-modal__body .owf-aviso-fixo a {
	color: rgba(38, 92, 84, 1);
	text-decoration: underline;
}

.owf-modal__shell .owf-modal__body .owf-aviso-fixo a:hover {
	text-decoration: none;
}

/* Consentimento de marketing: mesmo tamanho de texto que o aviso (13px) */
.owf-modal__shell .owf-modal__body .owf-consent-marketing label {
	font-size: 13px;
	line-height: 1.45;
	font-weight: 500;
	color: #1a1a1a;
}

.owf-error {
	color: #b10000;
	font-size: 13px;
	font-family: "Open Sans", sans-serif;
}

/* Honeypot anti-spam: fora do ecrã; não usar display:none (alguns bots ignoram) */
.owf-modal__body .owf-honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	margin: 0;
	padding: 0;
}

/* intl-tel-input dropdown above modal stacking */
body .iti__country-list {
	z-index: 10005;
}


@media (max-width: 768px) {
	.owf-floating-wrapper {
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
	}

	.owf-floating-wrapper .owf-floating-button.owf-whatsapp-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 16px;
		border-radius: 14px;
	}
}
