/* Botón dentro del buscador */
.dgwt-wcas-sf-wrapp.coti-bc-has-btn { position: relative; }
.dgwt-wcas-sf-wrapp.coti-bc-has-btn input.dgwt-wcas-search-input { padding-right: 96px !important; }
.dgwt-wcas-sf-wrapp .coti-bc-btn {
	position: absolute; top: 0; right: 50px; height: 100%; width: 42px;
	margin: 0; padding: 0; min-height: 0; border: 0; background: transparent; box-shadow: none;
	color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 150;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
	line-height: 1;
}
.dgwt-wcas-sf-wrapp .coti-bc-btn:hover { color: #1e73be; background: transparent; }
.dgwt-wcas-sf-wrapp .coti-bc-btn svg { display: block; }

/* Ventana del escáner */
html.coti-bc-lock, html.coti-bc-lock body { overflow: hidden; }
.coti-bc-modal {
	display: none; position: fixed; inset: 0; z-index: 2147483647;
	background: rgba(0,0,0,.75); align-items: center; justify-content: center; padding: 16px;
}
.coti-bc-modal.is-open { display: flex; }
.coti-bc-box {
	background: #fff; color: #222; border-radius: 12px; width: 100%; max-width: 460px;
	padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.4); font-size: 15px;
}
.coti-bc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.coti-bc-close {
	background: transparent; border: 0; font-size: 30px; line-height: 1; color: #555;
	cursor: pointer; margin: 0; padding: 0 6px; min-height: 0;
}
.coti-bc-view { position: relative; background: #000; border-radius: 8px; overflow: hidden; min-height: 220px; }
.coti-bc-view video { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.coti-bc-view #coti-bc-reader { width: 100%; }
.coti-bc-view #coti-bc-reader video { max-height: 60vh; object-fit: cover; }
.coti-bc-line {
	position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #e53935;
	box-shadow: 0 0 8px #e53935; pointer-events: none;
}
.coti-bc-status { margin: 10px 0 6px; text-align: center; }
.coti-bc-status.coti-bc-err { color: #c62828; font-weight: 600; }
.coti-bc-actions { text-align: center; }
.coti-bc-actions button, .coti-bc-manual button {
	background: #1e73be; color: #fff; border: 0; border-radius: 6px; padding: 0 16px;
	height: 40px; line-height: 40px; margin: 4px 0; cursor: pointer; text-transform: none; font-weight: 600;
}
.coti-bc-manual { display: flex; gap: 8px; margin: 8px 0 0; }
.coti-bc-manual input { flex: 1; height: 40px; margin: 0; font-size: 16px; }
.coti-bc-manual button { margin: 0; }
