/* ==========================================================================
   Conexão Rondônia — Inseridor Visual de Banners Dinâmicos (Frontend)
   ========================================================================== */

.cr-dbi-slot {
	margin: 14px auto;
	clear: both;
}

.cr-dbi-in-article {
	margin: 18px auto;
}

/* Botão "📍 Posição" na barra de edição de cada banner dinâmico */
a.ebm-fe-pos-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 3px;
	background: #2563eb !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 4px 9px !important;
	border-radius: 999px !important;
	text-decoration: none !important;
	cursor: pointer;
}

a.ebm-fe-pos-btn:hover {
	background: #1d4ed8 !important;
	color: #ffffff !important;
}

/* Botão "+ Inserir Novo Banner" no Dock Flutuante */
a.cr-dbi-dock-insert-btn {
	background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

a.cr-dbi-dock-insert-btn.is-picking {
	background: #f59e0b !important;
	color: #111827 !important;
}

/* Barra Superior do Modo Seleção Visual */
.cr-dbi-picker-banner {
	position: fixed;
	top: 32px;
	left: 0;
	right: 0;
	z-index: 100040;
	background: #111827;
	color: #ffffff;
	border-bottom: 3px solid #f59e0b;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	padding: 10px 18px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 782px) {
	.cr-dbi-picker-banner {
		top: 46px;
	}
}

.cr-dbi-picker-banner-inner {
	max-width: 1360px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.cr-dbi-picker-instructions {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #f3f4f6;
}

.cr-dbi-pulse-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
	flex-shrink: 0;
}

.cr-dbi-picker-quick-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.cr-dbi-quick-label {
	font-size: 11.5px;
	color: #9ca3af;
	font-weight: 600;
	margin-right: 2px;
}

a.cr-dbi-quick-btn {
	display: inline-flex !important;
	align-items: center;
	background: #1f2937 !important;
	color: #f9fafb !important;
	border: 1px solid #374151 !important;
	padding: 5px 10px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

a.cr-dbi-quick-btn:hover {
	background: #2563eb !important;
	border-color: #2563eb !important;
	color: #ffffff !important;
}

a.cr-dbi-cancel-btn {
	display: inline-flex !important;
	align-items: center;
	background: #dc2626 !important;
	color: #ffffff !important;
	padding: 5px 12px !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	margin-left: 4px;
}

/* Caixa Flutuante de Destaque ao Passar o Mouse sobre o Conteúdo */
.cr-dbi-hover-box {
	position: absolute;
	z-index: 100020;
	pointer-events: none;
	border: 2px dashed #2563eb;
	background: rgba(37, 99, 235, 0.06);
	border-radius: 8px;
	box-sizing: border-box;
	transition: top 0.08s ease, left 0.08s ease, width 0.08s ease, height 0.08s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cr-dbi-hover-tag {
	position: absolute;
	top: -26px;
	left: 0;
	background: #111827;
	color: #fbbf24;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 6px 6px 0 0;
	white-space: nowrap;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.cr-dbi-hover-actions {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	display: flex;
	gap: 6px;
	background: rgba(17, 24, 39, 0.94);
	padding: 6px 8px;
	border-radius: 999px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.18);
	white-space: nowrap;
}

a.cr-dbi-spot-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	background: #2563eb !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease;
}

a.cr-dbi-spot-btn.cr-dbi-spot-mid {
	background: #c80000 !important;
}

a.cr-dbi-spot-btn:hover {
	transform: scale(1.04);
	filter: brightness(1.1);
}

/* Modal de Posição Dinâmica */
.cr-dbi-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13.5px;
	font-weight: 600;
	background: #fff;
	color: #111827;
}

.cr-dbi-info-box {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 14px;
}

.cr-dbi-info-box label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: #1e3a8a;
}

.cr-dbi-target-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	color: #374151;
	margin-top: 8px;
}
