/*
 * Preview com a barra da DROPE (class/drope-preview.php).
 * Barra escura em três colunas: logo | frase de venda | comprar + ocultar.
 * Oculta, ela vira uma pílula pequena no canto para mostrar de novo.
 */

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

html,
body.dp {
	height: 100%;
	margin: 0;
	overflow: hidden;
}

body.dp {
	display: flex;
	flex-direction: column;
	background: #1b1d21;
	font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.dp-barra {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	flex: none;
	height: 60px;
	padding: 0 14px 0 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: #1b1d21;
	color: #fff;
}

.dp-marca {
	display: inline-flex;
	align-items: center;
	color: #fff;
	text-decoration: none;
}

.dp-logo {
	display: block;
	width: auto;
	height: 24px;
}

.dp-logo-txt {
	font-size: 18px;
	letter-spacing: 0.06em;
}

.dp-frase {
	margin: 0;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.78);
	font-size: 14.5px;
	line-height: 1.35;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dp-frase strong {
	color: #fff;
	font-weight: 700;
}

.dp-acoes {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 22px;
	border-radius: 999px;
	background: #ee6a00;
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.16s ease;
}

.dp-btn:hover,
.dp-btn:focus-visible {
	background: #d95f00;
}

.dp-btn:focus-visible,
.dp-ocultar:focus-visible,
.dp-mostrar:focus-visible {
	outline: 2px solid #ffab05;
	outline-offset: 2px;
}

.dp-ocultar {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
}

.dp-ocultar:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.dp-ocultar svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dp-frame {
	display: block;
	flex: 1;
	width: 100%;
	min-height: 0;
	border: 0;
	background: #fff;
}

/* Barra oculta: o site ocupa tudo e sobra uma pílula para trazer a barra de volta. */
body.dp.is-sem-barra .dp-barra {
	display: none;
}

.dp-mostrar[hidden] {
	display: none;
}

.dp-mostrar {
	position: fixed;
	top: 10px;
	right: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 36px;
	margin: 0;
	padding: 0 14px 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: #1b1d21;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.dp-mostrar .dp-logo {
	height: 15px;
}

.dp-mostrar:hover {
	background: #24272c;
}

@media (max-width: 760px) {
	.dp-barra {
		grid-template-columns: auto auto;
		justify-content: space-between;
		gap: 12px;
		height: 56px;
		padding: 0 10px 0 14px;
	}

	.dp-frase {
		display: none;
	}

	.dp-logo {
		height: 21px;
	}

	.dp-btn {
		height: 38px;
		padding: 0 16px;
		font-size: 14px;
	}

	.dp-mostrar span {
		display: none;
	}
}
