/**
 * Bloco "Avise-me quando chegar" — estilos com escopo em .bsav-block.
 * Nenhuma regra atinge elementos fora do bloco.
 */

.bsav-block {
	--bsav-fg: #111111;
	--bsav-muted: #6b6b6b;
	--bsav-line: #d9d9d9;
	--bsav-accent: #b3122c;
	--bsav-radius: 999px;
	--bsav-gap: 30px;

	box-sizing: border-box;
	width: 100%;
	margin: 24px 0;
	color: var(--bsav-fg);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
}

.bsav-block *,
.bsav-block *::before,
.bsav-block *::after {
	box-sizing: border-box;
}

.bsav-block--hidden {
	display: none;
}

/* ---------------------------------------------------------------- Header */

.bsav-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.bsav-unavailable {
	flex: 0 0 auto;
	color: var(--bsav-accent);
	font-size: 1.05rem;
	line-height: 1.25;
	white-space: nowrap;
}

.bsav-block .bsav-divider {
	height: 0;
	margin: var(--bsav-gap) 0;
	border: 0;
	border-top: 1px solid var(--bsav-line);
	opacity: 1;
}

/* ---------------------------------------------------------------- Títulos */

.bsav-block .bsav-title {
	margin: 0 0 20px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--bsav-fg);
}

/* Respiro extra entre a linha divisória e o título. */
.bsav-block .bsav-divider + .bsav-title {
	margin-top: 10px;
}

.bsav-block .bsav-info {
	margin: 10px 0 20px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--bsav-fg);
}

/* ---------------------------------------------------------------- Campos */

.bsav-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.bsav-field {
	position: relative;
	margin-bottom: 12px;
}

.bsav-row .bsav-field {
	margin-bottom: 0;
}

.bsav-row + .bsav-field {
	margin-top: 12px;
}

.bsav-block .bsav-input {
	width: 100%;
	min-height: 56px;
	padding: 14px 22px;
	margin: 0;
	background: #ffffff;
	border: 1px solid var(--bsav-fg);
	border-radius: var(--bsav-radius);
	color: var(--bsav-fg);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.2;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bsav-block .bsav-input::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

.bsav-block .bsav-input:focus {
	outline: none;
	border-color: var(--bsav-fg);
	box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.15);
}

.bsav-block .bsav-input.bsav-invalid {
	border-color: var(--bsav-accent);
	box-shadow: 0 0 0 2px rgba(179, 18, 44, 0.15);
}

.bsav-block .bsav-select {
	padding-right: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	background-size: 18px 18px;
	cursor: pointer;
}

.bsav-input-icon {
	position: absolute;
	top: 50%;
	right: 20px;
	display: flex;
	transform: translateY(-50%);
	color: var(--bsav-fg);
	pointer-events: none;
}

.bsav-field--email .bsav-input {
	padding-right: 52px;
}

/* Honeypot: fora da tela, sem display:none (bots ignoram campos ocultos). */
.bsav-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------- Checkbox */

.bsav-block .bsav-checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 20px;
	font-size: 0.95rem;
	line-height: 1.4;
	cursor: pointer;
}

.bsav-checkbox input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.bsav-checkbox-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 1px solid var(--bsav-fg);
	border-radius: 4px;
	color: transparent;
	transition: color 0.15s ease;
}

.bsav-checkbox input[type="checkbox"]:checked + .bsav-checkbox-box {
	color: var(--bsav-fg);
}

.bsav-checkbox input[type="checkbox"]:focus-visible + .bsav-checkbox-box {
	box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.25);
}

/* --------------------------------------------------------------- Botões */

.bsav-block .bsav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 60px;
	padding: 16px 28px;
	border: 1px solid var(--bsav-fg);
	border-radius: var(--bsav-radius);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.bsav-block .bsav-btn--outline {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 52px;
	padding: 14px 22px;
	background: transparent;
	color: var(--bsav-fg);
	font-size: clamp(0.78rem, 1.5vw, 0.92rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bsav-block .bsav-btn--outline:hover,
.bsav-block .bsav-btn--outline:focus {
	background: var(--bsav-fg);
	color: #ffffff;
}

.bsav-block .bsav-btn--primary {
	background: var(--bsav-fg);
	color: #ffffff;
}

.bsav-block .bsav-btn--primary:hover,
.bsav-block .bsav-btn--primary:focus {
	background: #2b2b2b;
	color: #ffffff;
}

.bsav-block .bsav-btn--primary[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Botão do WhatsApp: mesma tipografia e cor do botão principal.
   O !important neutraliza temas que forçam cor em <strong>/<small>. */
.bsav-block .bsav-btn--whatsapp {
	background: var(--bsav-fg);
	border-color: var(--bsav-fg);
	color: #ffffff;
}

.bsav-block .bsav-btn--whatsapp:hover,
.bsav-block .bsav-btn--whatsapp:focus {
	background: #2b2b2b;
	border-color: #2b2b2b;
	color: #ffffff;
}

.bsav-block .bsav-whatsapp-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	color: #ffffff;
}

.bsav-block .bsav-whatsapp-icon svg {
	display: block;
	width: 32px;
	height: 32px;
}

.bsav-block .bsav-whatsapp-labels {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}

.bsav-block .bsav-btn--whatsapp .bsav-whatsapp-labels strong {
	color: #ffffff !important;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
}

.bsav-block .bsav-btn--whatsapp .bsav-whatsapp-labels small {
	color: #ffffff !important;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.02em;
	opacity: 0.75;
}

/* ------------------------------------------------------------ Mensagens */

.bsav-message {
	display: none;
	margin-top: 14px;
	padding: 12px 18px;
	border-radius: 12px;
	font-size: 0.92rem;
	line-height: 1.4;
}

.bsav-message.is-visible {
	display: block;
}

.bsav-message.is-success {
	background: #eaf6ee;
	color: #1c6b38;
}

.bsav-message.is-error {
	background: #fcecef;
	color: var(--bsav-accent);
}

.bsav-form.is-loading .bsav-submit {
	opacity: 0.6;
	pointer-events: none;
}

/* -------------------------------------------------------------- Layouts */

/* Mobile: selo e botão de similares empilhados. */
@media (max-width: 767px) {
	.bsav-header {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.bsav-unavailable {
		white-space: normal;
	}

	.bsav-block .bsav-btn--outline {
		width: 100%;
		font-size: 0.85rem;
	}

	.bsav-block .bsav-whatsapp-labels strong {
		font-size: 0.95rem;
	}
}

@media (max-width: 420px) {
	.bsav-row {
		grid-template-columns: 1fr;
	}

	.bsav-block .bsav-btn {
		padding: 16px 18px;
		gap: 10px;
	}
}

/* Desktop: selo e botão de similares na mesma linha. */
@media (min-width: 768px) {
	.bsav-block {
		font-size: 17px;
	}

	.bsav-header {
		flex-wrap: nowrap;
		gap: 20px;
	}
}
